# HG changeset patch # User Matt Mackall # Date 2011-10-15 17:57:47 # Node ID b12362ab13e7af92ca17fb717dc308f44196ea5b # Parent bd5103819c2e10882e12993003ae54364d2829bf rebase: allow revsets for source and base args diff --git a/hgext/rebase.py b/hgext/rebase.py --- a/hgext/rebase.py +++ b/hgext/rebase.py @@ -174,10 +174,10 @@ def rebase(ui, repo, **opts): 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)]