Mercurial > hg
comparison tests/test-import-merge.t @ 20303:3a3731a60354
test-import-merge: mangle file in binary mode
This should fix a test breakage on Windows.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 20 Jan 2014 17:09:20 -0600 |
parents | 3193b23eec61 |
children | f3200bf460a8 0c838e7459a5 |
comparison
equal
deleted
inserted
replaced
20302:654dd8284ead | 20303:3a3731a60354 |
---|---|
128 $ echo b>>a | 128 $ echo b>>a |
129 $ echo a>>a | 129 $ echo a>>a |
130 $ hg ci -m3 | 130 $ hg ci -m3 |
131 $ hg export 2 | head -7 > ../a.patch | 131 $ hg export 2 | head -7 > ../a.patch |
132 $ hg export tip > out | 132 $ hg export tip > out |
133 >>> apatch = open("../a.patch", "a") | 133 >>> apatch = open("../a.patch", "ab") |
134 >>> apatch.write("".join(open("out").readlines()[7:])) | 134 >>> apatch.write("".join(open("out").readlines()[7:])) |
135 | 135 |
136 $ cd .. | 136 $ cd .. |
137 $ hg clone -qr0 repo3 repo3-clone | 137 $ hg clone -qr0 repo3 repo3-clone |
138 $ cd repo3-clone | 138 $ cd repo3-clone |