1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-22 23:02:41 +01:00

Change arc feature to use it's own config key for the start default

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
This commit is contained in:
durham 2013-03-13 17:01:23 -07:00
parent 4fd8b88833
commit b06237cb2d

View file

@ -33,8 +33,8 @@ EOTEXT
With __name__, it creates or checks out a branch. If the branch 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 __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 revision D123 is checked out. Use __start__ to specify where the new
branch will start. Using 'arc.land.onto.default' to set the default branch will start. Use 'arc.feature.start.default' to set the default
land location will also set the default feature start location. feature start location.
EOTEXT EOTEXT
); );
} }
@ -110,7 +110,7 @@ EOTEXT
$start = $names[1]; $start = $names[1];
} else { } else {
$start = $this->getWorkingCopy()->getConfigFromAnySource( $start = $this->getWorkingCopy()->getConfigFromAnySource(
'arc.land.onto.default'); 'arc.feature.start.default');
} }
$branches = $api->getAllBranches(); $branches = $api->getAllBranches();