rebase: allow revsets for source and base args
authorMatt Mackall <mpm@selenic.com>
Sat, 15 Oct 2011 12:57:47 -0500
changeset 15269 b12362ab13e7
parent 15268 bd5103819c2e
child 15270 6cb6064f1d50
rebase: allow revsets for source and base args
hgext/rebase.py
--- 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)]