59 $ cat >> .hg/hgrc <<EOF |
59 $ cat >> .hg/hgrc <<EOF |
60 > allow_push = * |
60 > allow_push = * |
61 > [hooks] |
61 > [hooks] |
62 > changegroup = sh -c "printenv.py changegroup 0" |
62 > changegroup = sh -c "printenv.py changegroup 0" |
63 > pushkey = sh -c "printenv.py pushkey 0" |
63 > pushkey = sh -c "printenv.py pushkey 0" |
|
64 > txnclose-phase.test = echo "phase-move: \$HG_NODE: \$HG_OLDPHASE -> \$HG_PHASE" |
64 > EOF |
65 > EOF |
65 $ req |
66 $ req |
66 pushing to http://localhost:$HGPORT/ |
67 pushing to http://localhost:$HGPORT/ |
67 searching for changes |
68 searching for changes |
68 remote: adding changesets |
69 remote: adding changesets |
69 remote: adding manifests |
70 remote: adding manifests |
70 remote: adding file changes |
71 remote: adding file changes |
71 remote: added 1 changesets with 1 changes to 1 files |
72 remote: added 1 changesets with 1 changes to 1 files |
72 remote: pushkey hook: HG_HOOKNAME=pushkey HG_HOOKTYPE=pushkey HG_KEY=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_NAMESPACE=phases HG_NEW=0 HG_OLD=1 HG_RET=1 |
73 remote: pushkey hook: HG_HOOKNAME=pushkey HG_HOOKTYPE=pushkey HG_KEY=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_NAMESPACE=phases HG_NEW=0 HG_OLD=1 HG_RET=1 |
|
74 remote: phase-move: cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b: 1 -> 0 |
|
75 remote: phase-move: ba677d0156c1196c1a699fa53f390dcfc3ce3872: -> 0 |
73 remote: changegroup hook: HG_BUNDLE2=1 HG_HOOKNAME=changegroup HG_HOOKTYPE=changegroup HG_NODE=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_NODE_LAST=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_SOURCE=serve HG_TXNID=TXN:$ID$ HG_URL=remote:http:$LOCALIP: (glob) |
76 remote: changegroup hook: HG_BUNDLE2=1 HG_HOOKNAME=changegroup HG_HOOKTYPE=changegroup HG_NODE=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_NODE_LAST=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_SOURCE=serve HG_TXNID=TXN:$ID$ HG_URL=remote:http:$LOCALIP: (glob) |
74 % serve errors |
77 % serve errors |
75 $ hg rollback |
78 $ hg rollback |
76 repository tip rolled back to revision 0 (undo serve) |
79 repository tip rolled back to revision 0 (undo serve) |
77 |
80 |
85 remote: adding changesets |
88 remote: adding changesets |
86 remote: adding manifests |
89 remote: adding manifests |
87 remote: adding file changes |
90 remote: adding file changes |
88 remote: added 1 changesets with 1 changes to 1 files |
91 remote: added 1 changesets with 1 changes to 1 files |
89 remote: pushkey hook: HG_HOOKNAME=pushkey HG_HOOKTYPE=pushkey HG_KEY=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_NAMESPACE=phases HG_NEW=0 HG_OLD=1 HG_RET=1 |
92 remote: pushkey hook: HG_HOOKNAME=pushkey HG_HOOKTYPE=pushkey HG_KEY=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_NAMESPACE=phases HG_NEW=0 HG_OLD=1 HG_RET=1 |
|
93 remote: phase-move: cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b: 1 -> 0 |
|
94 remote: phase-move: ba677d0156c1196c1a699fa53f390dcfc3ce3872: -> 0 |
90 remote: changegroup hook: HG_BUNDLE2=1 HG_HOOKNAME=changegroup HG_HOOKTYPE=changegroup HG_NODE=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_NODE_LAST=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_SOURCE=serve HG_TXNID=TXN:$ID$ HG_URL=remote:http:$LOCALIP: (glob) |
95 remote: changegroup hook: HG_BUNDLE2=1 HG_HOOKNAME=changegroup HG_HOOKTYPE=changegroup HG_NODE=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_NODE_LAST=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_SOURCE=serve HG_TXNID=TXN:$ID$ HG_URL=remote:http:$LOCALIP: (glob) |
91 % serve errors |
96 % serve errors |
92 $ hg rollback |
97 $ hg rollback |
93 repository tip rolled back to revision 0 (undo serve) |
98 repository tip rolled back to revision 0 (undo serve) |
94 |
99 |
102 remote: adding changesets |
107 remote: adding changesets |
103 remote: adding manifests |
108 remote: adding manifests |
104 remote: adding file changes |
109 remote: adding file changes |
105 remote: added 1 changesets with 1 changes to 1 files |
110 remote: added 1 changesets with 1 changes to 1 files |
106 remote: pushkey hook: HG_HOOKNAME=pushkey HG_HOOKTYPE=pushkey HG_KEY=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_NAMESPACE=phases HG_NEW=0 HG_OLD=1 HG_RET=1 |
111 remote: pushkey hook: HG_HOOKNAME=pushkey HG_HOOKTYPE=pushkey HG_KEY=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_NAMESPACE=phases HG_NEW=0 HG_OLD=1 HG_RET=1 |
|
112 remote: phase-move: cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b: 1 -> 0 |
|
113 remote: phase-move: ba677d0156c1196c1a699fa53f390dcfc3ce3872: -> 0 |
107 remote: changegroup hook: HG_BUNDLE2=1 HG_HOOKNAME=changegroup HG_HOOKTYPE=changegroup HG_NODE=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_NODE_LAST=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_SOURCE=serve HG_TXNID=TXN:$ID$ HG_URL=remote:http:$LOCALIP: (glob) |
114 remote: changegroup hook: HG_BUNDLE2=1 HG_HOOKNAME=changegroup HG_HOOKTYPE=changegroup HG_NODE=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_NODE_LAST=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_SOURCE=serve HG_TXNID=TXN:$ID$ HG_URL=remote:http:$LOCALIP: (glob) |
108 % serve errors |
115 % serve errors |
109 $ hg rollback |
116 $ hg rollback |
110 repository tip rolled back to revision 0 (undo serve) |
117 repository tip rolled back to revision 0 (undo serve) |
111 |
118 |