changeset 15269:b12362ab13e7

rebase: allow revsets for source and base args
author Matt Mackall <mpm@selenic.com>
date Sat, 15 Oct 2011 12:57:47 -0500
parents bd5103819c2e
children 6cb6064f1d50
files hgext/rebase.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/rebase.py	Sat Oct 15 12:52:43 2011 -0500
+++ b/hgext/rebase.py	Sat Oct 15 12:57:47 2011 -0500
@@ -174,10 +174,10 @@
                 dest = repo[destf]
 
             if srcf:
-                revsetargs = ('(%s)::', srcf)
+                revsetargs = ('(%r)::', srcf)
             else:
                 base = basef or '.'
-                revsetargs = ('(children(ancestor(%s, %d)) and ::(%s))::',
+                revsetargs = ('(children(ancestor(%r, %d)) and ::(%r))::',
                              base, dest, base)
 
             rebaseset = [c.rev() for c in repo.set(*revsetargs)]