Commits

Brendan Cully committed c94f8cd

Fix rdiff with remote revision and bundle

  • Participants
  • Parent commits 42b8611

Comments (0)

Files changed (3)

             else:
                 if 'changegroupsubset' not in other.capabilities:
                     raise util.Abort(_("Partial incoming cannot be done because other repository doesn't support changegroupsubset."))
-                cg = other.changegroupsubset(incoming, rrev, 'incoming')
+                cg = other.changegroupsubset(incoming, rrev and [rrev] or [],
+                                             'incoming')
             bundle = changegroup.writebundle(cg, '', 'HG10UN')
             other = hg.repository(ui, bundle)
 
 
 cd ../base
 hg diff --git ../b1
+echo '% remote revision'
+hg diff --git -r . -r tip ../b1
 
 mkdir d1
 echo foo > d1/foo
 @@ -1,1 +1,2 @@
  foo
 +bar
+% remote revision
+comparing with ../b1
+searching for changes
+diff --git a/foo b/foo
+--- a/foo
++++ b/foo
+@@ -1,1 +1,2 @@
+ foo
++bar
 adding d1/foo
 % cross-branch diff
 comparing with ../b1