##// END OF EJS Templates
bookmarks: restore python 2.4 compatibility...
Gilles Moris -
r16194:6ba53012 stable
parent child Browse files
Show More
@@ -129,11 +129,12 b' def setcurrent(repo, mark):'
129 def unsetcurrent(repo):
129 def unsetcurrent(repo):
130 wlock = repo.wlock()
130 wlock = repo.wlock()
131 try:
131 try:
132 util.unlink(repo.join('bookmarks.current'))
132 try:
133 repo._bookmarkcurrent = None
133 util.unlink(repo.join('bookmarks.current'))
134 except OSError, inst:
134 repo._bookmarkcurrent = None
135 if inst.errno != errno.ENOENT:
135 except OSError, inst:
136 raise
136 if inst.errno != errno.ENOENT:
137 raise
137 finally:
138 finally:
138 wlock.release()
139 wlock.release()
139
140
General Comments 0
You need to be logged in to leave comments. Login now