summaryrefslogtreecommitdiff
path: root/scripts/post-review
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/post-review')
-rwxr-xr-xscripts/post-review3
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)