2007-08-27 08:44:35 +04:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
hg init repo
|
|
|
|
cd repo
|
|
|
|
echo foo > foo
|
2009-04-26 16:29:02 +04:00
|
|
|
hg ci -qAm 'add foo'
|
2007-08-27 08:44:35 +04:00
|
|
|
echo >> foo
|
2009-04-26 16:29:02 +04:00
|
|
|
hg ci -m 'change foo'
|
2007-08-27 08:44:35 +04:00
|
|
|
hg up -qC 0
|
|
|
|
echo bar > bar
|
2009-04-26 16:29:02 +04:00
|
|
|
hg ci -qAm 'add bar'
|
2007-08-27 08:44:35 +04:00
|
|
|
hg log
|
|
|
|
cd ..
|
|
|
|
hg init copy
|
|
|
|
cd copy
|
|
|
|
|
2008-03-30 22:18:40 +04:00
|
|
|
echo '% pull a missing revision'
|
|
|
|
hg pull -qr missing ../repo
|
|
|
|
|
2007-08-27 08:44:35 +04:00
|
|
|
echo '% pull -r 0'
|
|
|
|
hg pull -qr 0 ../repo
|
|
|
|
hg log
|
|
|
|
|
|
|
|
echo '% pull -r 1'
|
|
|
|
hg pull -qr 1 ../repo
|
|
|
|
hg log
|
|
|
|
|
|
|
|
# this used to abort: received changelog group is empty
|
|
|
|
echo '% pull -r 1 again'
|
|
|
|
hg pull -qr 1 ../repo
|