hgext/largefiles/reposetup.py
changeset 22914 c95db3208a33
parent 22911 509e2cbee679
child 22919 1982bdb7e2cc
equal deleted inserted replaced
22913:cb4449921a1d 22914:c95db3208a33
    10 import copy
    10 import copy
    11 import os
    11 import os
    12 
    12 
    13 from mercurial import error, manifest, match as match_, util
    13 from mercurial import error, manifest, match as match_, util
    14 from mercurial.i18n import _
    14 from mercurial.i18n import _
    15 from mercurial import localrepo
    15 from mercurial import localrepo, scmutil
    16 
    16 
    17 import lfcommands
    17 import lfcommands
    18 import lfutil
    18 import lfutil
    19 
    19 
    20 def reposetup(ui, repo):
    20 def reposetup(ui, repo):
   240             finally:
   240             finally:
   241                 if wlock:
   241                 if wlock:
   242                     wlock.release()
   242                     wlock.release()
   243 
   243 
   244             self.lfstatus = True
   244             self.lfstatus = True
   245             return result
   245             return scmutil.status(*result)
   246 
   246 
   247         # As part of committing, copy all of the largefiles into the
   247         # As part of committing, copy all of the largefiles into the
   248         # cache.
   248         # cache.
   249         def commitctx(self, *args, **kwargs):
   249         def commitctx(self, *args, **kwargs):
   250             node = super(lfilesrepo, self).commitctx(*args, **kwargs)
   250             node = super(lfilesrepo, self).commitctx(*args, **kwargs)