mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 08:18:15 +03:00
1b244c77c7
Some systems show "Thu Jan 01" instead of "Thu Jan 1", which breaks tests. Using "1000000" yields "Mon Jan 12 13:46:40 1970", which looks the same on all systems.
35 lines
474 B
Bash
Executable File
35 lines
474 B
Bash
Executable File
#!/bin/sh
|
|
|
|
hg init
|
|
touch a
|
|
hg add a
|
|
hg commit -m "Added a" -d "1000000 0"
|
|
|
|
touch main
|
|
hg add main
|
|
hg commit -m "Added main" -d "1000000 0"
|
|
hg checkout 0
|
|
|
|
echo Main should be gone
|
|
ls
|
|
|
|
touch side1
|
|
hg add side1
|
|
hg commit -m "Added side1" -d "1000000 0"
|
|
touch side2
|
|
hg add side2
|
|
hg commit -m "Added side2" -d "1000000 0"
|
|
|
|
hg log
|
|
|
|
echo Should have two heads, side2 and main
|
|
hg heads
|
|
|
|
echo Should show "a side1 side2"
|
|
ls
|
|
|
|
hg update --debug -C 1
|
|
echo Should only show "a main"
|
|
ls
|
|
|