--- a/hgext/rebase.py Wed May 02 11:43:12 2012 +0200
+++ b/hgext/rebase.py Tue May 01 10:14:35 2012 +0200
@@ -182,7 +182,7 @@
branch = repo[None].branch()
dest = repo[branch]
else:
- dest = repo[destf]
+ dest = scmutil.revsingle(repo, destf)
if revf:
rebaseset = repo.revs('%lr', revf)
--- a/tests/test-rebase-parameters.t Wed May 02 11:43:12 2012 +0200
+++ b/tests/test-rebase-parameters.t Tue May 01 10:14:35 2012 +0200
@@ -158,12 +158,12 @@
$ cd ..
-Rebase with dest == `hg branch` => same as no arguments (from 3 onto 8):
+Rebase with dest == branch(.) => same as no arguments (from 3 onto 8):
$ hg clone -q -u 3 a a3
$ cd a3
- $ hg rebase --dest `hg branch`
+ $ hg rebase --dest 'branch(.)'
saved backup bundle to $TESTTMP/a3/.hg/strip-backup/*-backup.hg (glob)
$ hg tglog