Mercurial > public > mercurial-scm > hg
diff mercurial/bookmarks.py @ 28182:e4fe4e903e97
bookmarks: add 'hg push -B .' for pushing the active bookmark (issue4917)
author | liscju <piotr.listkiewicz@gmail.com> |
---|---|
date | Fri, 19 Feb 2016 22:28:09 +0100 |
parents | 1c5f2c2c046b |
children | e6f490e32863 |
line wrap: on
line diff
--- a/mercurial/bookmarks.py Sat Feb 20 15:56:44 2016 -0800 +++ b/mercurial/bookmarks.py Fri Feb 19 22:28:09 2016 +0100 @@ -182,6 +182,11 @@ fp.write("%s %s\n" % (hex(node), encoding.fromlocal(name))) self._clean = True + def expandname(self, bname): + if bname == '.': + return self.active + return bname + def _readactive(repo, marks): """ Get the active bookmark. We can have an active bookmark that updates