[qsync] abort properly of a patches repository does not exists
authorDavid Douard <david.douard@logilab.fr>
Wed, 30 May 2012 14:17:33 +0200
changeset 251 a60d11973ff3
parent 250 5e47d361206a
child 252 470232cea503
[qsync] abort properly of a patches repository does not exists
hgext/qsync.py
--- a/hgext/qsync.py	Fri May 25 19:51:32 2012 +0200
+++ b/hgext/qsync.py	Wed May 30 14:17:33 2012 +0200
@@ -58,6 +58,9 @@
     if opts['review_all']:
         review = 'all'
     mqrepo = repo.mq.qrepo()
+    if mqrepo is None:
+        raise util.Abort('No patches repository')
+
     try:
         parent = mqrepo[BRANCHNAME]
     except error.RepoLookupError: