hgext/largefiles/lfutil.py
branchstable
changeset 24158 d414c28db84d
parent 23892 f2b6f37d537b
child 24336 c9f4ef967a1d
--- a/hgext/largefiles/lfutil.py	Wed Feb 18 22:17:35 2015 +0900
+++ b/hgext/largefiles/lfutil.py	Thu Feb 26 06:03:39 2015 +0900
@@ -577,7 +577,7 @@
     Otherwise, this returns the function to always write out (or
     ignore if ``not forcibly``) status.
     '''
-    if forcibly is None:
+    if forcibly is None and util.safehasattr(repo, '_largefilesenabled'):
         return repo._lfstatuswriters[-1]
     else:
         if forcibly: