From: Firehed Date: Tue, 13 Aug 2013 21:16:14 +0000 (-0700) Subject: fixes local svn branch name detection X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=acb90fd9e7753e54aad8d8d70d95eb391560d388;p=arcanist.git fixes local svn branch name detection Summary: Corrects relative vs absolute branch name when using 'arc commit' Test Plan: 'arc commit' on a release branch gave an error before making the change (change was generated from 'branches/yyy' but working copy root is 'https://xxx/branches/yyy', now it does not. Reviewers: epriestley Reviewed By: epriestley CC: Korvin, aran Differential Revision: https://secure.phabricator.com/D6743 --- diff --git a/src/workflow/ArcanistCommitWorkflow.php b/src/workflow/ArcanistCommitWorkflow.php index e54ad9ce..7b0c4552 100644 --- a/src/workflow/ArcanistCommitWorkflow.php +++ b/src/workflow/ArcanistCommitWorkflow.php @@ -321,7 +321,7 @@ EOTEXT } $revision_source = idx($revision, 'branch'); - $current_source = $repository_api->getSourceControlPath(); + $current_source = $repository_api->getBranchName(); if ($revision_source != $current_source) { $confirm[] = "Revision 'D{$revision_id}: {$revision_title}' was generated from ".