hgext/largefiles/reposetup.py
changeset 15253 67d010779907
parent 15252 6e809bb4f969
child 15254 dd03d3a9f888
equal deleted inserted replaced
15252:6e809bb4f969 15253:67d010779907
   285                     lfdirstate.write()
   285                     lfdirstate.write()
   286 
   286 
   287                     return orig(text=text, user=user, date=date, match=match,
   287                     return orig(text=text, user=user, date=date, match=match,
   288                                     force=force, editor=editor, extra=extra)
   288                                     force=force, editor=editor, extra=extra)
   289 
   289 
   290                 for file in match.files():
   290                 for f in match.files():
   291                     if lfutil.isstandin(file):
   291                     if lfutil.isstandin(f):
   292                         raise util.Abort(
   292                         raise util.Abort(
   293                             "Don't commit largefile standin. Commit largefile.")
   293                             _('file "%s" is a largefile standin') % f,
       
   294                             hint=('commit the largefile itself instead'))
   294 
   295 
   295                 # Case 2: user calls commit with specified patterns: refresh
   296                 # Case 2: user calls commit with specified patterns: refresh
   296                 # any matching big files.
   297                 # any matching big files.
   297                 smatcher = lfutil.composestandinmatcher(self, match)
   298                 smatcher = lfutil.composestandinmatcher(self, match)
   298                 standins = lfutil.dirstate_walk(self.dirstate, smatcher)
   299                 standins = lfutil.dirstate_walk(self.dirstate, smatcher)