D5907: copy: respect ui.relative-paths in copy/rename

yuja (Yuya Nishihara) phabricator at mercurial-scm.org
Sat Feb 9 22:45:18 EST 2019


yuja added a comment.


  > - a/mercurial/scmutil.py +++ b/mercurial/scmutil.py @@ -51,8 +51,10 @@ )
  > 
  >   if pycompat.iswindows: +    from . import windows as platform from . import scmwindows as scmplatform else: +    from . import posix as platform from . import scmposix as scmplatform
  
  It's `util.localpath()`.
  
  > @@ -757,7 +759,7 @@
  > 
  >       pathto = repo.pathto
  >       return lambda f: pathto(f, cwd)
  >   else:
  > 
  > - return lambda f: f +        return platform.localpath
  
  I've removed this since it seemed unrelated to this specific patch. It might
  break some Windows tests, but it should already be broken since https://phab.mercurial-scm.org/rHGa997163e7fae2fe933f8d0c6d1013205befd1ee4.
  Some (or all?) `uipathfn()`s have to respect `ui.slash` config on Windows.

REPOSITORY
  rHG Mercurial

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

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


More information about the Mercurial-devel mailing list