diff tests/test-treemanifest.t @ 27946:ca8d2b73155d stable

changegroup: fix treemanifest exchange code (issue5061) There were two mistakes: one was accidental reuse of the fclnode variable from the loop gathering file nodes, and the other (masked by that bug) was not correctly handling deleted directories. Both cases are now fixed and the test passes.
author Augie Fackler <augie@google.com>
date Wed, 27 Jan 2016 10:24:25 -0500
parents cabac7dfc621
children c5ffbd4c033b
line wrap: on
line diff
--- a/tests/test-treemanifest.t	Fri Jan 22 12:08:20 2016 -0600
+++ b/tests/test-treemanifest.t	Wed Jan 27 10:24:25 2016 -0500
@@ -332,6 +332,21 @@
   $ grep treemanifest empty-repo/.hg/requires
   treemanifest
 
+Pushing to an empty repo works
+
+  $ hg --config experimental.treemanifest=1 init clone
+  $ grep treemanifest clone/.hg/requires
+  treemanifest
+  $ hg push -R repo clone
+  pushing to clone
+  searching for changes
+  adding changesets
+  adding manifests
+  adding file changes
+  added 11 changesets with 15 changes to 10 files (+3 heads)
+  $ grep treemanifest clone/.hg/requires
+  treemanifest
+
 Create deeper repo with tree manifests.
 
   $ hg --config experimental.treemanifest=True init deeprepo