mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
0562c1220f
Summary: This makes tests depend less on revision numbers. Reviewed By: DurhamG Differential Revision: D22468669 fbshipit-source-id: 74a06930faa3e6ee9d246ecc718c2a3740f57a54
31 lines
629 B
Python
31 lines
629 B
Python
# coding=utf-8
|
|
# 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
|
|
|
|
import os
|
|
|
|
from testutil.autofix import eq
|
|
from testutil.dott import feature, sh, testtmp # noqa: F401
|
|
|
|
|
|
sh % "setmodernconfig"
|
|
|
|
sh % "hg init repo"
|
|
sh % "cd repo"
|
|
sh % "echo xxx" > "file"
|
|
sh % "hg add file"
|
|
sh % "hg commit -m 'Æ'"
|
|
|
|
sh % "hg log -v" == """
|
|
commit: 4bb70d3b3100
|
|
user: test
|
|
date: Thu Jan 01 00:00:00 1970 +0000
|
|
files: file
|
|
description:
|
|
Æ
|
|
"""
|