# HG changeset patch # User David Douard # Date 1338380253 -7200 # Node ID a60d11973ff3a0018acde22ac54c343493b01ae8 # Parent 5e47d361206a7742e87790d4b20a974f0f9af526 [qsync] abort properly of a patches repository does not exists diff -r 5e47d361206a -r a60d11973ff3 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: