MQ: strip - auto-search for branch head

Guido Ostkamp hg at ostkamp.fastmail.fm
Mon Aug 3 19:09:12 CDT 2009


On Mon, 3 Aug 2009, Greg Ward wrote:
> Careful: as I understand it, "hg strip" is rather more destructive than 
> "git branch -D".  Specifically, "hg strip" utterly and irrevocably 
> destroys changesets, with a bundle file to save you if you screw up. 
> But I think "git branch -D" merely unlinks them from the graph, leaving 
> it up to git's garbage collection to remove them after a certain time 
> has elapsed.  (I want to say 14 days... it's certainly on the order of 
> weeks.)

Well, in both cases you can go back for a while. What's the difference 
then?

Remember that step will be taken, either after it has been decided that 
this branch is to be aborted or after it has been rebased to another line 
of development. In both cases you want it to go away.

You can already do it with 'hg strip <changeset>'. It is only very 
inconvenient as you need to lookup <changeset> by yourself.

Regards

Guido


More information about the Mercurial mailing list