Commits

David Douard committed a60d119

[qsync] abort properly of a patches repository does not exists

  • Participants
  • Parent commits 5e47d36

Comments (0)

Files changed (1)

File hgext/qsync.py

     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: