mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 14:58:03 +03:00
py3: add test for unicode commit messages
Summary: Test that mercurial can accept a unicode commit message. Reviewed By: xavierd Differential Revision: D19838221 fbshipit-source-id: b6333e587004b358a3883db70e40d2f32af4da29
This commit is contained in:
parent
d46ee0c475
commit
e9042dfae4
31
eden/scm/tests/test-unicode-inputs-t.py
Normal file
31
eden/scm/tests/test-unicode-inputs-t.py
Normal file
@ -0,0 +1,31 @@
|
||||
# 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 % ". helpers-usechg.sh"
|
||||
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" == """
|
||||
changeset: 0:4bb70d3b3100
|
||||
user: test
|
||||
date: Thu Jan 01 00:00:00 1970 +0000
|
||||
files: file
|
||||
description:
|
||||
Æ
|
||||
"""
|
@ -343,7 +343,7 @@ def setconfig(*args):
|
||||
|
||||
|
||||
def setmodernconfig():
|
||||
enable("remotenames", "amend")
|
||||
enable("remotenames", "amend", "journal", "blackbox")
|
||||
setconfig(
|
||||
"experimental.narrow-heads=true",
|
||||
"visibility.enabled=true",
|
||||
|
Loading…
Reference in New Issue
Block a user