mirror of
https://we.phorge.it/source/arcanist.git
synced 2025-01-22 20:51:09 +01:00
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
This commit is contained in:
parent
1f3cb63db2
commit
57bc582ad2
1 changed files with 1 additions and 1 deletions
|
@ -917,7 +917,7 @@ final class ArcanistMercurialAPI extends ArcanistRepositoryAPI {
|
|||
}
|
||||
|
||||
public function isHgSubversionRepo() {
|
||||
return file_exists($this->getPath('.hg/svn'));
|
||||
return file_exists($this->getPath('.hg/svn/rev_map'));
|
||||
}
|
||||
|
||||
public function getSubversionInfo() {
|
||||
|
|
Loading…
Reference in a new issue