comparison tests/test-obsolete.t @ 24204:d2de20e1451f

revset: extend fullreposet to make "null" revision magically appears in set As per fullreposet.__and__, it can omit the range check of rev. Therefore, "null" revision is accepted automagically. It seems this can fix many query results involving null symbol. Originally, the simplest "(null)" query did fail if there were hidden revisions. Tests are randomly chosen. fullreposet mimics the behavior of localrepo, where "null" revision is not listed but contained.
author Yuya Nishihara <yuya@tcha.org>
date Thu, 08 Jan 2015 23:05:45 +0900
parents 758dd85b6ad6
children 7977d35df13b
comparison
equal deleted inserted replaced
24203:33c7a94d4dd0 24204:d2de20e1451f
185 abort: hidden revision '4'! 185 abort: hidden revision '4'!
186 (use --hidden to access hidden revisions) 186 (use --hidden to access hidden revisions)
187 [255] 187 [255]
188 $ hg debugrevspec 'rev(6)' 188 $ hg debugrevspec 'rev(6)'
189 $ hg debugrevspec 'rev(4)' 189 $ hg debugrevspec 'rev(4)'
190 $ hg debugrevspec 'null'
191 -1
190 192
191 Check that public changeset are not accounted as obsolete: 193 Check that public changeset are not accounted as obsolete:
192 194
193 $ hg --hidden phase --public 2 195 $ hg --hidden phase --public 2
194 $ hg log -G 196 $ hg log -G