mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
4d074f2f87
If we copy a file followed by an update, it's possible for the parent manifest to no longer contain the source file of the copy, which could cause commit to fail. If this happens, we search backwares from the first parent to find the most likely original revision.
21 lines
215 B
Bash
Executable File
21 lines
215 B
Bash
Executable File
#!/bin/sh
|
|
rm -rf a
|
|
hg init a
|
|
cd a
|
|
touch a
|
|
hg ci -Am0
|
|
hg mv a a1
|
|
hg ci -m1
|
|
hg co 0
|
|
hg mv a a2
|
|
hg up
|
|
hg ci -m2
|
|
|
|
touch a
|
|
hg ci -Am3
|
|
hg mv a b
|
|
hg ci -Am4 a
|
|
hg ci --debug --traceback -Am5 b
|
|
hg verify
|
|
hg export --git tip
|