This is an archive of the discontinued Mercurial Phabricator instance.

hg: move share._getsrcrepo into core
ClosedPublic

Authored by indygreg on Feb 12 2018, 7:31 PM.

Details

Summary

The fact we were calling this from extensions was a sign that it
should live in core.

We were also able to remove some extra attribute aliases from the
share extension.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

indygreg created this revision.Feb 12 2018, 7:31 PM
pulkit added a subscriber: pulkit.Feb 13 2018, 4:19 AM

Fb's hg-experimental also uses a utility module just for this function, so I am +1 on moving this to core. https://bitbucket.org/facebook/hg-experimental/src/f27f094e91553d3cae5167c0b1c42ae940f888d5/hgext3rd/shareutil.py

durin42 accepted this revision.Feb 13 2018, 11:19 AM
This revision is now accepted and ready to land.Feb 13 2018, 11:19 AM
This revision was automatically updated to reflect the committed changes.