# HG changeset patch # User Siddharth Agarwal # Date 2013-11-19 20:43:29 # Node ID a602d2aca8bf16243a5b2d6b5b113e6977771a30 # Parent 8a133190da895d882cef515a7e7db6cfc65daba6 commands.bookmarks: move hexfn to inside list block This isn't used outside this block, nor is it expected to be. diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -807,8 +807,6 @@ def bookmark(ui, repo, *names, **opts): rename = opts.get('rename') inactive = opts.get('inactive') - hexfn = ui.debugflag and hex or short - def checkformat(mark): mark = mark.strip() if not mark: @@ -920,6 +918,7 @@ def bookmark(ui, repo, *names, **opts): finally: wlock.release() else: # show bookmarks + hexfn = ui.debugflag and hex or short marks = repo._bookmarks if len(marks) == 0: ui.status(_("no bookmarks set\n"))