--- a/hgext/largefiles/lfcommands.py Mon Oct 05 22:49:24 2015 -0700
+++ b/hgext/largefiles/lfcommands.py Thu Oct 08 12:55:45 2015 -0700
@@ -62,9 +62,9 @@
size = lfutil.getminsize(ui, True, opts.get('size'), default=None)
if not hg.islocal(src):
- raise util.Abort(_('%s is not a local Mercurial repo') % src)
+ raise error.Abort(_('%s is not a local Mercurial repo') % src)
if not hg.islocal(dest):
- raise util.Abort(_('%s is not a local Mercurial repo') % dest)
+ raise error.Abort(_('%s is not a local Mercurial repo') % dest)
rsrc = hg.repository(ui, src)
ui.status(_('initializing destination %s\n') % dest)
@@ -139,7 +139,7 @@
path = lfutil.findfile(rsrc, hash)
if path is None:
- raise util.Abort(_("missing largefile for \'%s\' in %s")
+ raise error.Abort(_("missing largefile for '%s' in %s")
% (realname, realrev))
fp = open(path, 'rb')
@@ -157,7 +157,7 @@
found, missing = downloadlfiles(ui, rsrc)
if missing != 0:
- raise util.Abort(_("all largefiles must be present locally"))
+ raise error.Abort(_("all largefiles must be present locally"))
orig = convcmd.converter
convcmd.converter = converter
@@ -196,7 +196,7 @@
islfile |= renamedlfile
if 'l' in fctx.flags():
if renamedlfile:
- raise util.Abort(
+ raise error.Abort(
_('renamed/copied largefile %s becomes symlink')
% f)
islfile = False
@@ -213,7 +213,7 @@
if 'l' in fctx.flags():
renamed = fctx.renamed()
if renamed and renamed[0] in lfiles:
- raise util.Abort(_('largefile %s becomes symlink') % f)
+ raise error.Abort(_('largefile %s becomes symlink') % f)
# largefile was modified, update standins
m = util.sha1('')
@@ -355,7 +355,7 @@
total=len(files))
source = lfutil.findfile(rsrc, hash)
if not source:
- raise util.Abort(_('largefile %s missing from store'
+ raise error.Abort(_('largefile %s missing from store'
' (needs to be uploaded)') % hash)
# XXX check for errors here
store.put(source, hash)
@@ -539,7 +539,7 @@
revs = opts.get('rev', [])
if not revs:
- raise util.Abort(_('no revisions specified'))
+ raise error.Abort(_('no revisions specified'))
revs = scmutil.revrange(repo, revs)
numcached = 0