sapling/eden/scm/tests/test-diff-antipatience.t
Muir Manders 1dcb7966fc tests: turn on eagerepo for a bunch of tests
Summary: These are the tests that passed after adding "$ eagerepo". I attempted to turn on eagerepo for all tests that didn't contain "$ eagerepo" or "configure modern".

Reviewed By: quark-zju

Differential Revision: D44445379

fbshipit-source-id: b283be6d5249f74e11a3205622961e457587e93b
2023-04-04 08:42:03 -07:00

54 lines
909 B
Raku

#debugruntest-compatible
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2.
# Test case that makes use of the weakness of patience diff algorithm
$ eagerepo
$ hg init repo
$ cd repo
>>> with open("a", "wb") as f:
... f.write("\n".join(list("a" + "x" * 10 + "u" + "x" * 30 + "a\n")).encode()) and None
$ hg commit -m 1 -A a
>>> with open("a", "wb") as f:
... f.write("\n".join(list("b" + "x" * 30 + "u" + "x" * 10 + "b\n")).encode()) and None
$ hg diff
diff -r f0aeecb49805 a
--- a/a Thu Jan 01 00:00:00 1970 +0000
+++ b/a Thu Jan 01 00:00:00 1970 +0000
@@ -1,4 +1,4 @@
-a
+b
x
x
x
@@ -9,7 +9,6 @@
x
x
x
-u
x
x
x
@@ -30,6 +29,7 @@
x
x
x
+u
x
x
x
@@ -40,5 +40,5 @@
x
x
x
-a
+b