changeset 251:a60d11973ff3

[qsync] abort properly of a patches repository does not exists
author David Douard <david.douard@logilab.fr>
date Wed, 30 May 2012 14:17:33 +0200
parents 5e47d361206a
children 470232cea503
files hgext/qsync.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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: