tests/test-annotate.t
changeset 51398 e9304c39e075
parent 48876 42d2b31cee0b
equal deleted inserted replaced
51397:b01e7d97e167 51398:e9304c39e075
   427 
   427 
   428   $ hg annotate -r tip -nl a
   428   $ hg annotate -r tip -nl a
   429   0:1: a
   429   0:1: a
   430   1:2: a
   430   1:2: a
   431   1:3: a
   431   1:3: a
       
   432 
       
   433 annotate line-range
       
   434 
       
   435   $ hg annotate -l -L b,8:10
       
   436    8: 8: more
       
   437    9: 9: more
       
   438   10:10: more
       
   439 
       
   440 annotate line-range beyond last line
       
   441 
       
   442   $ hg annotate -l -L b,8:13
       
   443    8: 8: more
       
   444    9: 9: more
       
   445   10:10: more
       
   446 
       
   447 annotate line-range before first line
       
   448 
       
   449   $ hg annotate -l -L b,0:2
       
   450   hg: parse error: fromline must be strictly positive
       
   451   [10]
       
   452 
       
   453 annotate line-range with --rev
       
   454   $ hg annotate -l -L b,5:7
       
   455   4:5: c
       
   456   3:5: b5
       
   457   7:7: d
       
   458   $ sed 's/d/x/' b > b.new
       
   459   $ mv b.new b
       
   460   $ hg annotate --rev 'wdir()' -l -L b,5:7
       
   461    4 :5: c
       
   462    3 :5: b5
       
   463   10+:7: x
       
   464   $ hg annotate -l -L b,5:7
       
   465   4:5: c
       
   466   3:5: b5
       
   467   7:7: d
       
   468   $ hg revert --no-backup b
       
   469   $ hg annotate --rev 3 -l b
       
   470   0:1: a
       
   471   1:2: a
       
   472   1:3: a
       
   473   3:4: b4
       
   474   3:5: b5
       
   475   3:6: b6
       
   476   $ hg annotate --rev 3 -l -L b,5:7
       
   477   3:5: b5
       
   478   3:6: b6
       
   479 
       
   480 annotate line-range invalid combination of options
       
   481 
       
   482   $ hg annotate --no-follow -L b,5:7
       
   483   abort: --line-range is incompatible with --no-follow
       
   484   [10]
       
   485   $ hg annotate -L b,5:7 a
       
   486   abort: cannot combine filename or pattern and --line-range
       
   487   [10]
       
   488 
       
   489 annote line-range with glob patterns
       
   490 
       
   491   $ hg annotate -l -L glob:b*,5:7
       
   492   4:5: c
       
   493   3:5: b5
       
   494   7:7: d
   432 
   495 
   433 Issue589: "undelete" sequence leads to crash
   496 Issue589: "undelete" sequence leads to crash
   434 
   497 
   435 annotate was crashing when trying to --follow something
   498 annotate was crashing when trying to --follow something
   436 
   499