Show More
@@ -53,8 +53,9 b' def destupdate(repo, clean=False, check=' | |||||
53 | node = None |
|
53 | node = None | |
54 | wc = repo[None] |
|
54 | wc = repo[None] | |
55 | p1 = wc.p1() |
|
55 | p1 = wc.p1() | |
56 | activemark = None |
|
56 | movemark, activemark = None | |
57 |
|
57 | |||
|
58 | if node is None: | |||
58 | # we also move the active bookmark, if any |
|
59 | # we also move the active bookmark, if any | |
59 | node, movemark = bookmarks.calculateupdate(repo.ui, repo, None) |
|
60 | node, movemark = bookmarks.calculateupdate(repo.ui, repo, None) | |
60 | if node is not None: |
|
61 | if node is not None: | |
@@ -68,7 +69,6 b' def destupdate(repo, clean=False, check=' | |||||
68 | node = repo.lookup('tip') # update to tip |
|
69 | node = repo.lookup('tip') # update to tip | |
69 | else: |
|
70 | else: | |
70 | raise error.Abort(_("branch %s not found") % wc.branch()) |
|
71 | raise error.Abort(_("branch %s not found") % wc.branch()) | |
71 |
|
||||
72 | if p1.obsolete() and not p1.children(): |
|
72 | if p1.obsolete() and not p1.children(): | |
73 | # allow updating to successors |
|
73 | # allow updating to successors | |
74 | successors = obsolete.successorssets(repo, p1.node()) |
|
74 | successors = obsolete.successorssets(repo, p1.node()) |
General Comments 0
You need to be logged in to leave comments.
Login now