##// END OF EJS Templates
log: fix handling of root (or empty) path provided by matcher (issue6478)...
log: fix handling of root (or empty) path provided by matcher (issue6478) Since 27d6956d386b "match: use '' instead of '.' for root directory", '.' should be translated to ''. We can't blame repo.file() about this because an empty string is invalid as a file path, but I found at least two callers (_makematcher() and revset.filelog()) would crash because of this path[0]. So let's make repo.file() accept an empty string. path[0] == b'/' wouldn't work on Python 3 anyways.

File last commit:

r47343:755c31a1 default
r47352:9842c00f stable
Show More
Cargo.toml
16 lines | 318 B | application/toml | TOMLLexer
[package]
name = "rhg"
version = "0.1.0"
authors = [
"Antoine Cezar <antoine.cezar@octobus.net>",
"Raphaël Gomès <raphael.gomes@octobus.net>",
]
edition = "2018"
[dependencies]
hg-core = { path = "../hg-core"}
clap = "2.33.1"
log = "0.4.11"
micro-timer = "0.3.1"
env_logger = "0.7.1"
format-bytes = "0.1.3"