##// END OF EJS Templates
commands.bookmarks: move cur initialization to inside wlock...
Siddharth Agarwal -
r20234:8a133190 default
parent child Browse files
Show More
@@ -808,7 +808,6 b' def bookmark(ui, repo, *names, **opts):'
808 inactive = opts.get('inactive')
808 inactive = opts.get('inactive')
809
809
810 hexfn = ui.debugflag and hex or short
810 hexfn = ui.debugflag and hex or short
811 cur = repo.changectx('.').node()
812
811
813 def checkformat(mark):
812 def checkformat(mark):
814 mark = mark.strip()
813 mark = mark.strip()
@@ -864,6 +863,7 b' def bookmark(ui, repo, *names, **opts):'
864 if delete or rename or names or inactive:
863 if delete or rename or names or inactive:
865 wlock = repo.wlock()
864 wlock = repo.wlock()
866 try:
865 try:
866 cur = repo.changectx('.').node()
867 marks = repo._bookmarks
867 marks = repo._bookmarks
868 if delete:
868 if delete:
869 for mark in names:
869 for mark in names:
General Comments 0
You need to be logged in to leave comments. Login now