[PATCH] largefiles: check if largefile could be found when archiving (issue3193)
Matt Mackall
mpm at selenic.com
Wed Jan 18 15:14:31 CST 2012
On Wed, 2012-01-18 at 14:22 +0100, Na'Tosha Bard wrote:
> # HG changeset patch
> # User Na'Tosha Bard <natosha at unity3d.com>
> # Date 1326892783 -3600
> # Node ID 8b7f9bb8980274ec209c97ff7cb459ebed180b88
> # Parent 8560ae7c93a234b8c965b05e08b9a0a91710f6ce
> largefiles: check if largefile could be found when archiving (issue3193)
>
> diff -r 8560ae7c93a2 -r 8b7f9bb89802 hgext/largefiles/overrides.py
> --- a/hgext/largefiles/overrides.py Wed Jan 18 13:41:03 2012 +0100
> +++ b/hgext/largefiles/overrides.py Wed Jan 18 14:19:43 2012 +0100
> @@ -720,6 +720,10 @@
> getdata = ctx[f].data
> if lfutil.isstandin(f):
> path = lfutil.findfile(repo, getdata().strip())
> + if path is None:
> + raise util.Abort(
> + _('largefile %s not found in repo store or system cache'
> + % lfutil.splitstandin(f)))
You need to do:
_('foo %s') % s
not
_('foo %s' % s)
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial-devel
mailing list