mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
rebase: transform the smartset to a list before comparing with a list
This is highly suboptimal but smartsets are not comparable to lists yet.
This commit is contained in:
parent
04745ea203
commit
24a85b292d
@ -276,7 +276,10 @@ def rebase(ui, repo, **opts):
|
||||
'(children(ancestor(%ld, %d)) and ::(%ld))::',
|
||||
base, dest, base)
|
||||
if not rebaseset:
|
||||
if base == [dest.rev()]:
|
||||
# transform to list because smartsets are not comparable to
|
||||
# lists. This should be improved to honor lazyness of
|
||||
# smartset.
|
||||
if list(base) == [dest.rev()]:
|
||||
if basef:
|
||||
ui.status(_('nothing to rebase - %s is both "base"'
|
||||
' and destination\n') % dest)
|
||||
|
Loading…
Reference in New Issue
Block a user