Show More
@@ -996,7 +996,9 b' class revlog:' | |||||
996 | # You should not use this directly and use `_writing` instead |
|
996 | # You should not use this directly and use `_writing` instead | |
997 | try: |
|
997 | try: | |
998 | f = self.opener( |
|
998 | f = self.opener( | |
999 |
self._indexfile, |
|
999 | self._indexfile, | |
|
1000 | mode=b"r+", | |||
|
1001 | checkambig=self.data_config.check_ambig, | |||
1000 | ) |
|
1002 | ) | |
1001 | if self._docket is None: |
|
1003 | if self._docket is None: | |
1002 | f.seek(0, os.SEEK_END) |
|
1004 | f.seek(0, os.SEEK_END) | |
@@ -1005,7 +1007,9 b' class revlog:' | |||||
1005 | return f |
|
1007 | return f | |
1006 | except FileNotFoundError: |
|
1008 | except FileNotFoundError: | |
1007 | return self.opener( |
|
1009 | return self.opener( | |
1008 |
self._indexfile, |
|
1010 | self._indexfile, | |
|
1011 | mode=b"w+", | |||
|
1012 | checkambig=self.data_config.check_ambig, | |||
1009 | ) |
|
1013 | ) | |
1010 |
|
1014 | |||
1011 | def __index_new_fp(self): |
|
1015 | def __index_new_fp(self): | |
@@ -1013,7 +1017,7 b' class revlog:' | |||||
1013 | return self.opener( |
|
1017 | return self.opener( | |
1014 | self._indexfile, |
|
1018 | self._indexfile, | |
1015 | mode=b"w", |
|
1019 | mode=b"w", | |
1016 | checkambig=self._checkambig, |
|
1020 | checkambig=self.data_config.check_ambig, | |
1017 | atomictemp=True, |
|
1021 | atomictemp=True, | |
1018 | ) |
|
1022 | ) | |
1019 |
|
1023 |
@@ -539,7 +539,7 b' def _reorder_filelog_parents(repo, fl, t' | |||||
539 | util.copyfile( |
|
539 | util.copyfile( | |
540 | rl.opener.join(index_file), |
|
540 | rl.opener.join(index_file), | |
541 | rl.opener.join(new_file_path), |
|
541 | rl.opener.join(new_file_path), | |
542 | checkambig=rl._checkambig, |
|
542 | checkambig=rl.data_config.check_ambig, | |
543 | ) |
|
543 | ) | |
544 |
|
544 | |||
545 | with rl.opener(new_file_path, mode=b"r+") as fp: |
|
545 | with rl.opener(new_file_path, mode=b"r+") as fp: |
General Comments 0
You need to be logged in to leave comments.
Login now