This is an archive of the discontinued Mercurial Phabricator instance.

context: switch ctx() use to changectx()
ClosedPublic

Authored by phillco on Oct 23 2017, 3:44 PM.

Details

Summary

I added ctx() to overlayworkingfilectx, (and before that, absentfilectx),
because absentfilectx had reference to this function in its cmp() function.

But the standard is actually changectx(), and no other class implements
ctx(). So let's use the standard name.

(As a result, I'm not sure that part of the absentfilectx comparator ever
worked! It was written before I added either function.)

This will be necessary in the next patch.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

phillco set the repository for this revision to rHG Mercurial.
phillco updated this revision to Diff 3550.Nov 16 2017, 12:08 AM
phillco set the repository for this revision to rHG Mercurial.Nov 16 2017, 12:12 AM
phillco added a subscriber: mercurial-devel.
phillco edited the summary of this revision. (Show Details)Dec 1 2017, 2:59 AM
phillco retitled this revision from context: add ctx() to workingfilectx and absentfilectx to context: switch ctx() use to changectx().
phillco updated this revision to Diff 4036.
phillco updated this revision to Diff 4037.Dec 1 2017, 3:02 AM
phillco added a subscriber: martinvonz.

I made D1527 the new bottom of the stack, per @martinvonz's request. It actually caught a mistake that made me significantly change this commit :)

phillco edited the summary of this revision. (Show Details)Dec 1 2017, 3:05 AM
phillco edited the summary of this revision. (Show Details)Dec 1 2017, 3:09 AM
dlax accepted this revision.Dec 1 2017, 3:56 AM
phillco edited the summary of this revision. (Show Details)Dec 1 2017, 2:21 PM
phillco added a subscriber: sid0.

cc @sid0 on the absentfilectx thing, maybe he knows more

This revision was automatically updated to reflect the committed changes.