##// END OF EJS Templates
revset: make dagrange preserve order of input set...
Yuya Nishihara -
r29139:64c1955a default
parent child Browse files
Show More
@@ -386,9 +386,7 b' def dagrange(repo, subset, x, y):'
386 r = fullreposet(repo)
386 r = fullreposet(repo)
387 xs = reachableroots(repo, getset(repo, r, x), getset(repo, r, y),
387 xs = reachableroots(repo, getset(repo, r, x), getset(repo, r, y),
388 includepath=True)
388 includepath=True)
389 # XXX We should combine with subset first: 'subset & baseset(...)'. This is
389 return subset & xs
390 # necessary to ensure we preserve the order in subset.
391 return xs & subset
392
390
393 def andset(repo, subset, x, y):
391 def andset(repo, subset, x, y):
394 return getset(repo, getset(repo, subset, x), y)
392 return getset(repo, getset(repo, subset, x), y)
@@ -898,6 +898,16 b' Test working-directory revision'
898 $ log 'tag(tip)'
898 $ log 'tag(tip)'
899 9
899 9
900
900
901 Test order of revisions in compound expression
902 ----------------------------------------------
903
904 'A & B' should follow the order of 'A':
905
906 $ log '2:0 & 0::2'
907 2
908 1
909 0
910
901 test sort revset
911 test sort revset
902 --------------------------------------------
912 --------------------------------------------
903
913
General Comments 0
You need to be logged in to leave comments. Login now