##// END OF EJS Templates
revset: have all() filter out null revision...
Yuya Nishihara -
r24202:2de9ee01 default
parent child Browse files
Show More
@@ -994,7 +994,7 b' def getall(repo, subset, x):'
994 """
994 """
995 # i18n: "all" is a keyword
995 # i18n: "all" is a keyword
996 getargs(x, 0, 0, _("all takes no arguments"))
996 getargs(x, 0, 0, _("all takes no arguments"))
997 return subset
997 return subset & spanset(repo) # drop "null" if any
998
998
999 def grep(repo, subset, x):
999 def grep(repo, subset, x):
1000 """``grep(regex)``
1000 """``grep(regex)``
@@ -2365,4 +2365,14 b' issue3772'
2365 date: Thu Jan 01 00:00:00 1970 +0000
2365 date: Thu Jan 01 00:00:00 1970 +0000
2366
2366
2367
2367
2368 should not draw line down to null due to the magic of fullreposet
2369
2370 $ hg log -G -r 'all()' | tail -6
2371 |
2372 o changeset: 0:f8035bb17114
2373 user: test
2374 date: Thu Jan 01 00:00:00 1970 +0000
2375 summary: add a
2376
2377
2368 $ cd ..
2378 $ cd ..
@@ -480,6 +480,9 b' Test explicit numeric revision'
480 Test null revision
480 Test null revision
481 $ log 'ancestors(null)'
481 $ log 'ancestors(null)'
482 -1
482 -1
483 $ log 'tip:null and all()' | tail -2
484 1
485 0
483
486
484 $ log 'outgoing()'
487 $ log 'outgoing()'
485 8
488 8
General Comments 0
You need to be logged in to leave comments. Login now