##// END OF EJS Templates
rhg: add resolve_file_args to path_utils.rs...
rhg: add resolve_file_args to path_utils.rs Extracted logic for resolving `FILE ...` arguments from cat.rs into a new function in path_utils.rs. I plan to use this for rhg annotate. I tried to reuse hg::utils::files::canonical_path instead, but that didn't work. For example it reports a InsideDotHg error for any path containing "..".

File last commit:

r51969:786b6225 default
r53438:f33f37ac tip default
Show More
test-revlog-diff-relative-to-nullrev.sh
41 lines | 1.2 KiB | application/x-sh | BashLexer
/ tests / bundles / test-revlog-diff-relative-to-nullrev.sh
Arseniy Alekseyev
test-revlog: test a repository that contains a diff against nullrev...
r50104 #!/bin/bash
#
# Make sure to patch mercurial to create the delta against nullrev
test-revlog: update the patch used to test delta againts nullrev...
r50132 #
# # Parent cdb85d0512b81031d4a7b30d6a5ddbe69ef1a876
#
# diff --git a/mercurial/revlogutils/deltas.py b/mercurial/revlogutils/deltas.py
# --- a/mercurial/revlogutils/deltas.py
# +++ b/mercurial/revlogutils/deltas.py
# @@ -1117,7 +1117,10 @@ class deltacomputer:
# candidaterevs = next(groups)
#
Arseniy Alekseyev
test-revlog: test a repository that contains a diff against nullrev...
r50104 # if deltainfo is None:
test-revlog: update the patch used to test delta againts nullrev...
r50132 # - deltainfo = self._fullsnapshotinfo(fh, revinfo, target_rev)
revlog: remove legacy usage of `_generaldelta`...
r51939 # + if revlog.delta_config.general_delta:
test-revlog: update the patch used to test delta againts nullrev...
r50132 # + deltainfo = self._builddeltainfo(revinfo, nullrev, fh)
# + else:
# + deltainfo = self._fullsnapshotinfo(fh, revinfo, target_rev)
Arseniy Alekseyev
test-revlog: test a repository that contains a diff against nullrev...
r50104
cd "`dirname \"$0\"`"
export HGRCPATH=
export HGMODULEPOLICY=py
rm -rf nullrev-diff
../../hg init nullrev-diff --config format.revlog-compression=zlib
cd nullrev-diff
echo hi > a
../../../hg commit -Am root-B
test-revlog: adds a non-root revision with a delta against nullrev...
r50133 echo ho > a
../../../hg commit -Am child-A
test-revlog: adds a new root revision with a delta against nullrev...
r50134 hg up null
echo ha > a
../../../hg commit -Am root-A
debug-delta-chain: print less data by default...
r51969 ../../../hg debugdeltachain a --all-info
Arseniy Alekseyev
test-revlog: test a repository that contains a diff against nullrev...
r50104 rm -rf .hg/cache/ .hg/wcache/
cd ..
tar cf test-revlog-diff-relative-to-nullrev.tar nullrev-diff
rm -rf nullrev-diff