mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 00:14:35 +03:00
92fa573aed
Operations on this branch don't work otherwise. Reading branches.cache had to be adjusted to allow an empty label. Adjusted reading of the cache tip for symmetry, no functional change here.
22 lines
283 B
Bash
Executable File
22 lines
283 B
Bash
Executable File
#!/bin/sh
|
|
|
|
hg init
|
|
hg branch dummy # needed so -r "" doesn't point to the unnamed/default branch
|
|
touch a
|
|
hg add a
|
|
hg ci -m "a" -d "1000000 0"
|
|
|
|
echo 123 > b
|
|
hg add b
|
|
hg diff --nodates
|
|
|
|
hg diff --nodates -r tip
|
|
|
|
echo foo > a
|
|
hg diff --nodates
|
|
|
|
hg diff -r ""
|
|
hg diff -r tip -r ""
|
|
|
|
true
|