2020-02-12 20:08:21 +03:00
|
|
|
# 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"
|
2021-02-27 03:29:50 +03:00
|
|
|
sh % "echo yyy" > "Æ"
|
2020-02-12 20:08:21 +03:00
|
|
|
sh % "hg add file"
|
2021-02-27 03:29:50 +03:00
|
|
|
sh % "hg add Æ"
|
2020-02-12 20:08:21 +03:00
|
|
|
sh % "hg commit -m 'Æ'"
|
|
|
|
|
|
|
|
sh % "hg log -v" == """
|
2021-03-02 09:20:40 +03:00
|
|
|
commit: * (glob)
|
2020-02-12 20:08:21 +03:00
|
|
|
user: test
|
|
|
|
date: Thu Jan 01 00:00:00 1970 +0000
|
2021-02-27 03:29:50 +03:00
|
|
|
files: file Æ
|
2020-02-12 20:08:21 +03:00
|
|
|
description:
|
|
|
|
Æ
|
|
|
|
"""
|