MQ: strip - auto-search for branch head
Greg Ward
greg-hg at gerg.ca
Mon Aug 3 07:58:28 CDT 2009
On Sun, Aug 2, 2009 at 5:16 PM, Guido Ostkamp<hg at ostkamp.fastmail.fm> wrote:
> I could not find a syntax that allows to easily strip a branch without
> knowing the exact revision ids. I'm thinking of something like this
> (example requires "track.current = True" setting in [bookmarks] within
> ~/.hgrc):
Neat idea.
> We really need something as easy as "git branch -D crazybranch".
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.)
I'm not sure "easy" and "destroy history" belong in the same feature
request. ;-)
Greg
More information about the Mercurial
mailing list