D7065: examples: allow the fix configuration to work from any directory

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Mon Oct 14 19:03:08 EDT 2019


martinvonz added a comment.
martinvonz added a subscriber: hooper.


  In D7065#103835 <https://phab.mercurial-scm.org/D7065#103835>, @mharbison72 wrote:
  
  > In D7065#103834 <https://phab.mercurial-scm.org/D7065#103834>, @martinvonz wrote:
  >
  >> It's unfortunate that this is necessary. I'll see if I can fix fix.py to always interpret patterns relative to the repo root.
  >
  > I think that's the most intuitive way to consume these patterns.  But won't that muddy the water with the documentation saying, for example, that `glob:` is relative to cwd?  Also, there's relative patterns in the file pattern to consider.  (I'm not against your proposal at all; I'm just wondering aloud because I always get tripped up by the slightly modified ignore rules.)
  
  I talked to @hooper about this and they agreed that using repo-relative paths is almost always what the user wants. I've sent D7101 <https://phab.mercurial-scm.org/D7101> for that.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7065/new/

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

To: mharbison72, #hg-reviewers
Cc: hooper, martinvonz, mjpieters, mercurial-devel


More information about the Mercurial-devel mailing list