Submitter | Ryan McElroy |
---|---|
Date | Oct. 2, 2015, 9:33 p.m. |
Message ID | <46984a5308a0525d3d57.1443821625@waste.org> |
Download | mbox | patch |
Permalink | /patch/10745/ |
State | Accepted |
Commit | 46984a5308a0525d3d5718ebeeec782e96319fe5 |
Headers | show |
Comments
Patch
diff --git a/tests/test-commandserver.t b/tests/test-commandserver.t --- a/tests/test-commandserver.t +++ b/tests/test-commandserver.t @@ -378,7 +378,10 @@ ... runcommand(server, ['log', '-qr', 'draft()']) ... # create draft commits by another process ... for i in xrange(5, 7): - ... os.system('echo a >> a') + ... f = open('a', 'ab') + ... f.seek(0, os.SEEK_END) + ... f.write('a\n') + ... f.close() ... os.system('hg commit -Aqm%d' % i) ... # new commits should be listed as draft revisions ... runcommand(server, ['log', '-qr', 'draft()'])