]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Change arc feature to use it's own config key for the start default
authordurham <durham@fb.com>
Thu, 14 Mar 2013 00:01:23 +0000 (17:01 -0700)
committerdurham <durham@fb.com>
Thu, 14 Mar 2013 00:01:23 +0000 (17:01 -0700)
Summary:
Changes arc feature to read 'arc.feature.start.default' instead
of 'arc.land.onto.default'.  In our usage we actually need to fork off
a different branch than we land to, so separating these is useful.

Test Plan:
Set arc.land.onto.default = master
Set arc.feature.start.default = bar
arc feature foo
cat .git/config
Verified the foo branch tracked bar

Reviewers: epriestley, nh

Reviewed By: epriestley

CC: wez, dschleimer, aran, Korvin
Differential Revision: https://secure.phabricator.com/D5336

src/workflow/ArcanistFeatureWorkflow.php

index 008a0a54ebe32538e9c4e7e9a0f124cc2494b1eb..5ae1adac978ad1e32e883c711c9c39ae0201a15b 100644 (file)
@@ -33,8 +33,8 @@ EOTEXT
           With __name__, it creates or checks out a branch. If the branch
           __name__ doesn't exist and is in format D123 then the branch of
           revision D123 is checked out. Use __start__ to specify where the new
-          branch will start. Using 'arc.land.onto.default' to set the default
-          land location will also set the default feature start location.
+          branch will start. Use 'arc.feature.start.default' to set the default
+          feature start location.
 EOTEXT
       );
   }
@@ -110,7 +110,7 @@ EOTEXT
       $start = $names[1];
     } else {
       $start = $this->getWorkingCopy()->getConfigFromAnySource(
-        'arc.land.onto.default');
+        'arc.feature.start.default');
     }
 
     $branches = $api->getAllBranches();