( )⚙ D5899 subrepo: use relative path for "already tracked" message

This is an archive of the discontinued Mercurial Phabricator instance.

subrepo: use relative path for "already tracked" message
ClosedPublic

Authored by martinvonz on Feb 8 2019, 1:48 PM.

Details

Summary

From 932de135041f (subrepo: warn when adding already tracked files in
gitsubrepo, 2015-02-27):

The file is printed with abs() to be consistent with how it is
printed in workingctx, even though that is inconsistent with how
added files are printed in verbose mode.

However, a few year later, the same author wrote 7008f6819002
(context: name files relative to cwd in warning messages, 2017-07-11)
and now it's inconsistent. This fixes that inconsistency.

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.