##// END OF EJS Templates
match: use '' instead of '.' for root directory (API)...
match: use '' instead of '.' for root directory (API) 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 '.'. Differential Revision: https://phab.mercurial-scm.org/D6401

File last commit:

r42528:27d6956d default
r42528:27d6956d default
Show More
next
34 lines | 1011 B | text/plain | TextLexer
Martin von Zweigbergk
releasenotes: add a file in which to record release notes...
r42457 == New Features ==
* New config `commands.commit.post-status` shows status after successful
commit.
Martin von Zweigbergk
log: add config for making `hg log -G` always topo-sorted...
r42500
== New Experimental Features ==
* New config `experimental.log.topo` makes `hg log -G` use
topological sorting. This is especially useful for aliases since it
lets the alias accept an `-r` option while still using topological
sorting with or without the `-r` (unlike if you use the `sort(...,
topo)` revset).
Martin von Zweigbergk
releasenotes: add a file in which to record release notes...
r42457 == Bug Fixes ==
== Backwards Compatibility Changes ==
Martin von Zweigbergk
relnotes: mention removed support for mixed log graph lines...
r42521 * Removed (experimental) support for log graph lines mixing
parent/grandparent styles. Setting
e.g. `experimental.graphstyle.parent = !` and
`experimental.graphstyle.grandparent = 3.` would use `!` for the
first three lines of the graph and then `.`. This is no longer
supported.
Martin von Zweigbergk
releasenotes: add a file in which to record release notes...
r42457
== Internal API Changes ==
* Matchers are no longer iterable. Use `match.files()` instead.
Martin von Zweigbergk
match: use '' instead of '.' for root directory (API)...
r42528
* `match.visitdir()` and `match.visitchildrenset()` now expect the
empty string instead of '.' to indicate the root directory.