branch - How do I drop a Mercurial bookmark with all its changesets? -



branch - How do I drop a Mercurial bookmark with all its changesets? -

i utilize git @ work because git team's choice. however, prefer mercurial personal projects. it's not secret git , mercurial branching models differ, , bookmarks in mercurial branches in git. git branches , utilize mercurial branches rarely, when need it, preferring mercurial bookmarks. however, miss git branch -d in mercurial, because deleting bookmark in mercurial removes bookmark , preserves immutable history. possible drop bookmark in mercurial of changesets changeset bookmark has been diverged from?

in general:

hg strip revisions_to_drop

for problem:

hg strip 'not ancestors(heads(all()) - bookmark(name_of_bookmark))'

(i.e. "strip revisions not ancestors of heads other bookmarked head")

assuming sufficiently recent version of hg:

hg strip -b name_of_bookmark

mercurial branch

Comments

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -