tests/test-subrepo.t
branchstable
changeset 18520 751135cca13c
parent 18511 798ab869b2ee
child 18541 5ed6a375e9ca
child 18555 b31e0be96c79
--- a/tests/test-subrepo.t	Thu Jan 31 19:13:13 2013 +0100
+++ b/tests/test-subrepo.t	Thu Jan 31 01:44:29 2013 +0100
@@ -1062,3 +1062,27 @@
   ? s/f19
   $ rm s/f19
   $ cd ..
+
+Courtesy phases synchronisation to publishing server does not block the push
+(issue3781)
+
+  $ cp -r main issue3781
+  $ cp -r main issue3781-dest
+  $ cd issue3781-dest/s
+  $ hg phase tip # show we have draft changeset
+  5: draft
+  $ chmod a-w .hg/store/phaseroots # prevent phase push
+  $ cd ../../issue3781
+  $ cat >> .hg/hgrc << EOF
+  > [paths]
+  > default=../issue3781-dest/
+  > EOF
+  $ hg push
+  pushing to $TESTTMP/issue3781-dest
+  pushing subrepo s to $TESTTMP/issue3781-dest/s
+  searching for changes
+  no changes found
+  searching for changes
+  no changes found
+  [1]
+