mirror of
https://github.com/facebook/sapling.git
synced 2024-12-29 16:12:23 +03:00
ab3a7cb21f
Summary: In preparation for merging fb-mercurial sources to the Eden repository, move everything from the top-level directory into an `eden/scm` subdirectory.
38 lines
876 B
Python
38 lines
876 B
Python
# Copyright (c) Facebook, Inc. and its affiliates.
|
|
#
|
|
# This software may be used and distributed according to the terms of the
|
|
# GNU General Public License version 2 or any later version.
|
|
|
|
from __future__ import absolute_import
|
|
|
|
from testutil.dott import feature, sh, testtmp # noqa: F401
|
|
|
|
|
|
sh % "'CACHEDIR=`pwd`/hgcache'"
|
|
|
|
sh % '. "$TESTDIR/library.sh"'
|
|
|
|
sh % "hg init client1"
|
|
sh % "cd client1"
|
|
sh % "cat" << r"""
|
|
[remotefilelog]
|
|
reponame=master
|
|
cachepath=$CACHEDIR
|
|
""" >> ".hg/hgrc"
|
|
|
|
sh % "echo a" > "a"
|
|
sh % "mkdir dir"
|
|
sh % "echo b" > "dir/b"
|
|
sh % "hg commit -Aqm 'initial commit'"
|
|
|
|
sh % "hg init ../client2"
|
|
sh % "cd ../client2"
|
|
sh % "hg pull ../client1" == r"""
|
|
pulling from ../client1
|
|
requesting all changes
|
|
adding changesets
|
|
adding manifests
|
|
adding file changes
|
|
added 1 changesets with 2 changes to 2 files
|
|
new changesets a8dee6dcff44"""
|