hgext/largefiles/overrides.py
branchstable
changeset 15369 b4ea79f88268
parent 15323 19368c54a774
child 15383 155d0f8fb7e5
equal deleted inserted replaced
15367:b357a972d6cd 15369:b4ea79f88268
    85                 ui.warn(_('%s already a largefile\n') % f)
    85                 ui.warn(_('%s already a largefile\n') % f)
    86             continue
    86             continue
    87 
    87 
    88         if exact or not exists:
    88         if exact or not exists:
    89             abovemin = (lfsize and
    89             abovemin = (lfsize and
    90                         os.path.getsize(repo.wjoin(f)) >= lfsize * 1024 * 1024)
    90                         os.lstat(repo.wjoin(f)).st_size >= lfsize * 1024 * 1024)
    91             if large or abovemin or (lfmatcher and lfmatcher(f)):
    91             if large or abovemin or (lfmatcher and lfmatcher(f)):
    92                 lfnames.append(f)
    92                 lfnames.append(f)
    93                 if ui.verbose or not exact:
    93                 if ui.verbose or not exact:
    94                     ui.status(_('adding %s as a largefile\n') % m.rel(f))
    94                     ui.status(_('adding %s as a largefile\n') % m.rel(f))
    95 
    95