[revert] (was: copy a single file from one branch to another| pseudo conflict in a merge)
Uwe Brauer
oub at mat.ucm.es
Sun Jul 14 06:06:06 UTC 2019
>>> "UB" == Uwe Brauer <oub at mat.ucm.es> writes:
> Hi
> The primitive solution I came up with was:
> 1. Checkout feature branch copy file1 outside the repository
> 2. Checkout default branch
> 3. Copy file
> 4. commit
> 5. Merge
> But this looks like stone age honestly.
> What would be an elegant mercurial-like solution?
I think
hg update -r default
hg revert -r feature file1
hg ci
Does what I did manually. First I thought it would be better to avoid
the commit, but now I think I actually helps to protocol what happened.
In any case, other solutions are welcome.
Uwe Brauer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5025 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20190714/0f38aabe/attachment.p7s>
More information about the Mercurial
mailing list