Commits

Pierre-Yves David committed 19b22ad

clone support

Comments (0)

Files changed (2)

             finally:
                 f.close()
 
+        ### local clone support
+
+        def cancopy(self):
+            return not bool(self._obsobjrels) # you can't copy if there is obsolete
+
         ### pull // push support
 
         def pull(self, remote, *args, **kwargs):

tests/test-obsolete.t

   0
   - 1f0dee641bb7
 
+clone support
 
+  $ hg clone . ../cloned
+  requesting all changes
+  adding changesets
+  adding manifests
+  adding file changes
+  added 8 changesets with 8 changes to 8 files (+4 heads)
+  updating to branch default
+  4 files updated, 0 files merged, 0 files removed, 0 files unresolved
 
+  $ qlog -R ../cloned
+  7
+  - 909a0fb57e5d
+  4
+  - 725c380fe99b
+  3
+  - 0d3f46688ccc
+  1
+  - 7c3bad9141dc
+  0
+  - 1f0dee641bb7
+