Commits

Pierre-Yves David committed 9445ce7

fix clone

  • Participants
  • Parent commits b4932df
  • Branches default

Comments (0)

Files changed (2)

     if not repo.local():
         return
 
+    o_cancopy =repo.cancopy
     class statefulrepo(repo.__class__):
 
         def nodestate(self, node):
                     selected.add(candidate)
             return sorted(selected)
 
+        def cancopy(self):
+            return o_cancopy() and (self._publicheads == self.heads())
+
     repo.__class__ = statefulrepo
 

tests/test-private.t

   (run 'hg update' to get a working copy)
   $ cd ..
   $ hg clone local other2
+  requesting all changes
+  adding changesets
+  adding manifests
+  adding file changes
+  added 2 changesets with 2 changes to 1 files
   updating to branch default
   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
   $ hg -R other2 log --template='{rev}:{node|short}\n'