This is an archive of the discontinued Mercurial Phabricator instance.

repository: introduce an ellipses repo requirement
Changes PlannedPublic

Authored by pulkit on Sep 29 2018, 8:04 PM.

Details

Reviewers
None
Group Reviewers
hg-reviewers
Summary

Right now there is no good way to check whether a repo is ellipses enabled or
not. This patch introduces a ellipses repo requirement which will be used in
upcoming patches.

I have purposefully not included narrow in the requirement name because now they
are looking different concepts to me.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

pulkit created this revision.Sep 29 2018, 8:04 PM
pulkit updated this revision to Diff 11501.Sep 30 2018, 12:10 PM
martinvonz added inline comments.
mercurial/repository.py
22–24

I'm not sure I understand what this says.

The first sentence sounds too obvious to mention (kind of like "when it's done, it should be working well"), but I suspect you mean something else. Do you mean that that's the criteria for dropping the "exp-" prefix (much like the comment for narrow says above)?

I don't know what the second sentence says either. Isn't it already generalized to shallow and ellipses?

pulkit added inline comments.Sep 30 2018, 8:09 PM
mercurial/repository.py
22–24

Yeah, the intent was to say the same thing as the comment about NARROW_REQUIREMENT says but re-reading myself, looks like I messed up. I will update this.

pulkit planned changes to this revision.Oct 1 2018, 12:02 PM

Let's do this step by step and get the wireprotocol command reviewed first. Once that is done, I will resend this one.

New requirements should be documented in help/internals/requirements.txt.

I think this patch (and later patches that start using it, of course) would be a good idea. I suppose it won't make it into 4.8, but we don't have a freeze, so please send an updated version whenever you have time