# HG changeset patch # User Christian Ebert # Date 1192804136 -7200 # Node ID c6314b110e67542cb446c4d7c8299defd6ae671d # Parent 2088e409d3607f5542bb341621ab29a995d793b2 Detailed test of kwexpand/kwshrink w/ file arguments diff -r 2088e409d360 -r c6314b110e67 tests/test-keyword --- a/tests/test-keyword Fri Oct 19 16:09:56 2007 +0200 +++ b/tests/test-keyword Fri Oct 19 16:28:56 2007 +0200 @@ -155,15 +155,19 @@ hg incoming | grep -v '^comparing with' cd ../Test -echo % pathto for kwexpand/kwshrink +echo % kwexpand/kwshrink on selected files mkdir x -echo % copy +echo % copy a x/a hg copy a x/a +echo % kwexpand a +hg --verbose kwexpand a +echo % kwexpand x/a should abort +hg --verbose kwexpand x/a cd x hg --debug commit -m xa -d '3 0' -u 'User Name ' echo % cat a cat a -echo % kwshrink a +echo % kwshrink a inside directory x hg --verbose kwshrink a echo % cat a cat a diff -r 2088e409d360 -r c6314b110e67 tests/test-keyword.out --- a/tests/test-keyword.out Fri Oct 19 16:09:56 2007 +0200 +++ b/tests/test-keyword.out Fri Oct 19 16:28:56 2007 +0200 @@ -207,8 +207,12 @@ date: Thu Jan 01 00:00:02 1970 +0000 summary: firstline -% pathto for kwexpand/kwshrink -% copy +% kwexpand/kwshrink on selected files +% copy a x/a +% kwexpand a +overwriting a expanding keywords +% kwexpand x/a should abort +abort: outstanding uncommitted changes in given files x/a x/a: copy a:779c764182ce5d43e2b1eb66ce06d7b47bfe342e overwriting x/a expanding keywords @@ -217,7 +221,7 @@ do not process $Id: xxx $ $Xinfo: User Name : xa $ -% kwshrink a +% kwshrink a inside directory x overwriting x/a shrinking keywords % cat a expand $Id$