sapling/tests/test-fb-hgext-p4fastimport-seqimport-dual-push.t
Alexandre Marin 10b2f48ed6 Make importer respect commits not done by itself
Summary: TSIA

Reviewed By: jpratlifffb

Differential Revision: D15228205

fbshipit-source-id: 56bf76d48e5c5e4fcb48645d49b94d9c580e6376
2019-05-10 10:10:57 -07:00

44 lines
841 B
Perl

#require p4
$ . $TESTDIR/p4setup.sh
$ cat >> $HGRCPATH<<EOF
> [extensions]
> lfs=
> EOF
Create first CL
$ mkdir Main
$ echo first > Main/first
$ p4 -q add Main/first
$ p4 -q submit -d first
Import first CL
$ cd $hgwd
$ hg init --config 'format.usefncache=False'
$ hg p4seqimport -P $P4ROOT -B master $P4CLIENT --traceback
Commit directly to hg
$ hg update -q master
$ echo second > Main/second
$ hg commit -Aqm 'second'
Create second CL
$ cd $p4wd
$ echo third > Main/third
$ p4 -q add Main/third
$ p4 -q submit -d third
Import second CL (third commit)
$ cd $hgwd
$ hg update -q 000000
$ hg p4seqimport -P $P4ROOT -B master $P4CLIENT --traceback
Confirm third was committed on top of second
$ hg log -r '::master' -T '{desc}\n'
first
second
third
End Test
stopping the p4 server