hgext/largefiles/lfutil.py
changeset 50928 d718eddf01d9
parent 50889 3934d85cf8e9
child 51624 e32f23f15623
equal deleted inserted replaced
50927:7a8ea1397816 50928:d718eddf01d9
   812     ``repo._lfstatuswriters`` as "default" writer function.
   812     ``repo._lfstatuswriters`` as "default" writer function.
   813 
   813 
   814     Otherwise, this returns the function to always write out (or
   814     Otherwise, this returns the function to always write out (or
   815     ignore if ``not forcibly``) status.
   815     ignore if ``not forcibly``) status.
   816     """
   816     """
   817     if forcibly is None and util.safehasattr(repo, '_largefilesenabled'):
   817     if forcibly is None and hasattr(repo, '_largefilesenabled'):
   818         return repo._lfstatuswriters[-1]
   818         return repo._lfstatuswriters[-1]
   819     else:
   819     else:
   820         if forcibly:
   820         if forcibly:
   821             return ui.status  # forcibly WRITE OUT
   821             return ui.status  # forcibly WRITE OUT
   822         else:
   822         else: