Show More
@@ -1167,7 +1167,9 b' def update(repo, node, branchmerge, forc' | |||
|
1167 | 1167 | wlock.release() |
|
1168 | 1168 | |
|
1169 | 1169 | if not partial: |
|
1170 |
|
|
|
1170 | def updatehook(parent1=xp1, parent2=xp2, error=stats[3]): | |
|
1171 | repo.hook('update', parent1=parent1, parent2=parent2, error=error) | |
|
1172 | repo._afterlock(updatehook) | |
|
1171 | 1173 | return stats |
|
1172 | 1174 | |
|
1173 | 1175 | def graft(repo, ctx, pctx, labels): |
@@ -613,7 +613,9 b' make sure --traceback works on hook impo' | |||
|
613 | 613 | |
|
614 | 614 | Issue1827: Hooks Update & Commit not completely post operation |
|
615 | 615 | |
|
616 | commit and update hooks should run after command completion | |
|
616 | commit and update hooks should run after command completion. The largefiles | |
|
617 | use demonstrates a recursive wlock, showing the hook doesn't run until the | |
|
618 | final release (and dirstate flush). | |
|
617 | 619 | |
|
618 | 620 | $ echo '[hooks]' > .hg/hgrc |
|
619 | 621 |
$ echo 'commit |
@@ -621,7 +623,7 b' commit and update hooks should run after' | |||
|
621 | 623 | $ echo bb > a |
|
622 | 624 | $ hg ci -ma |
|
623 | 625 | 223eafe2750c tip |
|
624 | $ hg up 0 | |
|
626 | $ hg up 0 --config extensions.largefiles= | |
|
625 | 627 | cb9a9f314b8b |
|
626 | 628 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
627 | 629 |
General Comments 0
You need to be logged in to leave comments.
Login now