Lost changes during merges

Adrian Buehlmann adrian at cadifra.com
Wed Jan 20 04:05:27 CST 2010


On 20.01.2010 10:36, Pavel Shevaev wrote:
>> sure, this is actually really easy. Clone the repo, and strip the
>> merge revision:
>>  hg strip 7722
> 
> Thanks for the tip but where is the 'strip' command? Is it in some
> 'strip' extension and if yes where can I find the one? (at least it's
> not listed here http://mercurial.selenic.com/wiki/UsingExtensions)
> 

strip is part of the mercurial queues extension [1], which ships with
mercurial but is disabled by default (because it can be used to
destroy history, which is not newbie-safe).

You don't need to use strip here though, since you can achieve what
you need with a simple clone [2] alone:

hg clone --rev <REV1> --rev <REV2> --rev <REV3> .... <SRC-REPO> <DEST-REPO>

[1] http://mercurial.selenic.com/wiki/MqExtension
[2] http://www.selenic.com/mercurial/hg.1.html#clone


More information about the Mercurial mailing list