##// 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:

r50885:ffd19d73 default
r53438:f33f37ac default
Show More
test-dirstate-backup.t
21 lines | 305 B | text/troff | Tads3Lexer
/ tests / test-dirstate-backup.t
Mark Thomas
tests: add a test demonstrating failure to clean up dirstate backups...
r34940 Set up
$ hg init repo
$ cd repo
test: create some history in test-dirstate-backup...
r50885 $ echo a > a
$ hg add a
$ hg commit -m a
Mark Thomas
tests: add a test demonstrating failure to clean up dirstate backups...
r34940
Try to import an empty patch
$ hg import --no-commit - <<EOF
> EOF
applying patch from stdin
abort: stdin: no diffs found
Martin von Zweigbergk
errors: introduce InputError and use it from commands and cmdutil...
r46431 [10]
Mark Thomas
tests: add a test demonstrating failure to clean up dirstate backups...
r34940
Mark Thomas
dirstate: clean up when restoring identical backups...
r34941 No dirstate backups are left behind
Mark Thomas
tests: add a test demonstrating failure to clean up dirstate backups...
r34940
$ ls .hg/dirstate* | sort
.hg/dirstate