2019-11-13 16:19:19 -08:00
|
|
|
## Convert Head to Branch
|
|
|
|
|
|
|
|
|
|
`fast-export` can only handle one head per branch. This plugin makes it possible
|
|
|
|
|
to create a new branch from a head by specifying the new branch name and
|
2020-07-31 10:38:24 +02:00
|
|
|
the first divergent commit for that head.
|
|
|
|
|
|
|
|
|
|
Note: the hg hash must be in the full form, 40 hexadecimal characters.
|
2019-11-13 16:19:19 -08:00
|
|
|
|
|
|
|
|
Note: you must run `fast-export` with `--ignore-unnamed-heads` option,
|
|
|
|
|
otherwise, the conversion will fail.
|
|
|
|
|
|
2020-07-31 10:38:24 +02:00
|
|
|
To use the plugin, add the command line flag `--plugin head2branch=name,<hg_hash>`.
|
2019-11-13 16:19:19 -08:00
|
|
|
The flag can be given multiple times to name more than one head.
|