Mercurial > hg
comparison hgext/largefiles/overrides.py @ 15170:c1a4a3220711
largefiles: fix over-long lines
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 29 Sep 2011 17:04:57 -0500 |
parents | aa262fff87ac |
children | 7c604d8c7e83 |
comparison
equal
deleted
inserted
replaced
15169:aa262fff87ac | 15170:c1a4a3220711 |
---|---|
85 lfsize = ui.config(lfutil.longname, 'size', default='10') | 85 lfsize = ui.config(lfutil.longname, 'size', default='10') |
86 if lfsize: | 86 if lfsize: |
87 try: | 87 try: |
88 lfsize = int(lfsize) | 88 lfsize = int(lfsize) |
89 except ValueError: | 89 except ValueError: |
90 raise util.Abort(_('largefiles: size must be an integer, was %s\n') % lfsize) | 90 raise util.Abort(_('largefiles: size must be an integer, was %s\n') |
91 % lfsize) | |
91 | 92 |
92 lfmatcher = None | 93 lfmatcher = None |
93 if os.path.exists(repo.wjoin(lfutil.shortname)): | 94 if os.path.exists(repo.wjoin(lfutil.shortname)): |
94 lfpats = ui.config(lfutil.longname, 'patterns', default=()) | 95 lfpats = ui.config(lfutil.longname, 'patterns', default=()) |
95 if lfpats: | 96 if lfpats: |
528 matches = override_match(repo, pats, opts) | 529 matches = override_match(repo, pats, opts) |
529 orig(ui, repo, *pats, **opts) | 530 orig(ui, repo, *pats, **opts) |
530 finally: | 531 finally: |
531 restorematchfn() | 532 restorematchfn() |
532 lfileslist = getattr(repo, '_lfilestoupdate', []) | 533 lfileslist = getattr(repo, '_lfilestoupdate', []) |
533 lfcommands.updatelfiles(ui, repo, filelist=lfileslist, printmessage=False) | 534 lfcommands.updatelfiles(ui, repo, filelist=lfileslist, |
535 printmessage=False) | |
534 # Empty out the lfiles list so we start fresh next time | 536 # Empty out the lfiles list so we start fresh next time |
535 repo._lfilestoupdate = [] | 537 repo._lfilestoupdate = [] |
536 for lfile in modified: | 538 for lfile in modified: |
537 if lfile in lfileslist: | 539 if lfile in lfileslist: |
538 if os.path.exists(repo.wjoin(lfutil.standin(lfile))) and lfile\ | 540 if os.path.exists(repo.wjoin(lfutil.standin(lfile))) and lfile\ |