mirror of
https://github.com/facebook/sapling.git
synced 2024-12-29 08:02:24 +03:00
5c567018c8
Summary: Migrate more tests to use narrow-heads. Reviewed By: DurhamG Differential Revision: D22130171 fbshipit-source-id: 92a1b1dc237a7f66b4430ef680d1a2f60e715778
180 lines
4.8 KiB
Perl
180 lines
4.8 KiB
Perl
$ disable treemanifest
|
|
Load commonly used test logic
|
|
$ . "$TESTDIR/hggit/testutil"
|
|
|
|
$ enable remotenames
|
|
$ hg init test
|
|
$ cd test
|
|
$ cat >>afile <<EOF
|
|
> 0
|
|
> EOF
|
|
$ hg add afile
|
|
$ hg commit -m "0.0"
|
|
$ cat >>afile <<EOF
|
|
> 1
|
|
> EOF
|
|
$ hg commit -m "0.1"
|
|
$ cat >>afile <<EOF
|
|
> 2
|
|
> EOF
|
|
$ hg commit -m "0.2"
|
|
$ cat >>afile <<EOF
|
|
> 3
|
|
> EOF
|
|
$ hg commit -m "0.3"
|
|
$ hg update -C 0
|
|
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
|
|
$ cat >>afile <<EOF
|
|
> 1
|
|
> EOF
|
|
$ hg commit -m "1.1"
|
|
$ cat >>afile <<EOF
|
|
> 2
|
|
> EOF
|
|
$ hg commit -m "1.2"
|
|
$ cat >fred <<EOF
|
|
> a line
|
|
> EOF
|
|
$ cat >>afile <<EOF
|
|
> 3
|
|
> EOF
|
|
$ hg add fred
|
|
$ hg commit -m "1.3"
|
|
$ hg mv afile adifferentfile
|
|
$ hg commit -m "1.3m"
|
|
$ hg update -C 3
|
|
1 files updated, 0 files merged, 2 files removed, 0 files unresolved
|
|
$ hg mv afile anotherfile
|
|
$ hg commit -m "0.3m"
|
|
$ cd ..
|
|
$ for i in 0 1 2 3 4 5 6 7 8; do
|
|
> mkdir test-"$i"
|
|
> hg --cwd test-"$i" init
|
|
> hg -R test push -r "$i" test-"$i" --to master --force --create
|
|
> cd test-"$i"
|
|
> hg verify
|
|
> cd ..
|
|
> done
|
|
pushing rev f9ee2f85a263 to destination test-0 bookmark master
|
|
searching for changes
|
|
adding changesets
|
|
adding manifests
|
|
adding file changes
|
|
added 1 changesets with 1 changes to 1 files
|
|
exporting bookmark master
|
|
checking changesets
|
|
checking manifests
|
|
crosschecking files in changesets and manifests
|
|
checking files
|
|
1 files, 1 changesets, 1 total revisions
|
|
pushing rev 34c2bf6b0626 to destination test-1 bookmark master
|
|
searching for changes
|
|
adding changesets
|
|
adding manifests
|
|
adding file changes
|
|
added 2 changesets with 2 changes to 1 files
|
|
exporting bookmark master
|
|
checking changesets
|
|
checking manifests
|
|
crosschecking files in changesets and manifests
|
|
checking files
|
|
1 files, 2 changesets, 2 total revisions
|
|
pushing rev e38ba6f5b7e0 to destination test-2 bookmark master
|
|
searching for changes
|
|
adding changesets
|
|
adding manifests
|
|
adding file changes
|
|
added 3 changesets with 3 changes to 1 files
|
|
exporting bookmark master
|
|
checking changesets
|
|
checking manifests
|
|
crosschecking files in changesets and manifests
|
|
checking files
|
|
1 files, 3 changesets, 3 total revisions
|
|
pushing rev eebf5a27f8ca to destination test-3 bookmark master
|
|
searching for changes
|
|
adding changesets
|
|
adding manifests
|
|
adding file changes
|
|
added 4 changesets with 4 changes to 1 files
|
|
exporting bookmark master
|
|
checking changesets
|
|
checking manifests
|
|
crosschecking files in changesets and manifests
|
|
checking files
|
|
1 files, 4 changesets, 4 total revisions
|
|
pushing rev 095197eb4973 to destination test-4 bookmark master
|
|
searching for changes
|
|
adding changesets
|
|
adding manifests
|
|
adding file changes
|
|
added 2 changesets with 2 changes to 1 files
|
|
exporting bookmark master
|
|
checking changesets
|
|
checking manifests
|
|
crosschecking files in changesets and manifests
|
|
checking files
|
|
1 files, 2 changesets, 2 total revisions
|
|
pushing rev 1bb50a9436a7 to destination test-5 bookmark master
|
|
searching for changes
|
|
adding changesets
|
|
adding manifests
|
|
adding file changes
|
|
added 3 changesets with 3 changes to 1 files
|
|
exporting bookmark master
|
|
checking changesets
|
|
checking manifests
|
|
crosschecking files in changesets and manifests
|
|
checking files
|
|
1 files, 3 changesets, 3 total revisions
|
|
pushing rev 7373c1169842 to destination test-6 bookmark master
|
|
searching for changes
|
|
adding changesets
|
|
adding manifests
|
|
adding file changes
|
|
added 4 changesets with 5 changes to 2 files
|
|
exporting bookmark master
|
|
checking changesets
|
|
checking manifests
|
|
crosschecking files in changesets and manifests
|
|
checking files
|
|
2 files, 4 changesets, 5 total revisions
|
|
pushing rev a6a34bfa0076 to destination test-7 bookmark master
|
|
searching for changes
|
|
adding changesets
|
|
adding manifests
|
|
adding file changes
|
|
added 5 changesets with 6 changes to 3 files
|
|
exporting bookmark master
|
|
checking changesets
|
|
checking manifests
|
|
crosschecking files in changesets and manifests
|
|
checking files
|
|
3 files, 5 changesets, 6 total revisions
|
|
pushing rev aa35859c02ea to destination test-8 bookmark master
|
|
searching for changes
|
|
adding changesets
|
|
adding manifests
|
|
adding file changes
|
|
added 5 changesets with 5 changes to 2 files
|
|
exporting bookmark master
|
|
checking changesets
|
|
checking manifests
|
|
crosschecking files in changesets and manifests
|
|
checking files
|
|
2 files, 5 changesets, 5 total revisions
|
|
$ cd test-8
|
|
$ hg pull ../test-7
|
|
pulling from ../test-7
|
|
searching for changes
|
|
adding changesets
|
|
adding manifests
|
|
adding file changes
|
|
added 4 changesets with 2 changes to 3 files
|
|
$ hg verify
|
|
checking changesets
|
|
checking manifests
|
|
crosschecking files in changesets and manifests
|
|
checking files
|
|
4 files, 9 changesets, 7 total revisions
|