From 772b4db4bda1e15d953727e83bc76e4e256127ae Mon Sep 17 00:00:00 2001 From: chipx86 Date: Tue, 19 May 2009 07:31:57 +0000 Subject: Check for "hg: unknown command" as well as "abort:" when checking if "hg svn" works. Otherwise it assumes the repository is hg-svn. --- scripts/post-review | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3