sapling/edenscm
Stefan Filip e985cb2472 match: use "" instead of "." for root directory (API)
Summary:
Change originally made by martinvonz in the mercurial repository:
Backporting https://phab.mercurial-scm.org/D6401

> I think '' is generally a better value for the root directory than '.'
is. For example, os.path.join('', 'foo') => 'foo', while
os.path.join('.', 'foo') => './foo'.
This patch mostly makes it so we use '' internally in
match.py. However, it also affects the API in visitdir(),
visitchildrenset() and files(). The two former now also accept '' as
input. I've updated the callers of these methods. I've also added a
deprecation warning for passing '.' (for external callers). The only
caller I could find that was affected by files() returning '' instead
of '.' was in dirstate.walk(). I've updated that.
The next few patches show some workarounds we can remove by using ''
instead of '.'.

Reviewed By: quark-zju

Differential Revision: D16716743

fbshipit-source-id: 4cc18b8cdf2f8a9dc44c42729fb46796a16c3244
2019-08-12 14:34:36 -07:00
..
hgdemandimport demandimport: blacklist IPython dependencies 2019-07-29 13:45:44 -07:00
hgext remotefilelog: add censorship handling at a filelog level 2019-08-12 08:04:58 -07:00
mercurial match: use "" instead of "." for root directory (API) 2019-08-12 14:34:36 -07:00
__init__.py edenscm: move sys.path handling to top-level edenscm 2019-07-25 17:43:41 -07:00