equal
deleted
inserted
replaced
1 from __future__ import absolute_import, print_function |
1 from __future__ import absolute_import, print_function |
2 import os |
2 import os |
|
3 import stat |
3 from mercurial.node import hex |
4 from mercurial.node import hex |
4 from mercurial import ( |
5 from mercurial import ( |
5 context, |
6 context, |
6 encoding, |
7 encoding, |
7 hg, |
8 hg, |
168 print('commit %s: %s' % (i, hex(n))) |
169 print('commit %s: %s' % (i, hex(n))) |
169 |
170 |
170 # touch 00manifest.i mtime so storecache could expire. |
171 # touch 00manifest.i mtime so storecache could expire. |
171 # repo.__dict__['manifestlog'] is deleted by transaction releasefn. |
172 # repo.__dict__['manifestlog'] is deleted by transaction releasefn. |
172 st = repo.svfs.stat('00manifest.i') |
173 st = repo.svfs.stat('00manifest.i') |
173 repo.svfs.utime('00manifest.i', (st.st_mtime + 1, st.st_mtime + 1)) |
174 repo.svfs.utime('00manifest.i', |
|
175 (st[stat.ST_MTIME] + 1, st[stat.ST_MTIME] + 1)) |
174 |
176 |
175 # read the file just committed |
177 # read the file just committed |
176 try: |
178 try: |
177 if repo[n][i].data() != i: |
179 if repo[n][i].data() != i: |
178 print('data mismatch') |
180 print('data mismatch') |