Show More
@@ -349,8 +349,8 b' def headsforactive(repo):' | |||||
349 | return heads |
|
349 | return heads | |
350 |
|
350 | |||
351 | def calculateupdate(ui, repo, checkout): |
|
351 | def calculateupdate(ui, repo, checkout): | |
352 |
'''Return a tuple ( |
|
352 | '''Return a tuple (activemark, movemarkfrom) indicating the active bookmark | |
353 |
|
|
353 | and where to move the active bookmark from, if needed.''' | |
354 | movemarkfrom = None |
|
354 | movemarkfrom = None | |
355 | if checkout is None: |
|
355 | if checkout is None: | |
356 | activemark = repo._activebookmark |
|
356 | activemark = repo._activebookmark |
@@ -55,10 +55,10 b' def _destupdateobs(repo, clean):' | |||||
55 | def _destupdatebook(repo, clean): |
|
55 | 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 |
|
|
58 | node = None | |
59 |
|
|
59 | activemark, movemark = bookmarks.calculateupdate(repo.ui, repo, None) | |
60 |
if |
|
60 | if activemark is not None: | |
61 | activemark = node |
|
61 | node = repo.lookup(activemark) | |
62 | return node, movemark, activemark |
|
62 | return node, movemark, activemark | |
63 |
|
63 | |||
64 | def _destupdatebranch(repo, clean): |
|
64 | def _destupdatebranch(repo, clean): |
General Comments 0
You need to be logged in to leave comments.
Login now