##// END OF EJS Templates
rebase: make --dest understand revsets
Patrick Mezard -
r16566:ae6dddff default
parent child Browse files
Show More
@@ -182,7 +182,7 b' def rebase(ui, repo, **opts):'
182 branch = repo[None].branch()
182 branch = repo[None].branch()
183 dest = repo[branch]
183 dest = repo[branch]
184 else:
184 else:
185 dest = repo[destf]
185 dest = scmutil.revsingle(repo, destf)
186
186
187 if revf:
187 if revf:
188 rebaseset = repo.revs('%lr', revf)
188 rebaseset = repo.revs('%lr', revf)
@@ -158,12 +158,12 b" Rebase with base == '.' => same as no ar"
158 $ cd ..
158 $ cd ..
159
159
160
160
161 Rebase with dest == `hg branch` => same as no arguments (from 3 onto 8):
161 Rebase with dest == branch(.) => same as no arguments (from 3 onto 8):
162
162
163 $ hg clone -q -u 3 a a3
163 $ hg clone -q -u 3 a a3
164 $ cd a3
164 $ cd a3
165
165
166 $ hg rebase --dest `hg branch`
166 $ hg rebase --dest 'branch(.)'
167 saved backup bundle to $TESTTMP/a3/.hg/strip-backup/*-backup.hg (glob)
167 saved backup bundle to $TESTTMP/a3/.hg/strip-backup/*-backup.hg (glob)
168
168
169 $ hg tglog
169 $ hg tglog
General Comments 0
You need to be logged in to leave comments. Login now