equal
deleted
inserted
replaced
80 if lfile: |
80 if lfile: |
81 ui.warn(_('%s already a largefile\n') % f) |
81 ui.warn(_('%s already a largefile\n') % f) |
82 continue |
82 continue |
83 |
83 |
84 if exact or not exists: |
84 if exact or not exists: |
|
85 wfile = repo.wjoin(f) |
|
86 |
|
87 # In case the file was removed previously, but not committed |
|
88 # (issue3507) |
|
89 if not os.path.exists(wfile): |
|
90 continue |
|
91 |
85 abovemin = (lfsize and |
92 abovemin = (lfsize and |
86 os.lstat(repo.wjoin(f)).st_size >= lfsize * 1024 * 1024) |
93 os.lstat(wfile).st_size >= lfsize * 1024 * 1024) |
87 if large or abovemin or (lfmatcher and lfmatcher(f)): |
94 if large or abovemin or (lfmatcher and lfmatcher(f)): |
88 lfnames.append(f) |
95 lfnames.append(f) |
89 if ui.verbose or not exact: |
96 if ui.verbose or not exact: |
90 ui.status(_('adding %s as a largefile\n') % m.rel(f)) |
97 ui.status(_('adding %s as a largefile\n') % m.rel(f)) |
91 |
98 |