rebase: fix rebase with no common ancestors (issue4446)
The new rebase revset didn't check for the case when there are no common
ancestors. Now it does. The new behavior should be the same as the pre-3.2
behavior. Added a test.
Testing that hghave does not crash when checking features $ "$TESTDIR/hghave" --test-features 2>/dev/null