diff hgext/largefiles/reposetup.py @ 15253:67d010779907

largefiles: improve error reporting - tweak wording of some error messages - use consistent capitalization - always say 'largefile', not 'lfile' - fix I18N problems - only raise Abort for errors the user can do something about
author Greg Ward <greg@gerg.ca>
date Thu, 13 Oct 2011 20:24:29 -0400
parents 6e809bb4f969
children dd03d3a9f888
line wrap: on
line diff
--- a/hgext/largefiles/reposetup.py	Wed Oct 12 20:59:27 2011 -0400
+++ b/hgext/largefiles/reposetup.py	Thu Oct 13 20:24:29 2011 -0400
@@ -287,10 +287,11 @@
                     return orig(text=text, user=user, date=date, match=match,
                                     force=force, editor=editor, extra=extra)
 
-                for file in match.files():
-                    if lfutil.isstandin(file):
+                for f in match.files():
+                    if lfutil.isstandin(f):
                         raise util.Abort(
-                            "Don't commit largefile standin. Commit largefile.")
+                            _('file "%s" is a largefile standin') % f,
+                            hint=('commit the largefile itself instead'))
 
                 # Case 2: user calls commit with specified patterns: refresh
                 # any matching big files.