tests/test-hgweb-commands.t
changeset 19722 bf15935b68a3
parent 19634 49a068b8fb0c
child 19747 da3808bcfbfa
equal deleted inserted replaced
19721:d8ca6d965230 19722:bf15935b68a3
   538   </html>
   538   </html>
   539   
   539   
   540   $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'log?rev=stable&style=raw' | grep 'revision:'
   540   $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'log?rev=stable&style=raw' | grep 'revision:'
   541   revision:    2
   541   revision:    2
   542 
   542 
       
   543 Search with revset syntax
       
   544 
       
   545   $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'log?rev=tip^&style=raw'
       
   546   200 Script output follows
       
   547   
       
   548   
       
   549   # HG changesets search
       
   550   # Node ID cad8025a2e87f88c06259790adfa15acb4080123
       
   551   # Query "tip^"
       
   552   
       
   553   changeset:   1d22e65f027e5a0609357e7d8e7508cd2ba5d2fe
       
   554   revision:    2
       
   555   user:        test
       
   556   date:        Thu, 01 Jan 1970 00:00:00 +0000
       
   557   summary:     branch
       
   558   branch:      stable
       
   559   
       
   560   
       
   561   $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'log?rev=last(all(),2)^&style=raw'
       
   562   200 Script output follows
       
   563   
       
   564   
       
   565   # HG changesets search
       
   566   # Node ID cad8025a2e87f88c06259790adfa15acb4080123
       
   567   # Query "last(all(),2)^"
       
   568   
       
   569   changeset:   1d22e65f027e5a0609357e7d8e7508cd2ba5d2fe
       
   570   revision:    2
       
   571   user:        test
       
   572   date:        Thu, 01 Jan 1970 00:00:00 +0000
       
   573   summary:     branch
       
   574   branch:      stable
       
   575   
       
   576   changeset:   a4f92ed23982be056b9852de5dfe873eaac7f0de
       
   577   revision:    1
       
   578   user:        test
       
   579   date:        Thu, 01 Jan 1970 00:00:00 +0000
       
   580   summary:     Added tag 1.0 for changeset 2ef0ac749a14
       
   581   branch:      default
       
   582   
       
   583   
       
   584   $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'log?rev=last(all(,2)^&style=raw'
       
   585   200 Script output follows
       
   586   
       
   587   
       
   588   # HG changesets search
       
   589   # Node ID cad8025a2e87f88c06259790adfa15acb4080123
       
   590   # Query "last(all(,2)^"
       
   591   
       
   592   
       
   593   $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'log?rev=last(al(),2)^&style=raw'
       
   594   200 Script output follows
       
   595   
       
   596   
       
   597   # HG changesets search
       
   598   # Node ID cad8025a2e87f88c06259790adfa15acb4080123
       
   599   # Query "last(al(),2)^"
       
   600   
       
   601   
       
   602   $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'log?rev=bookmark(anotherthing)&style=raw'
       
   603   200 Script output follows
       
   604   
       
   605   
       
   606   # HG changesets search
       
   607   # Node ID cad8025a2e87f88c06259790adfa15acb4080123
       
   608   # Query "bookmark(anotherthing)"
       
   609   
       
   610   changeset:   2ef0ac749a14e4f57a5a822464a0902c6f7f448f
       
   611   revision:    0
       
   612   user:        test
       
   613   date:        Thu, 01 Jan 1970 00:00:00 +0000
       
   614   summary:     base
       
   615   tag:         1.0
       
   616   bookmark:    anotherthing
       
   617   
       
   618   
       
   619   $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'log?rev=bookmark(abc)&style=raw'
       
   620   200 Script output follows
       
   621   
       
   622   
       
   623   # HG changesets search
       
   624   # Node ID cad8025a2e87f88c06259790adfa15acb4080123
       
   625   # Query "bookmark(abc)"
       
   626   
       
   627   
       
   628   $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'log?rev=deadbeef:&style=raw'
       
   629   200 Script output follows
       
   630   
       
   631   
       
   632   # HG changesets search
       
   633   # Node ID cad8025a2e87f88c06259790adfa15acb4080123
       
   634   # Query "deadbeef:"
       
   635   
       
   636   
       
   637 
       
   638   $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'log?rev=user("test")&style=raw'
       
   639   200 Script output follows
       
   640   
       
   641   
       
   642   # HG changesets search
       
   643   # Node ID cad8025a2e87f88c06259790adfa15acb4080123
       
   644   # Query "user("test")"
       
   645   
       
   646   changeset:   cad8025a2e87f88c06259790adfa15acb4080123
       
   647   revision:    3
       
   648   user:        test
       
   649   date:        Thu, 01 Jan 1970 00:00:00 +0000
       
   650   summary:     branch commit with null character: \x00 (esc)
       
   651   branch:      unstable
       
   652   tag:         tip
       
   653   bookmark:    something
       
   654   
       
   655   changeset:   1d22e65f027e5a0609357e7d8e7508cd2ba5d2fe
       
   656   revision:    2
       
   657   user:        test
       
   658   date:        Thu, 01 Jan 1970 00:00:00 +0000
       
   659   summary:     branch
       
   660   branch:      stable
       
   661   
       
   662   changeset:   a4f92ed23982be056b9852de5dfe873eaac7f0de
       
   663   revision:    1
       
   664   user:        test
       
   665   date:        Thu, 01 Jan 1970 00:00:00 +0000
       
   666   summary:     Added tag 1.0 for changeset 2ef0ac749a14
       
   667   branch:      default
       
   668   
       
   669   changeset:   2ef0ac749a14e4f57a5a822464a0902c6f7f448f
       
   670   revision:    0
       
   671   user:        test
       
   672   date:        Thu, 01 Jan 1970 00:00:00 +0000
       
   673   summary:     base
       
   674   tag:         1.0
       
   675   bookmark:    anotherthing
       
   676   
       
   677   
       
   678   $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'log?rev=user("re:test")&style=raw'
       
   679   200 Script output follows
       
   680   
       
   681   
       
   682   # HG changesets search
       
   683   # Node ID cad8025a2e87f88c06259790adfa15acb4080123
       
   684   # Query "user("re:test")"
       
   685   
       
   686   
       
   687 
   543 File-related
   688 File-related
   544 
   689 
   545   $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'file/1/foo/?style=raw'
   690   $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'file/1/foo/?style=raw'
   546   200 Script output follows
   691   200 Script output follows
   547   
   692