Mercurial > hg > mercurial-crew
changeset 11561:e5aaaef91a27 stable
bookmarks: ensure current bookmark is updated when specified with -r .
"hg bookmark -r . foo" should be equivalent to "hg bookmark foo".
author | Brodie Rao <brodie@bitheap.org> |
---|---|
date | Wed, 14 Jul 2010 11:02:20 -0400 |
parents | d8d0fc3988ca |
children | efbc09fdefd8 |
files | hgext/bookmarks.py tests/test-bookmarks-current tests/test-bookmarks-current.out |
diffstat | 3 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/bookmarks.py +++ b/hgext/bookmarks.py @@ -146,7 +146,7 @@ marks[mark] = repo.lookup(rev) else: marks[mark] = repo.changectx('.').node() - setcurrent(repo, mark) + setcurrent(repo, mark) write(repo) return