Mercurial > hg
comparison tests/blackbox-readonly-dispatch.py @ 35724:853bf7d90804
blackbox: if --debug is used, also trace ui.debug() calls
Differential Revision: https://phab.mercurial-scm.org/D1880
author | Joerg Sonnenberger <joerg@bec.de> |
---|---|
date | Thu, 18 Jan 2018 12:55:19 +0100 |
parents | 0767c2f624c6 |
children | 70a98c3fba2a |
comparison
equal
deleted
inserted
replaced
35723:50868145a8de | 35724:853bf7d90804 |
---|---|
16 | 16 |
17 # create file 'foo', add and commit | 17 # create file 'foo', add and commit |
18 f = open('foo', 'wb') | 18 f = open('foo', 'wb') |
19 f.write('foo\n') | 19 f.write('foo\n') |
20 f.close() | 20 f.close() |
21 testdispatch("add foo") | 21 testdispatch("--debug add foo") |
22 testdispatch("commit -m commit1 -d 2000-01-01 foo") | 22 testdispatch("--debug commit -m commit1 -d 2000-01-01 foo") |
23 | 23 |
24 # append to file 'foo' and commit | 24 # append to file 'foo' and commit |
25 f = open('foo', 'ab') | 25 f = open('foo', 'ab') |
26 f.write('bar\n') | 26 f.write('bar\n') |
27 f.close() | 27 f.close() |
28 # remove blackbox.log directory (proxy for readonly log file) | 28 # remove blackbox.log directory (proxy for readonly log file) |
29 os.rmdir(".hg/blackbox.log") | 29 os.rmdir(".hg/blackbox.log") |
30 # replace it with the real blackbox.log file | 30 # replace it with the real blackbox.log file |
31 os.rename(".hg/blackbox.log-", ".hg/blackbox.log") | 31 os.rename(".hg/blackbox.log-", ".hg/blackbox.log") |
32 testdispatch("commit -m commit2 -d 2000-01-02 foo") | 32 testdispatch("--debug commit -m commit2 -d 2000-01-02 foo") |
33 | 33 |
34 # check 88803a69b24 (fancyopts modified command table) | 34 # check 88803a69b24 (fancyopts modified command table) |
35 testdispatch("log -r 0") | 35 testdispatch("--debug log -r 0") |
36 testdispatch("log -r tip") | 36 testdispatch("--debug log -r tip") |