tortoisehg - Mercurial Update To Activate Bookmark -


i activate bookmark on revision if update revision. instance, if this

hg -r "bookmark('re:fix.+2572')" 

this update me revision bookmark points to, won't activate bookmark.

documentation says:

note updating revision has bookmark without using bookmark name not activate bookmark (e.g. if feature bookmark points revision #20 , hg update --rev 20 feature bookmark not activated).

but me seems nice feature/option have. more works if in tortoisehg ui, couldn't figure out how in command line version of mercurial.

is there way/workaround ?

you can create alias new command, let's call bupdate. add .hgrc:

[alias] bupdate = !hg $($hg log $@ -t'{bookmarks}\n' | cut -d\  -f1) 

call hg bupdate call hg update. activate first bookmark attached specific revision. update revision if there no bookmark. updates 2nd or 3rd or further bookmarks attached revision still need done manually.


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -