Show More
@@ -46,6 +46,7 b' test-clone-r.t' | |||||
46 | test-clone-update-order.t |
|
46 | test-clone-update-order.t | |
47 | test-command-template.t |
|
47 | test-command-template.t | |
48 | test-commit-amend.t |
|
48 | test-commit-amend.t | |
|
49 | test-commit-multiple.t | |||
49 | test-commit-unresolved.t |
|
50 | test-commit-unresolved.t | |
50 | test-commit.t |
|
51 | test-commit.t | |
51 | test-committer.t |
|
52 | test-committer.t |
@@ -90,23 +90,25 b' now test that we fixed the bug for all s' | |||||
90 | > f.close() |
|
90 | > f.close() | |
91 | > |
|
91 | > | |
92 | > def printfiles(repo, rev): |
|
92 | > def printfiles(repo, rev): | |
93 | > print("revision %s files: %s" % (rev, repo[rev].files())) |
|
93 | > repo.ui.status(b"revision %d files: [%s]\n" | |
|
94 | > % (rev, b', '.join(b"'%s'" % f | |||
|
95 | > for f in repo[rev].files()))) | |||
94 | > |
|
96 | > | |
95 | > repo = hg.repository(ui.ui.load(), '.') |
|
97 | > repo = hg.repository(ui.ui.load(), b'.') | |
96 | > assert len(repo) == 6, \ |
|
98 | > assert len(repo) == 6, \ | |
97 | > "initial: len(repo): %d, expected: 6" % len(repo) |
|
99 | > "initial: len(repo): %d, expected: 6" % len(repo) | |
98 | > |
|
100 | > | |
99 | > replacebyte("bugfix", "u") |
|
101 | > replacebyte(b"bugfix", b"u") | |
100 | > sleep(2) |
|
102 | > sleep(2) | |
101 | > try: |
|
103 | > try: | |
102 |
> |
|
104 | > repo.ui.status(b"PRE: len(repo): %d\n" % len(repo)) | |
103 | > wlock = repo.wlock() |
|
105 | > wlock = repo.wlock() | |
104 | > lock = repo.lock() |
|
106 | > lock = repo.lock() | |
105 | > replacebyte("file1", "x") |
|
107 | > replacebyte(b"file1", b"x") | |
106 | > repo.commit(text="x", user="test", date=(0, 0)) |
|
108 | > repo.commit(text=b"x", user=b"test", date=(0, 0)) | |
107 | > replacebyte("file1", "y") |
|
109 | > replacebyte(b"file1", b"y") | |
108 | > repo.commit(text="y", user="test", date=(0, 0)) |
|
110 | > repo.commit(text=b"y", user=b"test", date=(0, 0)) | |
109 |
> |
|
111 | > repo.ui.status(b"POST: len(repo): %d\n" % len(repo)) | |
110 | > finally: |
|
112 | > finally: | |
111 | > lock.release() |
|
113 | > lock.release() | |
112 | > wlock.release() |
|
114 | > wlock.release() |
General Comments 0
You need to be logged in to leave comments.
Login now