Show More
@@ -1351,6 +1351,8 b' def rev(repo, subset, x):' | |||||
1351 | except (TypeError, ValueError): |
|
1351 | except (TypeError, ValueError): | |
1352 | # i18n: "rev" is a keyword |
|
1352 | # i18n: "rev" is a keyword | |
1353 | raise error.ParseError(_("rev expects a number")) |
|
1353 | raise error.ParseError(_("rev expects a number")) | |
|
1354 | if l not in repo.changelog: | |||
|
1355 | return baseset() | |||
1354 | return subset & baseset([l]) |
|
1356 | return subset & baseset([l]) | |
1355 |
|
1357 | |||
1356 | def matching(repo, subset, x): |
|
1358 | def matching(repo, subset, x): |
@@ -185,6 +185,8 b' check that various commands work well wi' | |||||
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)' | |||
|
189 | $ hg debugrevspec 'rev(4)' | |||
188 |
|
190 | |||
189 | Check that public changeset are not accounted as obsolete: |
|
191 | Check that public changeset are not accounted as obsolete: | |
190 |
|
192 |
@@ -437,6 +437,18 b' Test empty set input' | |||||
437 | 4 |
|
437 | 4 | |
438 | 8 |
|
438 | 8 | |
439 | 9 |
|
439 | 9 | |
|
440 | ||||
|
441 | Test explicit numeric revision | |||
|
442 | $ log 'rev(-1)' | |||
|
443 | $ log 'rev(0)' | |||
|
444 | 0 | |||
|
445 | $ log 'rev(9)' | |||
|
446 | 9 | |||
|
447 | $ log 'rev(10)' | |||
|
448 | $ log 'rev(tip)' | |||
|
449 | hg: parse error: rev expects a number | |||
|
450 | [255] | |||
|
451 | ||||
440 | $ log 'outgoing()' |
|
452 | $ log 'outgoing()' | |
441 | 8 |
|
453 | 8 | |
442 | 9 |
|
454 | 9 |
General Comments 0
You need to be logged in to leave comments.
Login now