tests/test-fastannotate-hg.t
changeset 39369 34ba47117164
parent 39279 cb9cf42c902f
child 39458 4babb55e4503
equal deleted inserted replaced
39368:5b1d406b39f1 39369:34ba47117164
    67 annotate (JSON)
    67 annotate (JSON)
    68 
    68 
    69   $ hg annotate -Tjson a
    69   $ hg annotate -Tjson a
    70   [
    70   [
    71    {
    71    {
    72     "abspath": "a",
       
    73     "lines": [{"line": "a\n", "rev": 0}],
    72     "lines": [{"line": "a\n", "rev": 0}],
    74     "path": "a"
    73     "path": "a"
    75    }
    74    }
    76   ]
    75   ]
    77 
    76 
    78   $ hg annotate -Tjson -cdfnul a
    77   $ hg annotate -Tjson -cdfnul a
    79   [
    78   [
    80    {
    79    {
    81     "abspath": "a",
    80     "lines": [{"date": [1.0, 0], "line": "a\n", "line_number": 1, "node": "8435f90966e442695d2ded29fdade2bac5ad8065", "path": "a", "rev": 0, "user": "nobody"}],
    82     "lines": [{"date": [1.0, 0], "file": "a", "line": "a\n", "line_number": 1, "node": "8435f90966e442695d2ded29fdade2bac5ad8065", "rev": 0, "user": "nobody"}],
       
    83     "path": "a"
    81     "path": "a"
    84    }
    82    }
    85   ]
    83   ]
    86 
    84 
    87   $ cat <<EOF >>a
    85   $ cat <<EOF >>a
   569   test [A-Za-z0-9:+ ]+: foofoo (re)
   567   test [A-Za-z0-9:+ ]+: foofoo (re)
   570 
   568 
   571   $ hg annotate -ncr "wdir()" -Tjson foo
   569   $ hg annotate -ncr "wdir()" -Tjson foo
   572   [
   570   [
   573    {
   571    {
   574     "abspath": "foo",
       
   575     "lines": [{"line": "foo\n", "node": "472b18db256d1e8282064eab4bfdaf48cbfe83cd", "rev": 11}, {"line": "foofoo\n", "node": null, "rev": null}],
   572     "lines": [{"line": "foo\n", "node": "472b18db256d1e8282064eab4bfdaf48cbfe83cd", "rev": 11}, {"line": "foofoo\n", "node": null, "rev": null}],
   576     "path": "foo"
   573     "path": "foo"
   577    }
   574    }
   578   ]
   575   ]
   579 
   576