comparison mercurial/configitems.py @ 42141:0e41f40b01cc

copies: add config option for writing copy metadata to file and/or changset This introduces a config option that lets you choose to write copy metadata to the changeset extras instead of to filelog. There's also an option to write it to both places. I imagine that may possibly be useful when transitioning an existing repo. The copy metadata is stored as two fields in extras: one for copies since p1 and one for copies since p2. I may need to add more information later in order to make copy tracing faster. Specifically, I'm thinking out recording which files were added or removed so that copies._chaincopies() doesn't have to look at the manifest for that. But that would just be an optimization and that can be added once we know if it's necessary. I have also considered saving space by using replacing the destination file path by an index into the "files" list, but that can also be changed later (but before the feature is ready to release). Differential Revision: https://phab.mercurial-scm.org/D6183
author Martin von Zweigbergk <martinvonz@google.com>
date Wed, 27 Dec 2017 19:49:36 -0800
parents 4ee906aa7b60
children d345627d104b
comparison
equal deleted inserted replaced
42140:a4483e380c3e 42141:0e41f40b01cc
486 default=100, 486 default=100,
487 ) 487 )
488 coreconfigitem('experimental', 'copies.read-from', 488 coreconfigitem('experimental', 'copies.read-from',
489 default="filelog-only", 489 default="filelog-only",
490 ) 490 )
491 coreconfigitem('experimental', 'copies.write-to',
492 default='filelog-only',
493 )
491 coreconfigitem('experimental', 'crecordtest', 494 coreconfigitem('experimental', 'crecordtest',
492 default=None, 495 default=None,
493 ) 496 )
494 coreconfigitem('experimental', 'directaccess', 497 coreconfigitem('experimental', 'directaccess',
495 default=False, 498 default=False,