Submitter | phabricator |
---|---|
Date | Feb. 11, 2018, 2:05 p.m. |
Message ID | <3678d76143fc7a06bb34cd5c9426f994@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/27567/ |
State | Not Applicable |
Headers | show |
Comments
Patch
diff --git a/tests/test-import-bypass.t b/tests/test-import-bypass.t --- a/tests/test-import-bypass.t +++ b/tests/test-import-bypass.t @@ -227,7 +227,7 @@ (this also tests that editor is not invoked for '--bypass', if the commit message is explicitly specified, regardless of '--edit') - $ $PYTHON -c 'file("a", "wb").write("a\r\n")' + $ $PYTHON -c 'open("a", "wb").write(b"a\r\n")' $ hg ci -m makeacrlf $ HGEDITOR=cat hg import -m 'should fail because of eol' --edit --bypass ../test.diff applying ../test.diff