##// END OF EJS Templates
merge: run update hook after the last wlock release...
Matt Harbison -
r24881:51844b8b stable
parent child Browse files
Show More
@@ -1167,7 +1167,9 b' def update(repo, node, branchmerge, forc'
1167 wlock.release()
1167 wlock.release()
1168
1168
1169 if not partial:
1169 if not partial:
1170 repo.hook('update', parent1=xp1, parent2=xp2, error=stats[3])
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 return stats
1173 return stats
1172
1174
1173 def graft(repo, ctx, pctx, labels):
1175 def graft(repo, ctx, pctx, labels):
@@ -613,7 +613,9 b' make sure --traceback works on hook impo'
613
613
614 Issue1827: Hooks Update & Commit not completely post operation
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 $ echo '[hooks]' > .hg/hgrc
620 $ echo '[hooks]' > .hg/hgrc
619 $ echo 'commit = hg id' >> .hg/hgrc
621 $ echo 'commit = hg id' >> .hg/hgrc
@@ -621,7 +623,7 b' commit and update hooks should run after'
621 $ echo bb > a
623 $ echo bb > a
622 $ hg ci -ma
624 $ hg ci -ma
623 223eafe2750c tip
625 223eafe2750c tip
624 $ hg up 0
626 $ hg up 0 --config extensions.largefiles=
625 cb9a9f314b8b
627 cb9a9f314b8b
626 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
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