comparison hgext/largefiles/overrides.py @ 51690:493034cc3265

black: format the codebase with 23.3.0 The CI has moved to 23.3.0, which is the last version that supports 3.7 at runtime, so we should honor this change. # skip-blame mass-reformating only
author Raphaël Gomès <rgomes@octobus.net>
date Thu, 18 Jul 2024 12:36:12 +0200
parents ea3343104f07
children 7f0cb9ee0534
comparison
equal deleted inserted replaced
51689:39e2b2d062c1 51690:493034cc3265
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'')