Mercurial > hg
comparison tests/test-status.t @ 23037:eeaed3d2b004
status: add more complete tests for --rev
The 'status --rev' code is not very well tested, which has bitten us
as recently as in issue4321. Let's add some more tests, some of which
uncover bugs. Remove the few existing tests that are now covered in a
more thorough and consistent way.
author | Martin von Zweigbergk <martinvonz@gmail.com> |
---|---|
date | Sun, 12 Oct 2014 22:23:43 -0700 |
parents | 968247e8f4ac |
children | 2963d5c9d90b |
comparison
equal
deleted
inserted
replaced
23036:19f5273c9f3e | 23037:eeaed3d2b004 |
---|---|
320 A copied | 320 A copied |
321 modified | 321 modified |
322 R removed | 322 R removed |
323 C deleted | 323 C deleted |
324 | 324 |
325 status against non-parent with unknown file (issue4321) | |
326 | |
327 $ touch unknown | |
328 $ hg status --rev 0 unknown | |
329 ? unknown | |
330 | |
331 status of removed but existing in working directory. "? removed" should | |
332 not be included: | |
333 | |
334 $ touch removed | |
335 $ hg status --rev 0 removed | |
336 R removed | |
337 | |
338 $ cd .. | 325 $ cd .. |
339 | 326 |
340 hg status of binary file starting with '\1\n', a separator for metadata: | 327 hg status of binary file starting with '\1\n', a separator for metadata: |
341 | 328 |
342 $ hg init repo5 | 329 $ hg init repo5 |