1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-09-20 17:09:01 +02:00
phorge-arcanist/src
durham c8efb41811 Fix hg arc land on hg-svn repos
Summary:
arc land on a hg-svn repository would fail because arc land
uses 'hg push -r' to specify which revs to push which is not supported
by hg-svn. Now we just use 'hg push' which, when used against svn, only
pushes the current branch (which happens to be the branch we're trying to land).

We can't use standard 'hg push' for non-svn repos though because when used
against a vanilla hg repo 'hg push' pushes all branches.

Also remove --new-branch from 'hg push' because it's extremely
unlikely that a person wants to create a new branch on the server via
arc land.

Test Plan:
Ran arc land on a normal hg repo, verified it used 'hg push -r'.
Ran arc land on a hg-svn repo, verified it used 'hg push' and it pushed the
correct changes.

Reviewers: epriestley, sid0, dschleimer

Reviewed By: epriestley

CC: bos, aran, Korvin

Maniphest Tasks: T2403

Differential Revision: https://secure.phabricator.com/D4653
2013-01-25 14:00:52 -08:00
..
configuration Correct spelling for "arc" commands 2012-12-30 16:01:59 -08:00
difference Fix some arcanist warnings 2012-11-21 17:16:52 -08:00
differential Delete license headers from files 2012-11-05 11:16:24 -08:00
docs Make the "this is technical documentation" message of "Arcanist Overview" more clear 2012-08-10 11:37:30 -07:00
events/constant Delete license headers from files 2012-11-05 11:16:24 -08:00
exception Delete license headers from files 2012-11-05 11:16:24 -08:00
hgdaemon Delete license headers from files 2012-11-05 11:16:24 -08:00
infrastructure/testing Delete license headers from files 2012-11-05 11:16:24 -08:00
lint Cache results of repository linters 2013-01-24 16:15:55 -08:00
parser Added support for hg diffs generated in git mode 2013-01-22 18:14:14 -08:00
repository Mark deleted paths as removed in committing 2013-01-23 14:42:49 -08:00
unit Fix whitespace around else 2013-01-16 12:15:46 -08:00
workflow Fix hg arc land on hg-svn repos 2013-01-25 14:00:52 -08:00
workingcopyidentity Delete license headers from files 2012-11-05 11:16:24 -08:00
__phutil_library_init__.php Delete license headers from files 2012-11-05 11:16:24 -08:00
__phutil_library_map__.php CppCheck linter 2013-01-07 08:18:33 -08:00