##// END OF EJS Templates
destutil: look up bookmarks only among bookmarks...
Martin von Zweigbergk -
r37470:2b38c805 default
parent child Browse files
Show More
@@ -58,7 +58,7 def _destupdatebook(repo, clean):
58 58 node = None
59 59 activemark, movemark = bookmarks.calculateupdate(repo.ui, repo)
60 60 if activemark is not None:
61 node = repo.lookup(activemark)
61 node = repo._bookmarks[activemark]
62 62 return node, movemark, activemark
63 63
64 64 def _destupdatebranch(repo, clean):
@@ -236,7 +236,7 def _destmergebook(repo, action='merge',
236 236 """find merge destination in the active bookmark case"""
237 237 node = None
238 238 bmheads = bookmarks.headsforactive(repo)
239 curhead = repo[repo._activebookmark].node()
239 curhead = repo._bookmarks[repo._activebookmark]
240 240 if len(bmheads) == 2:
241 241 if curhead == bmheads[0]:
242 242 node = bmheads[1]
@@ -361,7 +361,7 def stackbase(ui, repo):
361 361
362 362 def _statusotherbook(ui, repo):
363 363 bmheads = bookmarks.headsforactive(repo)
364 curhead = repo[repo._activebookmark].node()
364 curhead = repo._bookmarks[repo._activebookmark]
365 365 if repo.revs('%n and parents()', curhead):
366 366 # we are on the active bookmark
367 367 bmheads = [b for b in bmheads if curhead != b]
General Comments 0
You need to be logged in to leave comments. Login now