##// END OF EJS Templates
hook: schedule run "b2x-transactionclose" for after lock release...
Pierre-Yves David -
r23047:f10019d2 default
parent child Browse files
Show More
@@ -841,7 +841,10 b' class pulloperation(object):'
841 841 repo.hook('b2x-pretransactionclose', throw=True, pending=p,
842 842 **self._tr.hookargs)
843 843 self._tr.close()
844 repo.hook('b2x-transactionclose', **self._tr.hookargs)
844 hookargs = dict(self._tr.hookargs)
845 def runhooks():
846 repo.hook('b2x-transactionclose', **hookargs)
847 repo._afterlock(runhooks)
845 848
846 849 def releasetransaction(self):
847 850 """release transaction if created"""
@@ -1247,7 +1250,10 b' def unbundle(repo, cg, heads, source, ur'
1247 1250 repo.hook('b2x-pretransactionclose', throw=True, pending=p,
1248 1251 **tr.hookargs)
1249 1252 tr.close()
1250 repo.hook('b2x-transactionclose', **tr.hookargs)
1253 hookargs = dict(tr.hookargs)
1254 def runhooks():
1255 repo.hook('b2x-transactionclose', **hookargs)
1256 repo._afterlock(runhooks)
1251 1257 except Exception, exc:
1252 1258 exc.duringunbundle2 = True
1253 1259 raise
@@ -59,8 +59,8 b' clone --pull'
59 59 adding file changes
60 60 added 2 changesets with 2 changes to 2 files
61 61 1 new obsolescence markers
62 changegroup hook: HG_NODE=cd010b8cd998f3981a5a8115f94f8da4ab506089 HG_SOURCE=pull HG_URL=file:$TESTTMP/main
62 63 b2x-transactionclose hook: HG_NEW_OBSMARKERS=1 HG_NODE=cd010b8cd998f3981a5a8115f94f8da4ab506089 HG_PHASES_MOVED=1 HG_SOURCE=pull HG_URL=file:$TESTTMP/main
63 changegroup hook: HG_NODE=cd010b8cd998f3981a5a8115f94f8da4ab506089 HG_SOURCE=pull HG_URL=file:$TESTTMP/main
64 64 updating to branch default
65 65 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
66 66 $ hg -R other log -G
@@ -82,8 +82,8 b' pull'
82 82 adding file changes
83 83 added 1 changesets with 1 changes to 1 files (+1 heads)
84 84 1 new obsolescence markers
85 changegroup hook: HG_NODE=24b6387c8c8cae37178880f3fa95ded3cb1cf785 HG_SOURCE=pull HG_URL=file:$TESTTMP/main
85 86 b2x-transactionclose hook: HG_NEW_OBSMARKERS=1 HG_NODE=24b6387c8c8cae37178880f3fa95ded3cb1cf785 HG_PHASES_MOVED=1 HG_SOURCE=pull HG_URL=file:$TESTTMP/main
86 changegroup hook: HG_NODE=24b6387c8c8cae37178880f3fa95ded3cb1cf785 HG_SOURCE=pull HG_URL=file:$TESTTMP/main
87 87 (run 'hg heads' to see heads, 'hg merge' to merge)
88 88 $ hg -R other log -G
89 89 o 2:24b6387c8c8c draft Nicolas Dumazet <nicdumz.commits@gmail.com> F
@@ -156,8 +156,8 b' push'
156 156 $ hg -R main push other --rev eea13746799a --bookmark book_eea1
157 157 pushing to other
158 158 searching for changes
159 changegroup hook: HG_BUNDLE2-EXP=1 HG_NODE=eea13746799a9e0bfd88f29d3c2e9dc9389f524f HG_SOURCE=push HG_URL=push
159 160 b2x-transactionclose hook: HG_BOOKMARK_MOVED=1 HG_BUNDLE2-EXP=1 HG_NEW_OBSMARKERS=1 HG_NODE=eea13746799a9e0bfd88f29d3c2e9dc9389f524f HG_PHASES_MOVED=1 HG_SOURCE=push HG_URL=push
160 changegroup hook: HG_BUNDLE2-EXP=1 HG_NODE=eea13746799a9e0bfd88f29d3c2e9dc9389f524f HG_SOURCE=push HG_URL=push
161 161 remote: adding changesets
162 162 remote: adding manifests
163 163 remote: adding file changes
@@ -189,8 +189,8 b' pull over ssh'
189 189 added 1 changesets with 1 changes to 1 files (+1 heads)
190 190 1 new obsolescence markers
191 191 updating bookmark book_02de
192 changegroup hook: HG_NODE=02de42196ebee42ef284b6780a87cdc96e8eaab6 HG_SOURCE=pull HG_URL=ssh://user@dummy/main
192 193 b2x-transactionclose hook: HG_BOOKMARK_MOVED=1 HG_NEW_OBSMARKERS=1 HG_NODE=02de42196ebee42ef284b6780a87cdc96e8eaab6 HG_PHASES_MOVED=1 HG_SOURCE=pull HG_URL=ssh://user@dummy/main
193 changegroup hook: HG_NODE=02de42196ebee42ef284b6780a87cdc96e8eaab6 HG_SOURCE=pull HG_URL=ssh://user@dummy/main
194 194 (run 'hg heads' to see heads, 'hg merge' to merge)
195 195 $ hg -R other debugobsolete
196 196 1111111111111111111111111111111111111111 9520eea781bcca16c1e15acc0ba14335a0e8e5ba 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
@@ -212,8 +212,8 b' pull over http'
212 212 added 1 changesets with 1 changes to 1 files (+1 heads)
213 213 1 new obsolescence markers
214 214 updating bookmark book_42cc
215 changegroup hook: HG_NODE=42ccdea3bb16d28e1848c95fe2e44c000f3f21b1 HG_SOURCE=pull HG_URL=http://localhost:$HGPORT/
215 216 b2x-transactionclose hook: HG_BOOKMARK_MOVED=1 HG_NEW_OBSMARKERS=1 HG_NODE=42ccdea3bb16d28e1848c95fe2e44c000f3f21b1 HG_PHASES_MOVED=1 HG_SOURCE=pull HG_URL=http://localhost:$HGPORT/
216 changegroup hook: HG_NODE=42ccdea3bb16d28e1848c95fe2e44c000f3f21b1 HG_SOURCE=pull HG_URL=http://localhost:$HGPORT/
217 217 (run 'hg heads .' to see heads, 'hg merge' to merge)
218 218 $ cat main-error.log
219 219 $ hg -R other debugobsolete
@@ -234,8 +234,8 b' push over ssh'
234 234 remote: added 1 changesets with 1 changes to 1 files
235 235 remote: 1 new obsolescence markers
236 236 updating bookmark book_5fdd
237 remote: changegroup hook: HG_BUNDLE2-EXP=1 HG_NODE=5fddd98957c8a54a4d436dfe1da9d87f21a1b97b HG_SOURCE=serve HG_URL=remote:ssh:127.0.0.1
237 238 remote: b2x-transactionclose hook: HG_BOOKMARK_MOVED=1 HG_BUNDLE2-EXP=1 HG_NEW_OBSMARKERS=1 HG_NODE=5fddd98957c8a54a4d436dfe1da9d87f21a1b97b HG_SOURCE=serve HG_URL=remote:ssh:127.0.0.1
238 remote: changegroup hook: HG_BUNDLE2-EXP=1 HG_NODE=5fddd98957c8a54a4d436dfe1da9d87f21a1b97b HG_SOURCE=serve HG_URL=remote:ssh:127.0.0.1
239 239 $ hg -R other log -G
240 240 o 6:5fddd98957c8 draft Nicolas Dumazet <nicdumz.commits@gmail.com> book_5fdd C
241 241 |
General Comments 0
You need to be logged in to leave comments. Login now