mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
37da3ebd2b
Summary: Add tests for existing default block casefolding_check behaviour, plus test demonstrating problem with casefolding_check=false Reviewed By: farnz Differential Revision: D20192412 fbshipit-source-id: 1aea0fc5581e0c44388a4224ca693698731d3cd5
33 lines
902 B
Perl
33 lines
902 B
Perl
# Copyright (c) Facebook, Inc. and its affiliates.
|
|
#
|
|
# This software may be used and distributed according to the terms of the
|
|
# GNU General Public License found in the LICENSE file in the root
|
|
# directory of this source tree.
|
|
|
|
$ . "${TEST_FIXTURES}/library.sh"
|
|
|
|
$ DISALLOW_NON_PUSHREBASE=1 BLOB_TYPE="blob_files" default_setup
|
|
hg repo
|
|
o C [draft;rev=2;26805aba1e60]
|
|
|
|
|
o B [draft;rev=1;112478962961]
|
|
|
|
|
o A [draft;rev=0;426bada5c675]
|
|
$
|
|
blobimporting
|
|
starting Mononoke
|
|
cloning repo in hg client 'repo2'
|
|
$ hg up -q master_bookmark
|
|
|
|
Create commit which only differs in case
|
|
$ touch foo.txt Foo.txt
|
|
$ hg ci -Aqm commit1
|
|
|
|
Push the commit
|
|
$ hgmn push -q -r . --to master_bookmark
|
|
abort: stream ended unexpectedly (got 0 bytes, expected 4)
|
|
[255]
|
|
|
|
Check that casefolding was reason for push block
|
|
$ grep -q "Caused by: Case conflict in a commit" "$TESTTMP"/mononoke.out
|