largefiles: tiny code clean up
lfutil.islfilesrepo is a preffered way for testing if repo is largefiles enabled
--- a/hgext/largefiles/overrides.py Wed Dec 21 18:20:15 2011 +0100
+++ b/hgext/largefiles/overrides.py Tue Dec 27 23:56:20 2011 +0100
@@ -63,7 +63,7 @@
ui, lfutil.islfilesrepo(repo), opts.pop('lfsize', None))
lfmatcher = None
- if os.path.exists(repo.wjoin(lfutil.shortname)):
+ if lfutil.islfilesrepo(repo):
lfpats = ui.configlist(lfutil.longname, 'patterns', default=[])
if lfpats:
lfmatcher = match_.match(repo.root, '', list(lfpats))