Submitter | Ryan McElroy |
---|---|
Date | May 9, 2015, 12:56 a.m. |
Message ID | <2462f6c6190123d76d65.1431132975@devbig105.prn2.facebook.com> |
Download | mbox | patch |
Permalink | /patch/8990/ |
State | Accepted |
Commit | 256c8432e3467814e00ab4bc8dcb62f8ece2cec0 |
Delegated to: | Augie Fackler |
Headers | show |
Comments
Patch
diff --git a/mercurial/templatekw.py b/mercurial/templatekw.py --- a/mercurial/templatekw.py +++ b/mercurial/templatekw.py @@ -227,9 +227,9 @@ def showcurrentbookmark(**args): import bookmarks as bookmarks # to avoid circular import issues repo = args['repo'] if bookmarks.isactivewdirparent(repo): - current = repo._activebookmark - if current in args['ctx'].bookmarks(): - return current + active = repo._activebookmark + if active in args['ctx'].bookmarks(): + return active return '' def showdate(repo, ctx, templ, **args):