changeset 15739:be55285470cf

largefiles: tiny code clean up lfutil.islfilesrepo is a preffered way for testing if repo is largefiles enabled
author Michal Sznajder <michalsznajder@gmail.com>
date Tue, 27 Dec 2011 23:56:20 +0100
parents e86dd8dfdea0
children 62aa9305399d
files hgext/largefiles/overrides.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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))