mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 00:45:18 +03:00
89eb6520d2
Summary: The "meaningfulparents" concept is coupled with rev numbers. Remove it. This changes default templates to not show parents, and `{parents}` template to show parents. Reviewed By: DurhamG Differential Revision: D23408970 fbshipit-source-id: f1a8060122ee6655d9f64147b35a321af839266e
100 lines
1.9 KiB
Perl
100 lines
1.9 KiB
Perl
#chg-compatible
|
|
|
|
$ configure dummyssh
|
|
$ hg init repo
|
|
$ cd repo
|
|
$ echo foo > foo
|
|
$ hg ci -qAm 'add foo'
|
|
$ echo >> foo
|
|
$ hg ci -m 'change foo'
|
|
$ hg up -qC 0
|
|
$ echo bar > bar
|
|
$ hg ci -qAm 'add bar'
|
|
|
|
$ hg log
|
|
commit: effea6de0384
|
|
user: test
|
|
date: Thu Jan 01 00:00:00 1970 +0000
|
|
summary: add bar
|
|
|
|
commit: ed1b79f46b9a
|
|
user: test
|
|
date: Thu Jan 01 00:00:00 1970 +0000
|
|
summary: change foo
|
|
|
|
commit: bbd179dfa0a7
|
|
user: test
|
|
date: Thu Jan 01 00:00:00 1970 +0000
|
|
summary: add foo
|
|
|
|
$ cd ..
|
|
|
|
don't show "(+1 heads)" message when pulling closed head
|
|
|
|
$ hg clone -q repo repo2
|
|
$ hg clone -q repo2 repo3
|
|
$ cd repo2
|
|
$ hg up -q 0
|
|
$ echo hello >> foo
|
|
$ hg ci -mx1
|
|
$ hg ci -mx2 --config ui.allowemptycommit=1
|
|
$ cd ../repo3
|
|
$ hg heads -q --closed
|
|
effea6de0384
|
|
ed1b79f46b9a
|
|
$ hg pull
|
|
pulling from $TESTTMP/repo2
|
|
searching for changes
|
|
adding changesets
|
|
adding manifests
|
|
adding file changes
|
|
added 2 changesets with 1 changes to 1 files
|
|
$ hg heads -q --closed
|
|
1a1aa123db21
|
|
effea6de0384
|
|
ed1b79f46b9a
|
|
|
|
$ cd ..
|
|
|
|
$ hg init copy
|
|
$ cd copy
|
|
|
|
Pull a missing revision:
|
|
|
|
$ hg pull -qr missing ../repo
|
|
abort: unknown revision 'missing'!
|
|
[255]
|
|
|
|
Pull multiple revisions with update:
|
|
|
|
$ cp -R . $TESTTMP/copy1
|
|
$ cd $TESTTMP/copy1
|
|
$ hg pull -qu -r 0 -r 1 ../repo
|
|
$ hg -q parents
|
|
bbd179dfa0a7
|
|
|
|
$ cd $TESTTMP/copy
|
|
$ hg pull -qr 0 ../repo
|
|
$ hg log
|
|
commit: bbd179dfa0a7
|
|
user: test
|
|
date: Thu Jan 01 00:00:00 1970 +0000
|
|
summary: add foo
|
|
|
|
$ hg pull -qr 1 ../repo
|
|
$ hg log
|
|
commit: ed1b79f46b9a
|
|
user: test
|
|
date: Thu Jan 01 00:00:00 1970 +0000
|
|
summary: change foo
|
|
|
|
commit: bbd179dfa0a7
|
|
user: test
|
|
date: Thu Jan 01 00:00:00 1970 +0000
|
|
summary: add foo
|
|
|
|
|
|
This used to abort: received changelog group is empty:
|
|
|
|
$ hg pull -qr 1 ../repo
|