Show More
@@ -149,16 +149,6 b' def _prepare_files(tr, ctx, error=False,' | |||
|
149 | 149 | if origctx and origctx.manifestnode() == mn: |
|
150 | 150 | touched = origctx.files() |
|
151 | 151 | |
|
152 | if not writefilecopymeta: | |
|
153 | # If writing only to changeset extras, use None to indicate that | |
|
154 | # no entry should be written. If writing to both, write an empty | |
|
155 | # entry to prevent the reader from falling back to reading | |
|
156 | # filelogs. | |
|
157 | p1copies = p1copies or None | |
|
158 | p2copies = p2copies or None | |
|
159 | filesadded = filesadded or None | |
|
160 | filesremoved = filesremoved or None | |
|
161 | ||
|
162 | 152 | return mn, touched, p1copies, p2copies, filesadded, filesremoved |
|
163 | 153 | |
|
164 | 154 | |
@@ -427,6 +417,16 b' def _extra_with_copies(' | |||
|
427 | 417 | repo, extra, files, p1copies, p2copies, filesadded, filesremoved |
|
428 | 418 | ): |
|
429 | 419 | """encode copy information into a `extra` dictionnary""" |
|
420 | if not _write_copy_meta(repo)[1]: | |
|
421 | # If writing only to changeset extras, use None to indicate that | |
|
422 | # no entry should be written. If writing to both, write an empty | |
|
423 | # entry to prevent the reader from falling back to reading | |
|
424 | # filelogs. | |
|
425 | p1copies = p1copies or None | |
|
426 | p2copies = p2copies or None | |
|
427 | filesadded = filesadded or None | |
|
428 | filesremoved = filesremoved or None | |
|
429 | ||
|
430 | 430 | extrasentries = p1copies, p2copies, filesadded, filesremoved |
|
431 | 431 | if extra is None and any(x is not None for x in extrasentries): |
|
432 | 432 | extra = {} |
General Comments 0
You need to be logged in to leave comments.
Login now