revlog: fix a regression with null revision
Introduced in the patch which fixes
issue3497
Part of that patch was erroneously submitted and it shouldn't be in the code
rebase: check no-op before checking phase (
issue3891)
This could lead to user confusion, because phases aren't really involved at
all when attempting to perform a no-op rebase.