sapling/eden/mononoke/tests/integration/test-blobimport-bookmarks.t
Lukasz Piatkowski e8d62b64d5 mononoke: move the codebase under eden/ directory
fbshipit-source-id: 43a0252cb3ec42aa365f20d1b6faa4d24d74c9b8
2020-02-06 13:46:04 +01:00

45 lines
1.3 KiB
Perl

# Copyright (c) Facebook, Inc. and its affiliates.
#
# This software may be used and distributed according to the terms of the
# GNU General Public License found in the LICENSE file in the root
# directory of this source tree.
$ . "${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)