sapling/eden/scm/tests/test-fb-hgext-remotefilelog-bundleloop-t.py
Durham Goode 48aec8ca41 py3: misc fixes to remotefilelog and treemanifest
Reviewed By: quark-zju

Differential Revision: D19747715

fbshipit-source-id: da6716ff46342d777d45bec8e560ab41d544645f
2020-02-17 14:52:33 -08:00

34 lines
832 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 % "setconfig \"remotefilelog.cachepath=$TESTTMP/cache\" 'extensions.remotefilelog='"
sh % "newrepo"
sh % "echo remotefilelog" >> ".hg/requires"
sh % "drawdag" << r"""
E # E/X=1 (renamed from Y)
|
D # D/Y=3 (renamed from X)
|
B # B/X=2
|
A # A/X=1
"""
sh % 'hg bundle --all "$TESTTMP/bundle" --traceback -q'
sh % "newrepo"
sh % "echo remotefilelog" >> ".hg/requires"
sh % 'hg unbundle "$TESTTMP/bundle"' == r"""
adding changesets
adding manifests
adding file changes
added 4 changesets with 8 changes to 6 files"""