##// END OF EJS Templates
typing: add basic type hints to vfs.py...
typing: add basic type hints to vfs.py Again, there's a lot more that could be done, but this sticks to the obviously correct stuff that is related to primitives or `vfs` objects. Hopefully this helps smoke out more path related bytes vs str issues in TortoiseHg. PyCharm seems smart enough to apply hints from annotated superclass functions, but pytype isn't (according to the *.pyi file generated), so those are annotated too. There was some discussion about changing the default path arg from `None` to `b''` in order to avoid the more verbose `Optional` declarations. This would be more in line with `os.path.join()` (which rejects `None`, but ignores empty strings), and still not change the behavior for callers still passing `None` (because the check is `if path` instead of an explicit check for `None`). But I didn't want to hold this up while discussing that, so this documents what _is_.

File last commit:

r50415:eb02decd default
r50468:cc9a6005 default
Show More
Cargo.toml
51 lines | 1.2 KiB | text/plain | TOMLLexer
Georges Racinet
rust: pure Rust lazyancestors iterator...
r40307 [package]
name = "hg-core"
version = "0.1.0"
authors = ["Georges Racinet <gracinet@anybox.fr>"]
description = "Mercurial pure Rust core library, with no assumption on Python bindings (FFI)"
Raphaël Gomès
rust: switch hg-core and hg-cpython to rust 2018 edition...
r42828 edition = "2018"
Georges Racinet
rust: pure Rust lazyancestors iterator...
r40307
[lib]
name = "hg"
Georges Racinet
rust: translated random test of missingancestors...
r41841
Raphaël Gomès
rust-dirstate: add rust implementation of `parse_dirstate` and `pack_dirstate`...
r42488 [dependencies]
Raphaël Gomès
rust-hg-core: upgrade dependencies...
r49808 bitflags = "1.3.2"
bytes-cast = "0.2.0"
byteorder = "1.4.3"
derive_more = "0.99.17"
hashbrown = { version = "0.9.1", features = ["rayon"] }
home = "0.5.3"
Mads Kiilerich
rust: relax im-rc dependency to allow minor updates...
r50140 im-rc = "15.0"
Raphaël Gomès
rust-hg-core: upgrade dependencies...
r49808 itertools = "0.10.3"
Raphaël Gomès
rust: update all dependencies...
r45090 lazy_static = "1.4.0"
Simon Sapin
dirstate-v2: Replace the 32-bit `mode` field with two bits...
r49009 libc = "0.2"
Raphaël Gomès
rust: fix unsound `OwningDirstateMap`...
r49864 ouroboros = "0.15.0"
Martin von Zweigbergk
rust: upgrade `rand*` crates...
r49403 rand = "0.8.4"
rand_pcg = "0.3.1"
Raphaël Gomès
rust-hg-core: upgrade dependencies...
r49808 rand_distr = "0.4.3"
rayon = "1.5.1"
regex = "1.5.5"
sha-1 = "0.10.0"
twox-hash = "1.6.2"
Raphaël Gomès
rust-utils: add util for canonical path...
r44783 same-file = "1.0.6"
Simon Sapin
dirstate-v2: Skip readdir in status based on directory mtime...
r48138 tempfile = "3.1.0"
Mads Kiilerich
rust: bump to memmap2 0.5.3, micro-timer 0.4.0, and crossbeam-channel 0.5.0...
r50312 crossbeam-channel = "0.5.0"
micro-timer = "0.4.0"
Raphaël Gomès
rust: add logging utils...
r45027 log = "0.4.8"
Mads Kiilerich
rust: bump to memmap2 0.5.3, micro-timer 0.4.0, and crossbeam-channel 0.5.0...
r50312 memmap2 = { version = "0.5.3", features = ["stable_deref_trait"] }
Antoine Cezar
hg-core: Add a limited read only `revlog` implementation...
r46097 zstd = "0.5.3"
Simon Sapin
rust: Upgrade to format-bytes 0.3...
r49323 format-bytes = "0.3.0"
Arseniy Alekseyev
dirstate-v2: skip evaluation of hgignore regex on cached directories...
r50415 # once_cell 1.15 uses edition 2021, while the heptapod CI
# uses an old version of Cargo that doesn't support it.
once_cell = "=1.14.0"
Antoine Cezar
hg-core: Add a limited read only `revlog` implementation...
r46097
Raphaël Gomès
rust: update minimum supported Rust compiler version...
r46189 # We don't use the `miniz-oxide` backend to not change rhg benchmarks and until
# we have a clearer view of which backend is the fastest.
Antoine Cezar
hg-core: Add a limited read only `revlog` implementation...
r46097 [dependencies.flate2]
Raphaël Gomès
rust-hg-core: upgrade dependencies...
r49808 version = "1.0.22"
Antoine Cezar
hg-core: Add a limited read only `revlog` implementation...
r46097 features = ["zlib"]
default-features = false
Raphaël Gomès
rust-pathauditor: add Rust implementation of the `pathauditor`...
r44737
[dev-dependencies]
Raphaël Gomès
rust-hg-core: upgrade dependencies...
r49808 clap = "2.34.0"
pretty_assertions = "1.1.0"