This is an archive of the discontinued Mercurial Phabricator instance.

shelve: add method for storing mergestate in changeset extras
Needs RevisionPublic

Authored by navaneeth.suresh on Oct 4 2019, 4:44 PM.

Details

Reviewers
baymax
Group Reviewers
hg-reviewers
Summary

We store mergestate records in .hg/merge. This patch adds a method
of storage in changeset extras. This will help in the exchange of
mergestate records to other repos. Also, this can be used by
shelve --unresolved to store the mergestate records.

It uses the storage format supported for hg versions 3.7 or later. For the
time being, I have omitted the storage of the content of the local version

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

martinvonz added inline comments.
mercurial/shelve.py
61

Seems unused

72–111

Most of these seem unused. I would prefer if they were added in a later patch where they are used

439

need a r'' prefix here for py3?

440

''.join(a,b) can be written more simply as a + b

442

This seems surprising in this method. Consider moving it out.

navaneeth.suresh edited the summary of this revision. (Show Details)Oct 5 2019, 9:52 AM
navaneeth.suresh updated this revision to Diff 16813.
navaneeth.suresh marked 5 inline comments as done.Oct 5 2019, 9:53 AM
baymax requested changes to this revision.Jan 24 2020, 12:31 PM

There seems to have been no activities on this Diff for the past 3 Months.

By policy, we are automatically moving it out of the need-review state.

Please, move it back to need-review without hesitation if this diff should still be discussed.

:baymax:need-review-idle:

This revision now requires changes to proceed.Jan 24 2020, 12:31 PM