hgext/largefiles/overrides.py
changeset 51703 ca7bde5dbafb
parent 51700 7f0cb9ee0534
child 51733 e14ed26b72cb
equal deleted inserted replaced
51702:b0a4de6c14f8 51703:ca7bde5dbafb
   895         with extensions.wrappedfunction(util, 'copyfile', overridecopyfile):
   895         with extensions.wrappedfunction(util, 'copyfile', overridecopyfile):
   896             with extensions.wrappedfunction(scmutil, 'match', overridematch):
   896             with extensions.wrappedfunction(scmutil, 'match', overridematch):
   897                 result += orig(ui, repo, listpats, opts, rename)
   897                 result += orig(ui, repo, listpats, opts, rename)
   898 
   898 
   899         lfdirstate = lfutil.openlfdirstate(ui, repo)
   899         lfdirstate = lfutil.openlfdirstate(ui, repo)
   900         for (src, dest) in copiedfiles:
   900         for src, dest in copiedfiles:
   901             if lfutil.shortname in src and dest.startswith(
   901             if lfutil.shortname in src and dest.startswith(
   902                 repo.wjoin(lfutil.shortname)
   902                 repo.wjoin(lfutil.shortname)
   903             ):
   903             ):
   904                 srclfile = src.replace(repo.wjoin(lfutil.standin(b'')), b'')
   904                 srclfile = src.replace(repo.wjoin(lfutil.standin(b'')), b'')
   905                 destlfile = dest.replace(repo.wjoin(lfutil.standin(b'')), b'')
   905                 destlfile = dest.replace(repo.wjoin(lfutil.standin(b'')), b'')