]> khamidou — GitHub mirrors - arcanist.git/commit
Better heuristic for checking for hgsubversion
authordurham <durham@fb.com>
Fri, 23 Aug 2013 23:40:15 +0000 (16:40 -0700)
committerdurham <durham@fb.com>
Fri, 23 Aug 2013 23:40:15 +0000 (16:40 -0700)
commit57bc582ad273c238938ac53a7c0d4eb1fdeb013d
tree05295eae9d3638c7c1a13ad7176001041ba42588
parent1f3cb63db201217be36d39e5c2601ee0c11e78ad
Better heuristic for checking for hgsubversion

Summary:
The existing heuristic checks for the existence of .hg/svn, but it
turns out that this directory can exist in a non-svn hg repo if the user or a
script ever runs a 'hg svn' command.

Now we check for a file inside .hg/svn.  The hgsubversion maintainer said this
particular file will always be present in hgsubversion repos.

Test Plan:
arc land --trace
Verified it used 'hg push' and not 'hg push -r ...'. This indicates it
considered the repo to be an hgsubversion repo.

Reviewers: epriestley

Reviewed By: epriestley

CC: dschleimer, sid0, Korvin, aran
Differential Revision: https://secure.phabricator.com/D6807
src/repository/api/ArcanistMercurialAPI.php