mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 17:27:53 +03:00
ca89f70871
Summary:
This will be used to preserve the `--hidden` behavior by using a more complete
list of heads.
A test introduced by 6563438219
was removed as it does not make sense to me to force changing read size from 65536 to 1.
That commit itself does not have useful commit message, and I cannot find email review thread for it.
Reviewed By: sfilipco
Differential Revision: D17264382
fbshipit-source-id: cc17e98eef4a4743e5207795a7054db59aa71fc0
76 lines
1.5 KiB
Python
76 lines
1.5 KiB
Python
# Copyright (c) Facebook, Inc. and its affiliates.
|
|
# Copyright (c) Mercurial Contributors.
|
|
#
|
|
# 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 'extensions.treemanifest=!'"
|
|
# Create an empty repo:
|
|
|
|
sh % "hg init a"
|
|
sh % "cd a"
|
|
|
|
# Try some commands:
|
|
|
|
sh % "hg log"
|
|
sh % "hg histgrep wah" == "[1]"
|
|
sh % "hg manifest"
|
|
sh % "hg verify" == r"""
|
|
checking changesets
|
|
checking manifests
|
|
crosschecking files in changesets and manifests
|
|
checking files
|
|
0 files, 0 changesets, 0 total revisions"""
|
|
|
|
# Check the basic files created:
|
|
|
|
sh % "ls .hg" == r"""
|
|
00changelog.i
|
|
blackbox
|
|
requires
|
|
store
|
|
treestate"""
|
|
|
|
# Should be empty:
|
|
# It's not really empty, though.
|
|
|
|
sh % "ls .hg/store" == r"""
|
|
allheads
|
|
requires
|
|
"""
|
|
|
|
# Poke at a clone:
|
|
|
|
sh % "cd .."
|
|
sh % "hg clone a b" == r"""
|
|
updating to branch default
|
|
0 files updated, 0 files merged, 0 files removed, 0 files unresolved"""
|
|
sh % "cd b"
|
|
sh % "hg verify" == r"""
|
|
checking changesets
|
|
checking manifests
|
|
crosschecking files in changesets and manifests
|
|
checking files
|
|
0 files, 0 changesets, 0 total revisions"""
|
|
sh % "ls .hg" == r"""
|
|
00changelog.i
|
|
blackbox
|
|
hgrc
|
|
requires
|
|
store
|
|
treestate"""
|
|
|
|
# Should be empty:
|
|
# It's not really empty, though.
|
|
|
|
sh % "ls .hg/store" == r"""
|
|
allheads
|
|
"""
|
|
|
|
sh % "cd .."
|