diff options
author | chipx86 <chipx86@5efc13c4-1f27-0410-8691-ff2d1f55687e> | 2009-05-19 07:31:57 +0000 |
---|---|---|
committer | chipx86 <chipx86@5efc13c4-1f27-0410-8691-ff2d1f55687e> | 2009-05-19 07:31:57 +0000 |
commit | 772b4db4bda1e15d953727e83bc76e4e256127ae (patch) | |
tree | 79a43ae712e0c30df515424cfa9d423a9c2741dd | |
parent | 73b55bf3afefcc24d3a7d8f382de4a7cc1bc307c (diff) |
Check for "hg: unknown command" as well as "abort:" when checking if
"hg svn" works. Otherwise it assumes the repository is hg-svn.
-rwxr-xr-x | scripts/post-review | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/post-review b/scripts/post-review index 405bed6..05eba08 100755 --- a/scripts/post-review +++ b/scripts/post-review @@ -1740,7 +1740,8 @@ class MercurialClient(SCMClient): svn = execute(["hg", "svn", "info", ], ignore_errors=True) - if not svn.startswith('abort:'): + if (not svn.startswith('abort:') and + not svn.startswith("hg: unknown command")): self.type = 'svn' m = re.search(r'^Repository Root: (.+)$', svn, re.M) |