sapling/tests/integration/test-blobimport-bookmarks.t
Kostia Balytskyi 7afc953929 mononoke: allow tests to work with multiple mononoke repos
Reviewed By: farnz

Differential Revision: D17499277

fbshipit-source-id: 99c3e624cea855a6984b0a3c1d991d16e13c64a3
2019-09-23 07:16:15 -07:00

39 lines
1.1 KiB
Perl

$ . "${TEST_FIXTURES}/library.sh"
# setup repo, usefncache flag for forcing algo encoding run
$ hg init repo-hg --config format.usefncache=False
# Init treemanifest and remotefilelog
$ cd repo-hg
$ cat >> .hg/hgrc <<EOF
> [extensions]
> treemanifest=
> [treemanifest]
> server=True
> EOF
$ echo hello > world
$ hg commit -Aqm "some commit"
$ hg bookmark -r . master
$ REPOID=0 setup_mononoke_config
$ cd $TESTTMP
$ REPOID=0 blobimport repo-hg/.hg repo
$ REPOID=0 mononoke_admin bookmarks list --kind publishing
* using repo "repo" repoid RepositoryId(0) (glob)
master * (glob)
$ rm -rf repo
$ REPOID=1 setup_mononoke_config
$ cd $TESTTMP
$ REPOID=1 blobimport repo-hg/.hg repo --no-bookmark
$ REPOID=1 mononoke_admin bookmarks list --kind publishing
* using repo "repo" repoid RepositoryId(1) (glob)
$ rm -rf repo
$ REPOID=2 setup_mononoke_config
$ cd $TESTTMP
$ REPOID=2 blobimport repo-hg/.hg repo --prefix-bookmark myrepo/
$ REPOID=2 mononoke_admin bookmarks list --kind publishing
* using repo "repo" repoid RepositoryId(2) (glob)
myrepo/master * (glob)