Patchwork D5899: subrepo: use relative path for "already tracked" message

login
register
mail settings
Submitter phabricator
Date Feb. 10, 2019, 3:38 a.m.
Message ID <13a8f2fb5565e24b69a1e8ec2b562113@localhost.localdomain>
Download mbox | patch
Permalink /patch/38625/
State Not Applicable
Headers show

Comments

phabricator - Feb. 10, 2019, 3:38 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGd8cdd5320f75: subrepo: use relative path for &quot;already tracked&quot; message (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5899?vs=13919&id=13980

REVISION DETAIL
  https://phab.mercurial-scm.org/D5899

AFFECTED FILES
  mercurial/subrepo.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/subrepo.py b/mercurial/subrepo.py
--- a/mercurial/subrepo.py
+++ b/mercurial/subrepo.py
@@ -1624,7 +1624,7 @@ 
                 self._gitcommand(command + [f])
 
         for f in rejected:
-            ui.warn(_("%s already tracked!\n") % match.abs(f))
+            ui.warn(_("%s already tracked!\n") % match.rel(f))
 
         return rejected