$ hg rebase -r bisect -d foo hg: parse error: can't use bisect here
I suppose it interferes with revset.
Should work, should not interfere with revsets. Compare: hg bookmark bisect hg log -r bisect <- succeed, interpreted as non-revset when revset fails hg log -r 'bisect^' <- fails, not a valid non-revset either hg log -r '"bisect"^' <- quoted, not treated as a function The problem is here: http://www.selenic.com/hg/file/1bef6f99a12d/hgext/rebase.py#l188 This treats the incoming revision argument as a known-valid revset, rather than a possible-revset-or-bare-rev-that-the-user-gave-us. Notably, the very next stanza does this right, by passing the arg through scmutil.revrange first.
Fixed by http://selenic.com/repo/hg/rev/5528c31c629c Bryan O'Sullivan <bryano@fb.com> rebase: handle bookmarks matching revset function names (issue3950) We handled these correctly with all rev-specifying options except, somehow, -r/--rev. (please test the fix)
Fixed by http://selenic.com/repo/hg/rev/14ec82594f47 Bryan O'Sullivan <bryano@fb.com> rebase: handle bookmarks matching revset function names (issue3950) We handled these correctly with all rev-specifying options except, somehow, -r/--rev. (please test the fix)