( )⚙ D3088 extdatasource: use revsymbol() for converting to node

This is an archive of the discontinued Mercurial Phabricator instance.

extdatasource: use revsymbol() for converting to node
ClosedPublic

Authored by martinvonz on Apr 4 2018, 6:53 PM.

Details

Summary

It's unclear what we want to support here. Perhaps it should just be
nodeids? It doesn't make much sense to share revnums between repos,
and bookmarks are probably too unstable. I used scmutil.revsymbol() to
preserve the current behavior. We can change later if we want to.

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

martinvonz created this revision.Apr 4 2018, 6:53 PM
martinvonz edited the summary of this revision. (Show Details)Apr 5 2018, 1:37 AM
martinvonz retitled this revision from extdatasource: use repo.lookup() for converting to node to extdatasource: use revsymbol() for converting to node.
yuja accepted this revision.Apr 5 2018, 9:26 AM
yuja added a subscriber: yuja.

Perhaps it should just be nodeids?

I think it should be, but the test disagree. Maybe we can make BC since
it's still an experimental feature.

This revision is now accepted and ready to land.Apr 5 2018, 9:26 AM
This revision was automatically updated to reflect the committed changes.