test-status-rev.t
106 lines
| 4.0 KiB
| text/troff
|
Tads3Lexer
/ tests / test-status-rev.t
Martin von Zweigbergk
|
r23037 | Tests of 'hg status --rev <rev>' to make sure status between <rev> and '.' get | ||
combined correctly with the dirstate status. | ||||
$ hg init | ||||
Martin von Zweigbergk
|
r23196 | First commit | ||
Martin von Zweigbergk
|
r23037 | |||
Martin von Zweigbergk
|
r23197 | $ python $TESTDIR/generate-working-copy-states.py base | ||
$ hg addremove --similarity 0 | ||||
adding content1_content1_content1-tracked | ||||
adding content1_content1_content1-untracked | ||||
adding content1_content1_content3-tracked | ||||
adding content1_content1_content3-untracked | ||||
adding content1_content1_missing-tracked | ||||
adding content1_content1_missing-untracked | ||||
adding content1_content2_content1-tracked | ||||
adding content1_content2_content1-untracked | ||||
adding content1_content2_content2-tracked | ||||
adding content1_content2_content2-untracked | ||||
adding content1_content2_content3-tracked | ||||
adding content1_content2_content3-untracked | ||||
adding content1_content2_missing-tracked | ||||
adding content1_content2_missing-untracked | ||||
adding content1_missing_content1-tracked | ||||
adding content1_missing_content1-untracked | ||||
adding content1_missing_content3-tracked | ||||
adding content1_missing_content3-untracked | ||||
adding content1_missing_missing-tracked | ||||
adding content1_missing_missing-untracked | ||||
$ hg commit -m first | ||||
Martin von Zweigbergk
|
r23037 | |||
Martin von Zweigbergk
|
r23196 | Second commit | ||
Martin von Zweigbergk
|
r23037 | |||
Martin von Zweigbergk
|
r23197 | $ python $TESTDIR/generate-working-copy-states.py parent | ||
$ hg addremove --similarity 0 | ||||
removing content1_missing_content1-tracked | ||||
removing content1_missing_content1-untracked | ||||
removing content1_missing_content3-tracked | ||||
removing content1_missing_content3-untracked | ||||
removing content1_missing_missing-tracked | ||||
removing content1_missing_missing-untracked | ||||
adding missing_content2_content2-tracked | ||||
adding missing_content2_content2-untracked | ||||
adding missing_content2_content3-tracked | ||||
adding missing_content2_content3-untracked | ||||
adding missing_content2_missing-tracked | ||||
adding missing_content2_missing-untracked | ||||
$ hg commit -m second | ||||
Martin von Zweigbergk
|
r23037 | |||
Martin von Zweigbergk
|
r23196 | Working copy | ||
Martin von Zweigbergk
|
r23037 | |||
Martin von Zweigbergk
|
r23197 | $ python $TESTDIR/generate-working-copy-states.py wc | ||
$ hg addremove --similarity 0 | ||||
adding content1_missing_content1-tracked | ||||
adding content1_missing_content1-untracked | ||||
adding content1_missing_content3-tracked | ||||
adding content1_missing_content3-untracked | ||||
adding content1_missing_missing-tracked | ||||
adding content1_missing_missing-untracked | ||||
adding missing_missing_content3-tracked | ||||
adding missing_missing_content3-untracked | ||||
adding missing_missing_missing-tracked | ||||
adding missing_missing_missing-untracked | ||||
$ hg forget *_*_*-untracked | ||||
$ rm *_*_missing-* | ||||
Martin von Zweigbergk
|
r23037 | |||
Status compared to one revision back | ||||
Martin von Zweigbergk
|
r23229 | $ hg status -A --rev 0 'glob:content1_*_content[23]-tracked' | ||
Martin von Zweigbergk
|
r23196 | M content1_content1_content3-tracked | ||
Martin von Zweigbergk
|
r23228 | M content1_content2_content2-tracked | ||
M content1_content2_content3-tracked | ||||
M content1_missing_content3-tracked | ||||
Martin von Zweigbergk
|
r23229 | $ hg status -A --rev 0 'glob:content1_*_content1-tracked' | ||
Martin von Zweigbergk
|
r23228 | C content1_content1_content1-tracked | ||
C content1_content2_content1-tracked | ||||
C content1_missing_content1-tracked | ||||
Martin von Zweigbergk
|
r23229 | $ hg status -A --rev 0 'glob:missing_*_content?-tracked' | ||
Martin von Zweigbergk
|
r23228 | A missing_content2_content2-tracked | ||
A missing_content2_content3-tracked | ||||
A missing_missing_content3-tracked | ||||
BROKEN: missing_content2_content[23]-untracked exist, so should be listed | ||||
Martin von Zweigbergk
|
r23229 | $ hg status -A --rev 0 'glob:missing_*_content?-untracked' | ||
Martin von Zweigbergk
|
r23228 | ? missing_missing_content3-untracked | ||
Martin von Zweigbergk
|
r23229 | $ hg status -A --rev 0 'glob:content1_*_*-untracked' | ||
Martin von Zweigbergk
|
r23228 | R content1_content1_content1-untracked | ||
R content1_content1_content3-untracked | ||||
Martin von Zweigbergk
|
r23196 | R content1_content1_missing-untracked | ||
Martin von Zweigbergk
|
r23228 | R content1_content2_content1-untracked | ||
Martin von Zweigbergk
|
r23196 | R content1_content2_content2-untracked | ||
Martin von Zweigbergk
|
r23228 | R content1_content2_content3-untracked | ||
Martin von Zweigbergk
|
r23196 | R content1_content2_missing-untracked | ||
Martin von Zweigbergk
|
r23228 | R content1_missing_content1-untracked | ||
R content1_missing_content3-untracked | ||||
R content1_missing_missing-untracked | ||||
BROKEN: content1_*_missing-tracked appear twice; should just be '!' | ||||
Martin von Zweigbergk
|
r23229 | $ hg status -A --rev 0 'glob:*_*_missing-tracked' | ||
Martin von Zweigbergk
|
r23196 | R content1_missing_missing-tracked | ||
Martin von Zweigbergk
|
r23228 | ! content1_content1_missing-tracked | ||
! content1_content2_missing-tracked | ||||
Martin von Zweigbergk
|
r23196 | ! content1_missing_missing-tracked | ||
! missing_content2_missing-tracked | ||||
Martin von Zweigbergk
|
r23228 | ! missing_missing_missing-tracked | ||
C content1_content1_missing-tracked | ||||
C content1_content2_missing-tracked | ||||
Martin von Zweigbergk
|
r23229 | $ hg status -A --rev 0 'glob:missing_*_missing-untracked' | ||