This is an archive of the discontinued Mercurial Phabricator instance.

hiddenoverride: be more conservative about pinning nodes
ClosedPublic

Authored by quark on Jul 20 2017, 5:55 PM.
Tags
None
Subscribers

Details

Summary

I think the code works well but it might leave unnecessary pinned nodes
around. This patch makes it more conservative so that only a movement
(update or bookmark) on an obsolete commit would write new pinned nodes.

Diff Detail

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

Event Timeline

quark created this revision.Jul 20 2017, 5:55 PM
Herald added a reviewer: Restricted Project. · View Herald TranscriptJul 20 2017, 5:55 PM
quark added a comment.EditedJul 21 2017, 1:21 AM

I'm pushing this since it seems helpful to solve some weird cases that people have reported. That might prevent another rollback on Friday's release.

stash accepted this revision.Jul 21 2017, 3:46 AM
stash added a subscriber: stash.
stash added inline comments.
hgext3rd/fbamend/hiddenoverride.py
115

Smth is wrong with a comment

This revision is now accepted and ready to land.Jul 21 2017, 3:46 AM
This revision was automatically updated to reflect the committed changes.