]> khamidou — GitHub mirrors - arcanist.git/commit
Fix `arc diff` in SVN with paths
authorepriestley <git@epriestley.com>
Thu, 20 Dec 2012 19:12:30 +0000 (11:12 -0800)
committerepriestley <git@epriestley.com>
Thu, 20 Dec 2012 19:12:30 +0000 (11:12 -0800)
commitffdf44e298bc2186e3b65c0650c27d1c04f7a89b
treeedbde396aff3f27395aceed559b1646af4f77960
parent219dbe237447e91275a5aff8e3a7dd2c68c04bbe
Fix `arc diff` in SVN with paths

Summary:
Recently, in D4097 or one of the precursors I refactored this. However, when $rev is null parseBaseCommitArgument() throws ("This VCS does not support commit ranges."). Shield the call so it only happens if if $rev is nonempty (we still want to make the call, so "arc lint --rev x" on SVN will throw and inform the user that "--rev" is incorrect usage).

(@vrana, this was reported by FB and might be worth pushing.)

Test Plan: Ran "arc diff --preview <path>". Grepped for other parseBaseCommitArgument() callsites and verified they don't have similar issues.

Reviewers: vrana, btrahan, chad

Reviewed By: chad

CC: aran
Differential Revision: https://secure.phabricator.com/D4241
src/workflow/ArcanistBaseWorkflow.php