tests/test-logexchange.t
changeset 40060 6346e21eecc8
parent 40059 fda1df3d4e06
child 40069 fd4d59cf2ebb
equal deleted inserted replaced
40059:fda1df3d4e06 40060:6346e21eecc8
   484 
   484 
   485   $ hg log -r 'remotebookmarks("server3")' -GT "{rev}:{node|short} {remotenames}\n"
   485   $ hg log -r 'remotebookmarks("server3")' -GT "{rev}:{node|short} {remotenames}\n"
   486 
   486 
   487   $ hg log -r 'remotenames("server3")' -GT "{rev}:{node|short} {remotenames}\n"
   487   $ hg log -r 'remotenames("server3")' -GT "{rev}:{node|short} {remotenames}\n"
   488 
   488 
   489 Testing for multiple names where all of them exists
   489 Testing for multiple names, which is not supported.
   490 
   490 
   491   $ hg log -r 'remotenames("re:default", "re:server2")' -GT "{rev}:{node|short} {remotenames}\n"
   491   $ hg log -r 'remotenames("re:default", "re:server2")' -GT "{rev}:{node|short} {remotenames}\n"
   492   o  10:bf433e48adea server2/default
   492   hg: parse error: only one argument accepted
   493   |
   493   [255]
   494   | o  9:f34adec73c21 server2/wat
       
   495   | |
       
   496   | o  8:3e1487808078 default/foo default/wat
       
   497   | :
       
   498   @ :  7:ec2426147f0e default/default
       
   499   | :
       
   500   o :  6:87d6d6676308 default/bar server2/bar
       
   501   :/
       
   502   o  3:62615734edd5 server2/foo
       
   503   |
       
   504   ~
       
   505 
   494 
   506   $ hg log -r 'remotebranches("default/wat", "server2/wat")' -GT "{rev}:{node|short} {remotebranches}\n"
   495   $ hg log -r 'remotebranches("default/wat", "server2/wat")' -GT "{rev}:{node|short} {remotebranches}\n"
   507   o  9:f34adec73c21 server2/wat
   496   hg: parse error: only one argument accepted
   508   |
   497   [255]
   509   o  8:3e1487808078 default/wat
       
   510   |
       
   511   ~
       
   512 
   498 
   513   $ hg log -r 'remotebookmarks("default/foo", "server2/foo")' -GT "{rev}:{node|short} {remotebookmarks}\n"
   499   $ hg log -r 'remotebookmarks("default/foo", "server2/foo")' -GT "{rev}:{node|short} {remotebookmarks}\n"
   514   o  8:3e1487808078 default/foo
   500   hg: parse error: only one argument accepted
   515   :
   501   [255]
   516   o  3:62615734edd5 server2/foo
       
   517   |
       
   518   ~
       
   519 
       
   520 Testing for multipe names where some exists and some not
       
   521 
       
   522   $ hg log -r 'remotenames(def, "re:server2")' -GT "{rev}:{node|short} {remotenames}\n"
       
   523   o  10:bf433e48adea server2/default
       
   524   :
       
   525   : o  9:f34adec73c21 server2/wat
       
   526   : :
       
   527   o :  6:87d6d6676308 default/bar server2/bar
       
   528   :/
       
   529   o  3:62615734edd5 server2/foo
       
   530   |
       
   531   ~
       
   532 
       
   533   $ hg log -r 'remotebranches("default/default", server)' -GT "{rev}:{node|short} {remotebranches}\n"
       
   534   @  7:ec2426147f0e default/default
       
   535   |
       
   536   ~
       
   537 
       
   538   $ hg log -r 'remotebookmarks("default/foo", serv)' -GT "{rev}:{node|short} {remotebookmarks}\n"
       
   539   o  8:3e1487808078 default/foo
       
   540   |
       
   541   ~
       
   542 
       
   543 Where multiple names specified and None of them exists
       
   544 
       
   545   $ hg log -r 'remotenames(def, serv2)' -GT "{rev}:{node|short} {remotenames}\n"
       
   546 
       
   547   $ hg log -r 'remotebranches(defu, server)' -GT "{rev}:{node|short} {remotebranches}\n"
       
   548 
       
   549   $ hg log -r 'remotebookmarks(delt, serv)' -GT "{rev}:{node|short} {remotebookmarks}\n"
       
   550 
   502 
   551 Testing pattern matching
   503 Testing pattern matching
   552 
   504 
   553   $ hg log -r 'remotenames("re:def")' -GT "{rev}:{node|short} {remotenames}\n"
   505   $ hg log -r 'remotenames("re:def")' -GT "{rev}:{node|short} {remotenames}\n"
   554   o  10:bf433e48adea server2/default
   506   o  10:bf433e48adea server2/default
   567   |
   519   |
   568   ~
   520   ~
   569   o  9:f34adec73c21 server2/wat
   521   o  9:f34adec73c21 server2/wat
   570   |
   522   |
   571   ~
   523   ~
   572 
       
   573   $ hg log -r 'remotebookmarks("re:def", "re:.*2")' -GT "{rev}:{node|short} {remotebookmarks}\n"
       
   574   o  8:3e1487808078 default/foo
       
   575   :
       
   576   : o  6:87d6d6676308 default/bar server2/bar
       
   577   :/
       
   578   o  3:62615734edd5 server2/foo
       
   579   |
       
   580   ~