##// END OF EJS Templates
bookmarks: drop always-None argument from calculateupdate()...
Martin von Zweigbergk -
r37393:a973bb92 default
parent child Browse files
Show More
@@ -348,11 +348,10 b' def headsforactive(repo):'
348 heads.append(n)
348 heads.append(n)
349 return heads
349 return heads
350
350
351 def calculateupdate(ui, repo, checkout):
351 def calculateupdate(ui, repo):
352 '''Return a tuple (activemark, movemarkfrom) indicating the active bookmark
352 '''Return a tuple (activemark, movemarkfrom) indicating the active bookmark
353 and where to move the active bookmark from, if needed.'''
353 and where to move the active bookmark from, if needed.'''
354 movemarkfrom = None
354 checkout, movemarkfrom = None, None
355 if checkout is None:
356 activemark = repo._activebookmark
355 activemark = repo._activebookmark
357 if isactivewdirparent(repo):
356 if isactivewdirparent(repo):
358 movemarkfrom = repo['.'].node()
357 movemarkfrom = repo['.'].node()
@@ -56,7 +56,7 b' def _destupdatebook(repo, clean):'
56 """decide on an update destination from active bookmark"""
56 """decide on an update destination from active bookmark"""
57 # we also move the active bookmark, if any
57 # we also move the active bookmark, if any
58 node = None
58 node = None
59 activemark, movemark = bookmarks.calculateupdate(repo.ui, repo, None)
59 activemark, movemark = bookmarks.calculateupdate(repo.ui, repo)
60 if activemark is not None:
60 if activemark is not None:
61 node = repo.lookup(activemark)
61 node = repo.lookup(activemark)
62 return node, movemark, activemark
62 return node, movemark, activemark
General Comments 0
You need to be logged in to leave comments. Login now