tests/test-pending.t
branchstable
changeset 24822 8678b1eafbcf
parent 16975 921458360270
child 24838 b2c1ff96c1e1
--- a/tests/test-pending.t	Mon Apr 20 15:27:55 2015 +0200
+++ b/tests/test-pending.t	Mon Apr 20 17:16:22 2015 +0200
@@ -113,3 +113,27 @@
   rollback completed
   abort: pretxnchangegroup hook exited with status 1
   pull 0000000000000000000000000000000000000000
+
+Test that pending on transaction without changegroup see the normal changegroup(
+(issue4609)
+
+  $ cat <<EOF > parent/.hg/hgrc
+  > [hooks]
+  > pretxnchangegroup=
+  > pretxnclose = hg tip -T 'tip: {node|short}\n'
+  > [phases]
+  > publishing=False
+  > EOF
+
+setup
+
+  $ cd parent
+  $ echo a > a
+  $ hg add a
+  $ hg commit -m a
+  tip: cb9a9f314b8b
+
+actual test
+
+  $ hg phase --public .
+  tip: cb9a9f314b8b