tests/test-keyword.t
branchstable
changeset 828 725ab7fe00e5
parent 827 e5ccf0c0c053
child 830 7c5571af20c9
equal deleted inserted replaced
827:e5ccf0c0c053 828:725ab7fe00e5
   152   $ hg cat sym a b && echo
   152   $ hg cat sym a b && echo
   153   expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $
   153   expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $
   154   do not process $Id:
   154   do not process $Id:
   155   xxx $
   155   xxx $
   156   ignore $Id$
   156   ignore $Id$
   157   a* (glob)
   157   a
   158 
   158 
   159 Test hook execution
   159 Test hook execution
   160 
   160 
   161   $ diff a hooktest
   161   $ diff a hooktest
   162 
   162 
   195   added 2 changesets with 3 changes to 3 files
   195   added 2 changesets with 3 changes to 3 files
   196   Content-Type: text/plain; charset="us-ascii"
   196   Content-Type: text/plain; charset="us-ascii"
   197   MIME-Version: 1.0
   197   MIME-Version: 1.0
   198   Content-Transfer-Encoding: 7bit
   198   Content-Transfer-Encoding: 7bit
   199   Date: * (glob)
   199   Date: * (glob)
   200   Subject: changeset in * (glob)
   200   Subject: changeset in $TESTTMP/Test: addsym
   201   From: mercurial
   201   From: mercurial
   202   X-Hg-Notification: changeset a2392c293916
   202   X-Hg-Notification: changeset a2392c293916
   203   Message-Id: <hg.a2392c293916*> (glob)
   203   Message-Id: <hg.a2392c293916*> (glob)
   204   To: Test
   204   To: Test
   205   
   205   
   206   changeset a2392c293916 in * (glob)
   206   changeset a2392c293916 in $TESTTMP/Test
   207   details: *cmd=changeset;node=a2392c293916 (glob)
   207   details: *cmd=changeset;node=a2392c293916 (glob)
   208   description:
   208   description:
   209   	addsym
   209   	addsym
   210   
   210   
   211   diffs (6 lines):
   211   diffs (6 lines):
   218   \ No newline at end of file
   218   \ No newline at end of file
   219   Content-Type: text/plain; charset="us-ascii"
   219   Content-Type: text/plain; charset="us-ascii"
   220   MIME-Version: 1.0
   220   MIME-Version: 1.0
   221   Content-Transfer-Encoding: 7bit
   221   Content-Transfer-Encoding: 7bit
   222   Date:* (glob)
   222   Date:* (glob)
   223   Subject: changeset in* (glob)
   223   Subject: changeset in $TESTTMP/Test: absym
   224   From: User Name <user@example.com>
   224   From: User Name <user@example.com>
   225   X-Hg-Notification: changeset ef63ca68695b
   225   X-Hg-Notification: changeset ef63ca68695b
   226   Message-Id: <hg.ef63ca68695b*> (glob)
   226   Message-Id: <hg.ef63ca68695b*> (glob)
   227   To: Test
   227   To: Test
   228   
   228   
   229   changeset ef63ca68695b in * (glob)
   229   changeset ef63ca68695b in $TESTTMP/Test
   230   details: *cmd=changeset;node=ef63ca68695b (glob)
   230   details: $TESTTMP/Test?cmd=changeset;node=ef63ca68695b
   231   description:
   231   description:
   232   	absym
   232   	absym
   233   
   233   
   234   diffs (12 lines):
   234   diffs (12 lines):
   235   
   235   
   612   $ hg cat sym a b && echo
   612   $ hg cat sym a b && echo
   613   expand $Id: a ef63ca68695b Thu, 01 Jan 1970 00:00:00 +0000 user $
   613   expand $Id: a ef63ca68695b Thu, 01 Jan 1970 00:00:00 +0000 user $
   614   do not process $Id:
   614   do not process $Id:
   615   xxx $
   615   xxx $
   616   ignore $Id$
   616   ignore $Id$
   617   a* (glob)
   617   a
   618 
   618 
   619 Write custom keyword and prepare multiline commit message
   619 Write custom keyword and prepare multiline commit message
   620 
   620 
   621   $ echo '$Xinfo$' >> a
   621   $ echo '$Xinfo$' >> a
   622   $ cat <<EOF >> log
   622   $ cat <<EOF >> log
   662   expand $Id: a bb948857c743 Thu, 01 Jan 1970 00:00:02 +0000 user $
   662   expand $Id: a bb948857c743 Thu, 01 Jan 1970 00:00:02 +0000 user $
   663   do not process $Id:
   663   do not process $Id:
   664   xxx $
   664   xxx $
   665   $Xinfo: User Name <user@example.com>: firstline $
   665   $Xinfo: User Name <user@example.com>: firstline $
   666   ignore $Id$
   666   ignore $Id$
   667   a* (glob)
   667   a
   668 
   668 
   669 annotate
   669 annotate
   670 
   670 
   671   $ hg annotate a
   671   $ hg annotate a
   672   1: expand $Id$
   672   1: expand $Id$
   733   $ cat <<EOF >> .hg/hgrc
   733   $ cat <<EOF >> .hg/hgrc
   734   > [paths]
   734   > [paths]
   735   > default = ../Test
   735   > default = ../Test
   736   > EOF
   736   > EOF
   737   $ hg incoming
   737   $ hg incoming
   738   comparing with */Test (glob)
   738   comparing with $TESTTMP/Test
   739   searching for changes
   739   searching for changes
   740   changeset:   2:bb948857c743
   740   changeset:   2:bb948857c743
   741   tag:         tip
   741   tag:         tip
   742   user:        User Name <user@example.com>
   742   user:        User Name <user@example.com>
   743   date:        Thu Jan 01 00:00:02 1970 +0000
   743   date:        Thu Jan 01 00:00:02 1970 +0000
   992   expand $Id: a bb948857c743 Thu, 01 Jan 1970 00:00:02 +0000 user $
   992   expand $Id: a bb948857c743 Thu, 01 Jan 1970 00:00:02 +0000 user $
   993   do not process $Id:
   993   do not process $Id:
   994   xxx $
   994   xxx $
   995   $Xinfo: User Name <user@example.com>: firstline $
   995   $Xinfo: User Name <user@example.com>: firstline $
   996   ignore $Id$
   996   ignore $Id$
   997   a* (glob)
   997   a
   998 
   998 
   999 Now disable keyword expansion
   999 Now disable keyword expansion
  1000 
  1000 
  1001   $ rm "$HGRCPATH"
  1001   $ rm "$HGRCPATH"
  1002   $ cat a b
  1002   $ cat a b
  1009   expand $Id$
  1009   expand $Id$
  1010   do not process $Id:
  1010   do not process $Id:
  1011   xxx $
  1011   xxx $
  1012   $Xinfo$
  1012   $Xinfo$
  1013   ignore $Id$
  1013   ignore $Id$
  1014   a* (glob)
  1014   a