Show More
@@ -354,7 +354,6 b' def calculateupdate(ui, repo, checkout):' | |||
|
354 | 354 | def update(repo, parents, node): |
|
355 | 355 | deletefrom = parents |
|
356 | 356 | marks = repo._bookmarks |
|
357 | update = False | |
|
358 | 357 | active = marks.active |
|
359 | 358 | if not active: |
|
360 | 359 | return False |
@@ -368,12 +367,11 b' def update(repo, parents, node):' | |||
|
368 | 367 | deletefrom = [b.node() for b in divs if b.rev() in anc or b == new] |
|
369 | 368 | if validdest(repo, repo[marks[active]], new): |
|
370 | 369 | bmchanges.append((active, new.node())) |
|
371 | update = True | |
|
372 | 370 | |
|
373 |
|
|
|
374 | update = True | |
|
371 | for bm in divergent2delete(repo, deletefrom, active): | |
|
372 | bmchanges.append((bm, None)) | |
|
375 | 373 | |
|
376 |
if |
|
|
374 | if bmchanges: | |
|
377 | 375 | lock = tr = None |
|
378 | 376 | try: |
|
379 | 377 | lock = repo.lock() |
@@ -382,7 +380,7 b' def update(repo, parents, node):' | |||
|
382 | 380 | tr.close() |
|
383 | 381 | finally: |
|
384 | 382 | lockmod.release(tr, lock) |
|
385 |
return |
|
|
383 | return bool(bmchanges) | |
|
386 | 384 | |
|
387 | 385 | def listbinbookmarks(repo): |
|
388 | 386 | # We may try to list bookmarks on a repo type that does not |
General Comments 0
You need to be logged in to leave comments.
Login now