This is an archive of the discontinued Mercurial Phabricator instance.

fbamend: precursor -> predecessor
ClosedPublic

Authored by ryanmce on Aug 17 2017, 1:29 PM.

Details

Reviewers
simonfar
simpkins
Group Reviewers
Restricted Project
Commits
rFBHGXaf24a7fe2383: fbamend: precursor -> predecessor
Summary

Get in line with upstream name change and eliminate develwarns.

Diff Detail

Repository
rFBHGX Facebook Mercurial Extensions
Branch
default
Lint
Lint OK
Unit
Unit Test Errors

Event Timeline

ryanmce created this revision.Aug 17 2017, 1:29 PM
Herald added a reviewer: Restricted Project. · View Herald TranscriptAug 17 2017, 1:29 PM
simonfar accepted this revision.Aug 17 2017, 3:19 PM
simonfar added a subscriber: simonfar.

Just nits, some of them probably old.

hgext3rd/fbamend/revsets.py
41

This comment looks wrong - but I think it might be right.

52

Can you reinsert the s in the function name?

58

This comment is wrong.

hgext3rd/fbamend/unamend.py
23

This looks odd, too.

This revision is now accepted and ready to land.Aug 17 2017, 3:19 PM
simpkins accepted this revision.Aug 17 2017, 6:46 PM
simpkins added a subscriber: simpkins.
simpkins added inline comments.
hgext3rd/fbamend/revsets.py
55

I believe it should work to just say

@revsetpredicate('precursors(set)')
@revsetpredicate('predecessors(set)')
def predecessors(repo, subset, x):
    # ...

The current code is fine too, though, if you prefer that.

quark added a subscriber: quark.Aug 17 2017, 7:37 PM
quark added inline comments.
hgext3rd/fbamend/revsets.py
38–50

This could be removed since the upstream has successors implemented (and is actually allsuccessors which is more useful).

ryanmce added inline comments.Aug 18 2017, 5:37 AM
hgext3rd/fbamend/revsets.py
38–50

Oh cool, I'll remove it then.

55

I'll give that a shot, it looks preferable to me.

58

I didn't actually change it apart from the search-replace; it was wrong originally but I guess I can fix it up since I'm here :-)

hgext3rd/fbamend/unamend.py
23

I agree.

ryanmce marked 6 inline comments as done.Aug 18 2017, 5:54 AM
ryanmce added inline comments.
hgext3rd/fbamend/revsets.py
52

I've deleted it per @quark

ryanmce marked 3 inline comments as done.Aug 18 2017, 6:05 AM
ryanmce updated this revision to Diff 1061.

per suggestions

This revision was automatically updated to reflect the committed changes.