##// END OF EJS Templates
revset: have rev() drop out-of-range or filtered rev explicitly (issue4396)...
Yuya Nishihara -
r23062:ba89f7b5 stable
parent child Browse files
Show More
@@ -1351,6 +1351,8 b' def rev(repo, subset, x):'
1351 1351 except (TypeError, ValueError):
1352 1352 # i18n: "rev" is a keyword
1353 1353 raise error.ParseError(_("rev expects a number"))
1354 if l not in repo.changelog:
1355 return baseset()
1354 1356 return subset & baseset([l])
1355 1357
1356 1358 def matching(repo, subset, x):
@@ -185,6 +185,8 b' check that various commands work well wi'
185 185 abort: hidden revision '4'!
186 186 (use --hidden to access hidden revisions)
187 187 [255]
188 $ hg debugrevspec 'rev(6)'
189 $ hg debugrevspec 'rev(4)'
188 190
189 191 Check that public changeset are not accounted as obsolete:
190 192
@@ -437,6 +437,18 b' Test empty set input'
437 437 4
438 438 8
439 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 452 $ log 'outgoing()'
441 453 8
442 454 9
General Comments 0
You need to be logged in to leave comments. Login now