Mercurial > public > mercurial-scm > hg
diff hgext/mq.py @ 7637:1d54e2f6c0b7
error: move repo errors
rename NoCapability to CapabilityError
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 12 Jan 2009 10:42:31 -0600 |
parents | fb32ae9c76e7 |
children | ae7a614a6a57 |
line wrap: on
line diff
--- a/hgext/mq.py Sun Jan 11 23:04:24 2009 -0600 +++ b/hgext/mq.py Mon Jan 12 10:42:31 2009 -0600 @@ -31,9 +31,8 @@ from mercurial.i18n import _ from mercurial.node import bin, hex, short -from mercurial.repo import RepoError from mercurial import commands, cmdutil, hg, patch, revlog, util -from mercurial import repair, extensions, url +from mercurial import repair, extensions, url, error import os, sys, re, errno commands.norepo += " qclone" @@ -1741,7 +1740,7 @@ patchespath = opts['patches'] or patchdir(sr) try: pr = hg.repository(ui, patchespath) - except RepoError: + except error.RepoError: raise util.Abort(_('versioned patch repository not found' ' (see qinit -c)')) qbase, destrev = None, None @@ -1757,7 +1756,7 @@ elif sr.capable('lookup'): try: qbase = sr.lookup('qbase') - except RepoError: + except error.RepoError: pass ui.note(_('cloning main repo\n')) sr, dr = hg.clone(ui, sr.url(), dest,