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:
Pierre-Yves David 2014-10-07 00:31:53 -07:00
parent 04745ea203
commit 24a85b292d

View File

@ -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)