Mercurial > public > mercurial-scm > hg
comparison mercurial/copies.py @ 51699:ca7bde5dbafb
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 | 7f0cb9ee0534 |
children | f4733654f144 |
comparison
equal
deleted
inserted
replaced
51698:b0a4de6c14f8 | 51699:ca7bde5dbafb |
---|---|
913 self.renamedelete = {} if renamedelete is None else renamedelete | 913 self.renamedelete = {} if renamedelete is None else renamedelete |
914 self.dirmove = {} if dirmove is None else dirmove | 914 self.dirmove = {} if dirmove is None else dirmove |
915 self.movewithdir = {} if movewithdir is None else movewithdir | 915 self.movewithdir = {} if movewithdir is None else movewithdir |
916 | 916 |
917 def __repr__(self): | 917 def __repr__(self): |
918 return '<branch_copies\n copy=%r\n renamedelete=%r\n dirmove=%r\n movewithdir=%r\n>' % ( | 918 return ( |
919 self.copy, | 919 '<branch_copies\n copy=%r\n renamedelete=%r\n dirmove=%r\n movewithdir=%r\n>' |
920 self.renamedelete, | 920 % ( |
921 self.dirmove, | 921 self.copy, |
922 self.movewithdir, | 922 self.renamedelete, |
923 self.dirmove, | |
924 self.movewithdir, | |
925 ) | |
923 ) | 926 ) |
924 | 927 |
925 | 928 |
926 def _fullcopytracing(repo, c1, c2, base): | 929 def _fullcopytracing(repo, c1, c2, base): |
927 """The full copytracing algorithm which finds all the new files that were | 930 """The full copytracing algorithm which finds all the new files that were |