mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 09:17:30 +03:00
e8d62b64d5
fbshipit-source-id: 43a0252cb3ec42aa365f20d1b6faa4d24d74c9b8
65 lines
1.5 KiB
Perl
65 lines
1.5 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 configuration
|
|
$ setup_common_config
|
|
$ cd $TESTTMP
|
|
|
|
setup repo
|
|
|
|
$ hginit_treemanifest repo-hg
|
|
$ hgclone_treemanifest ssh://user@dummy/repo-hg client --noupdate
|
|
|
|
$ cd repo-hg
|
|
$ touch a
|
|
$ hg add a
|
|
$ hg ci -ma
|
|
$ echo b > b
|
|
$ hg add b
|
|
$ hg ci -mb
|
|
|
|
setup master bookmark
|
|
|
|
$ hg bookmark master_bookmark -r 'tip'
|
|
|
|
verify content
|
|
|
|
$ hg log -r ::. -T '{node}: {files}\n'
|
|
3903775176ed42b1458a6281db4a0ccf4d9f287a: a
|
|
c201a1696ba0db28be95eedf0949329fa8c44478: b
|
|
$ hg log
|
|
changeset: 1:c201a1696ba0
|
|
bookmark: master_bookmark
|
|
user: test
|
|
date: Thu Jan 01 00:00:00 1970 +0000
|
|
summary: b
|
|
(re)
|
|
changeset: 0:3903775176ed
|
|
user: test
|
|
date: Thu Jan 01 00:00:00 1970 +0000
|
|
summary: a
|
|
(re)
|
|
|
|
$ cd $TESTTMP
|
|
$ blobimport repo-hg/.hg repo
|
|
$ mononoke
|
|
$ wait_for_mononoke
|
|
|
|
$ cd client
|
|
$ echo 'remotefilelog' >> .hg/requires
|
|
$ hgmn pull -q
|
|
warning: stream clone requested but client is missing requirements: lz4revlog
|
|
(see https://www.mercurial-scm.org/wiki/MissingRequirement for more information)
|
|
$ hgmn up c201a1696ba0db28be95eedf0949329fa8c44478 -q
|
|
$ cat a
|
|
$ cat b
|
|
b
|
|
$ hg log -r ::. -T '{node}: {files}\n'
|
|
3903775176ed42b1458a6281db4a0ccf4d9f287a: a
|
|
c201a1696ba0db28be95eedf0949329fa8c44478: b
|