Show More
@@ -350,6 +350,7 b' def update(repo, parents, node):' | |||||
350 | if not active: |
|
350 | if not active: | |
351 | return False |
|
351 | return False | |
352 |
|
352 | |||
|
353 | bmchanges = [] | |||
353 | if marks[active] in parents: |
|
354 | if marks[active] in parents: | |
354 | new = repo[node] |
|
355 | new = repo[node] | |
355 | divs = [repo[b] for b in marks |
|
356 | divs = [repo[b] for b in marks | |
@@ -357,7 +358,7 b' def update(repo, parents, node):' | |||||
357 | anc = repo.changelog.ancestors([new.rev()]) |
|
358 | anc = repo.changelog.ancestors([new.rev()]) | |
358 | deletefrom = [b.node() for b in divs if b.rev() in anc or b == new] |
|
359 | deletefrom = [b.node() for b in divs if b.rev() in anc or b == new] | |
359 | if validdest(repo, repo[marks[active]], new): |
|
360 | if validdest(repo, repo[marks[active]], new): | |
360 |
|
|
361 | bmchanges.append((active, new.node())) | |
361 | update = True |
|
362 | update = True | |
362 |
|
363 | |||
363 | if deletedivergent(repo, deletefrom, active): |
|
364 | if deletedivergent(repo, deletefrom, active): | |
@@ -368,7 +369,7 b' def update(repo, parents, node):' | |||||
368 | try: |
|
369 | try: | |
369 | lock = repo.lock() |
|
370 | lock = repo.lock() | |
370 | tr = repo.transaction('bookmark') |
|
371 | tr = repo.transaction('bookmark') | |
371 |
marks. |
|
372 | marks.applychanges(repo, tr, bmchanges) | |
372 | tr.close() |
|
373 | tr.close() | |
373 | finally: |
|
374 | finally: | |
374 | lockmod.release(tr, lock) |
|
375 | lockmod.release(tr, lock) |
General Comments 0
You need to be logged in to leave comments.
Login now