mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
c4f7fae0bb
Summary: Test is failing, as Mononoke server lfs support is not implemented yet. Integration test for commands from hg client to Mononoke server. \s(re) lines are added as after auto-save, the test script is formatted, and delete spaces at the empty lines. In order to keep such lines, \s(re) could be added In comparison of such line, pattern \s(re) is deleted and not compared. See to mononoke/tests/integration/third_party/hg_run_tests.py for more information about comparison of the output lines. Reviewed By: StanislavGlebik Differential Revision: D10089289 fbshipit-source-id: 2962e80d919c21801d08990be190f2574c48646d
116 lines
3.1 KiB
Perl
116 lines
3.1 KiB
Perl
$ . $TESTDIR/library.sh
|
|
|
|
setup configuration
|
|
$ setup_common_config
|
|
|
|
setup repo
|
|
|
|
$ hginit_treemanifest repo-hg
|
|
$ cd repo-hg
|
|
$ echo "a" > a
|
|
$ echo "b" > b
|
|
$ hg addremove && hg ci -q -ma
|
|
adding a
|
|
adding b
|
|
$ hg log -T '{node}\n'
|
|
0cd96de13884b090099512d4794ae87ad067ea8e
|
|
|
|
create master bookmark
|
|
$ hg bookmark master_bookmark -r tip
|
|
|
|
setup repo-push and repo-pull
|
|
$ cd $TESTTMP
|
|
$ hgclone_treemanifest ssh://user@dummy/repo-hg repo-push --noupdate
|
|
$ hgclone_treemanifest ssh://user@dummy/repo-hg repo-pull --noupdate
|
|
|
|
blobimport
|
|
|
|
$ blobimport rocksdb repo-hg/.hg repo
|
|
|
|
start mononoke
|
|
|
|
$ mononoke
|
|
$ wait_for_mononoke $TESTTMP/repo
|
|
|
|
push some files with copy/move files
|
|
|
|
$ cd $TESTTMP/repo-push
|
|
$ hg up master_bookmark
|
|
2 files updated, 0 files merged, 0 files removed, 0 files unresolved
|
|
(activating bookmark master_bookmark)
|
|
$ hg cp a a_copy
|
|
$ hg mv b b_move
|
|
$ hg addremove && hg ci -q -mb
|
|
recording removal of b as rename to b_move (100% similar)
|
|
$ hgmn push ssh://user@dummy/repo
|
|
pushing to ssh://user@dummy/repo
|
|
remote: * DEBG Session with Mononoke started with uuid: * (glob)
|
|
searching for changes
|
|
updating bookmark master_bookmark
|
|
|
|
pull them
|
|
|
|
$ cd $TESTTMP/repo-pull
|
|
$ hg up master_bookmark
|
|
2 files updated, 0 files merged, 0 files removed, 0 files unresolved
|
|
(activating bookmark master_bookmark)
|
|
$ hg log -T '{node}\n'
|
|
0cd96de13884b090099512d4794ae87ad067ea8e
|
|
$ hgmn pull ssh://user@dummy/repo
|
|
pulling from ssh://user@dummy/repo
|
|
remote: * DEBG Session with Mononoke started with uuid: * (glob)
|
|
searching for changes
|
|
adding changesets
|
|
adding manifests
|
|
adding file changes
|
|
added 1 changesets with 0 changes to 0 files
|
|
updating bookmark master_bookmark
|
|
new changesets 4b747ca852a4
|
|
(run 'hg update' to get a working copy)
|
|
$ hg log -T '{node}\n'
|
|
4b747ca852a40a105b9bb71cd4d07248ea80f704
|
|
0cd96de13884b090099512d4794ae87ad067ea8e
|
|
|
|
push files that modify copied and moved files
|
|
|
|
$ cd $TESTTMP/repo-push
|
|
$ echo "aa" >> a_copy
|
|
$ echo "bb" >> b_move
|
|
$ hg addremove && hg ci -q -mc
|
|
$ hgmn push ssh://user@dummy/repo
|
|
pushing to ssh://user@dummy/repo
|
|
remote: * DEBG Session with Mononoke started with uuid: * (glob)
|
|
searching for changes
|
|
updating bookmark master_bookmark
|
|
|
|
pull them
|
|
|
|
$ cd $TESTTMP/repo-pull
|
|
$ hg log -T '{node}\n'
|
|
4b747ca852a40a105b9bb71cd4d07248ea80f704
|
|
0cd96de13884b090099512d4794ae87ad067ea8e
|
|
$ hgmn pull ssh://user@dummy/repo
|
|
pulling from ssh://user@dummy/repo
|
|
remote: * DEBG Session with Mononoke started with uuid: * (glob)
|
|
searching for changes
|
|
adding changesets
|
|
adding manifests
|
|
adding file changes
|
|
added 1 changesets with 0 changes to 0 files
|
|
updating bookmark master_bookmark
|
|
new changesets 8b374fd7e2ef
|
|
(run 'hg update' to get a working copy)
|
|
$ hg log -T '{node}\n'
|
|
8b374fd7e2ef1cc418b9c68f484ebd2cb6c6c6a1
|
|
4b747ca852a40a105b9bb71cd4d07248ea80f704
|
|
0cd96de13884b090099512d4794ae87ad067ea8e
|
|
$ hgmn up master_bookmark
|
|
remote: * DEBG Session with Mononoke started with uuid: * (glob)
|
|
2 files updated, 0 files merged, 1 files removed, 0 files unresolved
|
|
$ cat a_copy
|
|
a
|
|
aa
|
|
$ cat b_move
|
|
b
|
|
bb
|