Mercurial > hg
comparison tests/test-completion.t @ 41755:a4358f7345b4
context: introduce p[12]copies() methods and debugp[12]copies commands
As mentioned earlier, I'm working on support for storing copy metadata
in the changeset instead of in the filelog.
In order to transition a repo from storing metadata in filelogs to
storing it in the changeset, I'm going to provide a config option for
reading the metadata from the changeset, but falling back to getting
it from the filelog if it's not in the changeset. In this compatiblity
mode, the changeset-optmized algorithms will be used. We will then
need to convert the filelog copy metadata to look like that provided
by changeset copy metadata. This patch introduces methods that do just
that.
By having these methods here, we can start writing changeset-optimized
algorithms that should work already before we add any support for
storing the metadata in the changesets.
This commit also includes new debugp[12]copies commands and exercises
them in test-copies.t.
Differential Revision: https://phab.mercurial-scm.org/D5990
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 18 Jan 2019 13:13:30 -0800 |
parents | 7dc160a57025 |
children | 6ae1a776dd1a |
comparison
equal
deleted
inserted
replaced
41754:d5edb5d3a337 | 41755:a4358f7345b4 |
---|---|
101 debuglocks | 101 debuglocks |
102 debugmanifestfulltextcache | 102 debugmanifestfulltextcache |
103 debugmergestate | 103 debugmergestate |
104 debugnamecomplete | 104 debugnamecomplete |
105 debugobsolete | 105 debugobsolete |
106 debugp1copies | |
107 debugp2copies | |
106 debugpathcomplete | 108 debugpathcomplete |
107 debugpathcopies | 109 debugpathcopies |
108 debugpeer | 110 debugpeer |
109 debugpickmergetool | 111 debugpickmergetool |
110 debugpushkey | 112 debugpushkey |
278 debuglocks: force-lock, force-wlock, set-lock, set-wlock | 280 debuglocks: force-lock, force-wlock, set-lock, set-wlock |
279 debugmanifestfulltextcache: clear, add | 281 debugmanifestfulltextcache: clear, add |
280 debugmergestate: | 282 debugmergestate: |
281 debugnamecomplete: | 283 debugnamecomplete: |
282 debugobsolete: flags, record-parents, rev, exclusive, index, delete, date, user, template | 284 debugobsolete: flags, record-parents, rev, exclusive, index, delete, date, user, template |
285 debugp1copies: rev | |
286 debugp2copies: rev | |
283 debugpathcomplete: full, normal, added, removed | 287 debugpathcomplete: full, normal, added, removed |
284 debugpathcopies: include, exclude | 288 debugpathcopies: include, exclude |
285 debugpeer: | 289 debugpeer: |
286 debugpickmergetool: rev, changedelete, include, exclude, tool | 290 debugpickmergetool: rev, changedelete, include, exclude, tool |
287 debugpushkey: | 291 debugpushkey: |