[PATCH 1 of 2] largefiles: tiny code clean up
michalsznajder at gmail.com
michalsznajder at gmail.com
Tue Dec 27 17:14:02 CST 2011
# HG changeset patch
# User Michal Sznajder <michalsznajder at gmail.com>
# Date 1325026580 -3600
# Node ID bf75d457784e6dff76117a1868ba05cc5b7205e8
# Parent 5b384b7f48d5c4d4b043f5cf7ca78f3f2869846e
largefiles: tiny code clean up
lfutil.islfilesrepo is a preffered way for testing if repo is largefiles enabled
diff --git a/hgext/largefiles/overrides.py b/hgext/largefiles/overrides.py
--- a/hgext/largefiles/overrides.py
+++ b/hgext/largefiles/overrides.py
@@ -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))
More information about the Mercurial-devel
mailing list