diff mercurial/bundlerepo.py @ 17913:03e552aaae67

bundle: add revset expression to show bundle contents (issue3487) bundle() revset expression returns all changes that are present in the bundle file (no matter whether they are in the repo or not). Bundle file should be specified via -R option.
author Tomasz Kleczek <tkleczek@fb.com>
date Wed, 31 Oct 2012 16:23:23 -0700
parents 1d710fe5ee0e
children a39fe76c4c65
line wrap: on
line diff
--- a/mercurial/bundlerepo.py	Wed Oct 24 23:09:31 2012 +0200
+++ b/mercurial/bundlerepo.py	Wed Oct 31 16:23:23 2012 -0700
@@ -33,6 +33,7 @@
         self.basemap = {}
         n = len(self)
         chain = None
+        self.bundlenodes = []
         while True:
             chunkdata = bundle.deltachunk(chain)
             if not chunkdata:
@@ -48,6 +49,7 @@
             start = bundle.tell() - size
 
             link = linkmapper(cs)
+            self.bundlenodes.append(node)
             if node in self.nodemap:
                 # this can happen if two branches make the same change
                 chain = node