"hg strip" without touching working copy?

Harvey Chapman hchapman-hg at 3gfp.com
Wed Jun 23 19:59:54 UTC 2010


On Jun 23, 2010, at 3:44 PM, Steve Borho wrote:

> Also known as 'hg clone -r' and is much preferred over using strip.

but that doesn't preserve the local changes and it doesn't work like rollback. That is, the OP wanted all of the changes from the stripped revs to appear as local uncommitted modifications.

And I still prefer strip to clone -r. It's in-place, it's fast, and I don't have to worry about loosing local files (which might only be object files). In a working copy, why should I prefer clone over strip? Is it a just-in-case kind of thing? and doesn't strip bundle the revs before stripping? I used that bundle once to undo a strip. Is it the chance that it might corrupt the repo and then any non-pushed changes that weren't stripped (and therefore bundled) could be lost?


More information about the Mercurial mailing list