##// END OF EJS Templates
bookmarks: remove API limitation in setcurrent...
David Soria Parra -
r13647:c0c59970 default
parent child Browse files
Show More
@@ -101,13 +101,7 b' def setcurrent(repo, mark):'
101 if current == mark:
101 if current == mark:
102 return
102 return
103
103
104 refs = repo._bookmarks
104 if mark not in repo._bookmarks:
105
106 # do not update if we do update to a rev equal to the current bookmark
107 if (mark and mark not in refs and
108 current and refs[current] == repo.changectx('.').node()):
109 return
110 if mark not in refs:
111 mark = ''
105 mark = ''
112 if not valid(mark):
106 if not valid(mark):
113 raise util.Abort(_("bookmark '%s' contains illegal "
107 raise util.Abort(_("bookmark '%s' contains illegal "
General Comments 0
You need to be logged in to leave comments. Login now