Please sign in to comment.
Allow 'arc diff .^' for hg repos
Summary: Previously arc diff for hg only allowed bookmark names, rev numbers, and commit hashes as the input base commit. This was because it escaped all inputs and treated them as raw identifiers. This change makes it treat the input as a revset if the escaped version fails. This allows users to do things like "arc diff .^" when they only want to diff the top commit. Test Plan: Created a stack of commits, master->A->B. hg up B arc diff .^ Verified the diff message only showed B as part of the diff. arc diff .^~ Verified an error occurred ("Commit '.^~' is not a valid Mercurial commit id.") Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Maniphest Tasks: T2888 Differential Revision: https://secure.phabricator.com/D5638
- Loading branch information...
Showing with 20 additions and 7 deletions.