[keeping this on the users@ list]
On Dec 16, 2004, at 12:51 PM, Daniel Jackson wrote:
> Ben,
>
> If I have a file with this:
>
> line1 - $Rev$
>
> Then I commit and update it as revision 1.
>
> Then I edit it so it looks like this:
>
> line1 - 1
> line2 - $Rev$
>
> Then I commit and update it as revision 2.
>
> Don't I get this:
>
>
[sussman@BenBook:~/scratch]$ svnadmin create repos
[sussman_at_BenBook:~/scratch]$ svn co file://`pwd`/repos wc
Checked out revision 0.
[sussman@BenBook:~/scratch]$ cd wc
[sussman@BenBook:~/scratch/wc]$ echo "\$Rev:\$" > file
[sussman@BenBook:~/scratch/wc]$ svn add file
A file
[sussman@BenBook:~/scratch/wc]$ svn propset svn:keywords Revision file
property 'svn:keywords' set on 'file'
[sussman@BenBook:~/scratch/wc]$ cat file
$Rev$
[sussman@BenBook:~/scratch/wc]$ svn ci -m "add file"
Adding file
Transmitting file data .
Committed revision 1.
[sussman@BenBook:~/scratch/wc]$ cat file
$Rev: 1 $
[sussman@BenBook:~/scratch/wc]$ echo "new text" >> file
[sussman@BenBook:~/scratch/wc]$ cat file
$Rev: 1 $
new text
[sussman@BenBook:~/scratch/wc]$ svn ci -m "commit again"
Sending file
Transmitting file data .
Committed revision 2.
[sussman@BenBook:~/scratch/wc]$ cat file
$Rev: 2 $
new text
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Dec 16 20:12:19 2004