]> khamidou — GitHub mirrors - arcanist.git/commitdiff
fixes local svn branch name detection
authorFirehed <eric@ericstern.com>
Tue, 13 Aug 2013 21:16:14 +0000 (14:16 -0700)
committerepriestley <git@epriestley.com>
Tue, 13 Aug 2013 21:16:14 +0000 (14:16 -0700)
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

src/workflow/ArcanistCommitWorkflow.php

index e54ad9ce254bd383c372aa0acfa812fcef9e0cc5..7b0c4552bb642a48589f1fecc7f5a1395cd6c122 100644 (file)
@@ -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 ".