Submitter | Boris Feld |
---|---|
Date | Nov. 26, 2018, 6:22 p.m. |
Message ID | <cc7d970d99eb242dbe2d.1543256567@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/36779/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/vfs.py b/mercurial/vfs.py --- a/mercurial/vfs.py +++ b/mercurial/vfs.py @@ -339,6 +339,8 @@ class vfs(abstractvfs): def _auditpath(self, path, mode): if self._audit: + if os.path.isabs(path) and path.startswith(self.base): + path = os.path.relpath(path, self.base) r = util.checkosfilename(path) if r: raise error.Abort("%s: %r" % (r, path))