##// END OF EJS Templates
commands.bookmarks: move hexfn to inside list block...
Siddharth Agarwal -
r20235:a602d2ac default
parent child Browse files
Show More
@@ -807,8 +807,6 b' def bookmark(ui, repo, *names, **opts):'
807 rename = opts.get('rename')
807 rename = opts.get('rename')
808 inactive = opts.get('inactive')
808 inactive = opts.get('inactive')
809
809
810 hexfn = ui.debugflag and hex or short
811
812 def checkformat(mark):
810 def checkformat(mark):
813 mark = mark.strip()
811 mark = mark.strip()
814 if not mark:
812 if not mark:
@@ -920,6 +918,7 b' def bookmark(ui, repo, *names, **opts):'
920 finally:
918 finally:
921 wlock.release()
919 wlock.release()
922 else: # show bookmarks
920 else: # show bookmarks
921 hexfn = ui.debugflag and hex or short
923 marks = repo._bookmarks
922 marks = repo._bookmarks
924 if len(marks) == 0:
923 if len(marks) == 0:
925 ui.status(_("no bookmarks set\n"))
924 ui.status(_("no bookmarks set\n"))
General Comments 0
You need to be logged in to leave comments. Login now