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

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -