##// END OF EJS Templates
commitctx: no longer use the `writecopiesto` variable in the function...
marmoute -
r45790:4eb6466e default
parent child Browse files
Show More
@@ -47,7 +47,6 def commitctx(repo, ctx, error=False, or
47 if repo.filecopiesmode == b'changeset-sidedata':
47 if repo.filecopiesmode == b'changeset-sidedata':
48 writechangesetcopy = True
48 writechangesetcopy = True
49 writefilecopymeta = True
49 writefilecopymeta = True
50 writecopiesto = None
51 else:
50 else:
52 writecopiesto = repo.ui.config(b'experimental', b'copies.write-to')
51 writecopiesto = repo.ui.config(b'experimental', b'copies.write-to')
53 writefilecopymeta = writecopiesto != b'changeset-only'
52 writefilecopymeta = writecopiesto != b'changeset-only'
@@ -134,7 +133,7 def commitctx(repo, ctx, error=False, or
134 files = touched
133 files = touched
135 mn = _commit_manifest(tr, linkrev, ctx, mctx, files, added, drop)
134 mn = _commit_manifest(tr, linkrev, ctx, mctx, files, added, drop)
136
135
137 if writecopiesto == b'changeset-only':
136 if not writefilecopymeta:
138 # If writing only to changeset extras, use None to indicate that
137 # If writing only to changeset extras, use None to indicate that
139 # no entry should be written. If writing to both, write an empty
138 # no entry should be written. If writing to both, write an empty
140 # entry to prevent the reader from falling back to reading
139 # entry to prevent the reader from falling back to reading
General Comments 0
You need to be logged in to leave comments. Login now