Commits

Martin Geisler  committed 82a1394

rebased to 73cfb7a5aa56

  • Participants
  • Parent commits 4a80428

Comments (0)

Files changed (1)

File implementation

 # HG changeset patch
 # User Henrik Stuart <hg@hstuart.dk>
 # Date 1297282594 -3600
-# Node ID 03d485eadae7d57f416a55a4816f461b11134f31
-# Parent  63307feb59dd039e42a0961781bd6a116b746e55
+# Node ID 1351df650cb0dc4e3685acc733b86ea76a21400c
+# Parent  73cfb7a5aa5630e70f77bf4399b07f64c89b0dfa
 add support for marking changesets as dead
 
 Marking a changeset as dead is, if it is a head, a way to delete a
          finally:
              if lock is not None:
                  lock.release()
-@@ -1460,7 +1483,7 @@
-         if extranodes is None:
-             # can we go through the fast path ?
-             heads.sort()
--            allheads = self.heads()
-+            allheads = self.heads(dead=True)
-             allheads.sort()
-             if heads == allheads:
-                 return self._changegroup(msng_cl_lst, source)
-@@ -1648,9 +1671,9 @@
+@@ -1452,7 +1475,7 @@
+ 
+         # can we go through the fast path ?
+         heads.sort()
+-        allheads = self.heads()
++        allheads = self.heads(dead=True)
+         allheads.sort()
+         if heads == allheads:
+             return self._changegroup(msng_cl_lst, source)
+@@ -1623,9 +1646,9 @@
  
          return changegroup.unbundle10(util.chunkbuffer(gengroup()), 'UN')
  
  
      def _changegroup(self, nodes, source):
          """Compute the changegroup of all nodes that we have that a recipient
-@@ -1736,7 +1759,8 @@
+@@ -1711,7 +1734,8 @@
  
          return changegroup.unbundle10(util.chunkbuffer(gengroup()), 'UN')
  
          """Add the changegroup returned by source.read() to this repo.
          srctype is a string like 'push', 'pull', or 'unbundle'.  url is
          the URL of the repo where this changegroup is coming from.
-@@ -1960,7 +1984,7 @@
+@@ -1935,7 +1959,7 @@
          finally:
              lock.release()
  
          '''clone remote repository.
  
          keyword arguments:
-@@ -1975,7 +1999,7 @@
+@@ -1950,7 +1974,7 @@
          # and format flags on "stream" capability, and use
          # uncompressed only if compatible.
  
              # 'stream' means remote revlog format is revlogv1 only
              if remote.capable('stream'):
                  return self.stream_in(remote, set(('revlogv1',)))
-@@ -1986,7 +2010,7 @@
+@@ -1961,7 +1985,7 @@
                  # if we support it, stream in and adjust our requirements
                  if not streamreqs - self.supportedformats:
                      return self.stream_in(remote, streamreqs)