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