mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 17:27:53 +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
86 lines
2.1 KiB
Perl
86 lines
2.1 KiB
Perl
$ . $TESTDIR/library.sh
|
|
|
|
setup configuration
|
|
|
|
$ setup_common_config
|
|
|
|
$ cd $TESTTMP
|
|
|
|
setup repo
|
|
|
|
$ hginit_treemanifest repo-hg
|
|
$ cd repo-hg
|
|
$ echo "a file content" > a
|
|
$ hg add a
|
|
$ hg ci -ma
|
|
|
|
setup master bookmark
|
|
|
|
$ hg bookmark master_bookmark -r tip
|
|
|
|
blobimport
|
|
|
|
$ cd $TESTTMP
|
|
$ blobimport rocksdb repo-hg/.hg repo
|
|
|
|
setup two repos: one will be used to push from, another will be used
|
|
to pull these pushed commits
|
|
|
|
$ hgclone_treemanifest ssh://user@dummy/repo-hg repo-push
|
|
$ hgclone_treemanifest ssh://user@dummy/repo-hg repo-pull
|
|
|
|
start mononoke
|
|
|
|
$ mononoke
|
|
$ wait_for_mononoke $TESTTMP/repo
|
|
|
|
Push with bookmark
|
|
$ cd repo-push
|
|
$ enableextension remotenames
|
|
$ echo withbook > withbook && hg addremove && hg ci -m withbook
|
|
adding withbook
|
|
$ hgmn push --to withbook --create
|
|
remote: * DEBG Session with Mononoke started with uuid: * (glob)
|
|
pushing rev 11f53bbd855a to destination ssh://user@dummy/repo bookmark withbook
|
|
searching for changes
|
|
exporting bookmark withbook
|
|
|
|
Pull the bookmark
|
|
$ cd ../repo-pull
|
|
$ enableextension remotenames
|
|
|
|
$ hgmn pull -q
|
|
$ hg book --remote
|
|
default/master_bookmark 0:0e7ec5675652
|
|
default/withbook 1:11f53bbd855a
|
|
|
|
Update the bookmark
|
|
$ cd ../repo-push
|
|
$ echo update > update && hg addremove && hg ci -m update
|
|
adding update
|
|
$ hgmn push --to withbook
|
|
remote: * DEBG Session with Mononoke started with uuid: * (glob)
|
|
pushing rev 66b9c137712a to destination ssh://user@dummy/repo bookmark withbook
|
|
searching for changes
|
|
updating bookmark withbook
|
|
$ cd ../repo-pull
|
|
$ hgmn pull -q
|
|
$ hg book --remote
|
|
default/master_bookmark 0:0e7ec5675652
|
|
default/withbook 2:66b9c137712a
|
|
|
|
Delete the bookmark
|
|
$ cd ../repo-push
|
|
$ hgmn push --delete withbook
|
|
pushing to ssh://user@dummy/repo
|
|
remote: * DEBG Session with Mononoke started with uuid: * (glob)
|
|
searching for changes
|
|
no changes found
|
|
deleting remote bookmark withbook
|
|
[1]
|
|
$ cd ../repo-pull
|
|
$ hgmn pull -q
|
|
devel-warn: applied empty changegroup * (glob)
|
|
$ hg book --remote
|
|
default/master_bookmark 0:0e7ec5675652
|