Thursday, 12 September 2013

Referring to the current bookmark in mercurial

Referring to the current bookmark in mercurial

I am using bookmarks in mercurial to emulate a git branches-like workflow.
One thing I'm finding is that whenever I push, I invariably want to push
just the current bookmark. Rather than typing
hg push -B <bookmark_name>
all the time, I'd like to alias hg push to just push the current bookmark.
To do that, I need a way of referring to the current bookmark without
mentioning its name. Is there a way to do that?

No comments:

Post a Comment