[PATCH] largefiles: sane abort message when remote does not have a largefiles store
Andrew Pritchard
awpritchard at gmail.com
Fri Oct 21 15:51:53 CDT 2011
# HG changeset patch
# User Andrew Pritchard <awpritchard at gmail.com>
# Date 1319230186 18000
# Node ID 10e6f807dbef72daf7cd8d40e8c26fb174f42a68
# Parent 425045145a47bb86133334a3b15853f0dc1b20bb
largefiles: sane abort message when remote does not have a largefiles store
Also, update test case to match
diff --git a/hgext/largefiles/basestore.py b/hgext/largefiles/basestore.py
--- a/hgext/largefiles/basestore.py
+++ b/hgext/largefiles/basestore.py
@@ -199,4 +199,4 @@
except lfutil.storeprotonotcapable:
pass
- raise util.Abort(_('%s does not appear to be a largefile store'), path)
+ raise util.Abort(_('%s does not appear to be a largefile store') % path)
diff --git a/tests/test-largefiles.t b/tests/test-largefiles.t
--- a/tests/test-largefiles.t
+++ b/tests/test-largefiles.t
@@ -527,7 +527,7 @@
$ hg push http://localhost:8001
pushing to http://localhost:8001/
searching for changes
- abort: ('%s does not appear to be a largefile store', 'http://localhost:8001/')
+ abort: http://localhost:8001/ does not appear to be a largefile store
[255]
$ cd ..
$ kill $(cat serve.pid)
More information about the Mercurial-devel
mailing list