mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
rebase: handle bookmarks matching revset function names (issue3950)
We handled these correctly with all rev-specifying options except, somehow, -r/--rev.
This commit is contained in:
parent
8e759a3be5
commit
3967183235
@ -186,7 +186,7 @@ def rebase(ui, repo, **opts):
|
||||
dest = scmutil.revsingle(repo, destf)
|
||||
|
||||
if revf:
|
||||
rebaseset = repo.revs('%lr', revf)
|
||||
rebaseset = scmutil.revrange(repo, revf)
|
||||
elif srcf:
|
||||
src = scmutil.revrange(repo, [srcf])
|
||||
rebaseset = repo.revs('(%ld)::', src)
|
||||
|
@ -159,4 +159,18 @@ rebase --continue with bookmarks present (issue3802)
|
||||
o 0: 'A' bookmarks:
|
||||
|
||||
|
||||
$ cd ..
|
||||
ensure that bookmarks given the names of revset functions can be used
|
||||
as --rev arguments (issue3950)
|
||||
|
||||
$ hg update -q 3
|
||||
$ echo bimble > bimble
|
||||
$ hg add bimble
|
||||
$ hg commit -q -m 'bisect'
|
||||
$ echo e >> bimble
|
||||
$ hg ci -m bisect2
|
||||
$ echo e >> bimble
|
||||
$ hg ci -m bisect3
|
||||
$ hg book bisect
|
||||
$ hg update -q Y
|
||||
$ hg rebase -r '"bisect"^^::"bisect"^' -r bisect -d Z
|
||||
saved backup bundle to $TESTTMP/a3/.hg/strip-backup/345c90f326a4-backup.hg (glob)
|
||||
|
Loading…
Reference in New Issue
Block a user