This is an archive of the discontinued Mercurial Phabricator instance.

context: add specialized way of getting copy source file only
ClosedPublic

Authored by martinvonz on Feb 23 2019, 12:08 PM.

Details

Summary

I'm working on support for storing copy metadata in the changeset
instead of the filelog. I don't intend to include the file nodeid
there, but most callers don't need that anyway. This patch introduces
a method similar to ctx.renamed(), but the new method returns only the
source filename, not the nodeid. Subsequent patches will move callers
over to this new method.

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.