Mercurial > public > mercurial-scm > hg
diff rust/hg-core/src/operations/debugdata.rs @ 45806:7252f5237352
hg-core: fix path encoding usage
1. Hash encoded path are in `.hg/store/dh` instead of `.hg/store/data`.
2. Path encoded index and data files may not have the same parent path.
It is not just about replacing `.i` by `.d`
Differential Revision: https://phab.mercurial-scm.org/D9121
author | Antoine cezar<acezar@chwitlabs.fr> |
---|---|
date | Mon, 28 Sep 2020 17:13:15 +0200 |
parents | b56df13a0450 |
children | 57dc78861196 |
line wrap: on
line diff
--- a/rust/hg-core/src/operations/debugdata.rs Mon Oct 26 11:45:32 2020 +0100 +++ b/rust/hg-core/src/operations/debugdata.rs Mon Sep 28 17:13:15 2020 +0200 @@ -102,7 +102,7 @@ DebugDataKind::Changelog => root.join(".hg/store/00changelog.i"), DebugDataKind::Manifest => root.join(".hg/store/00manifest.i"), }; - let revlog = Revlog::open(&index_file)?; + let revlog = Revlog::open(&index_file, None)?; let data = revlog.get_rev_data(rev)?; Ok(data)