Hi,
I'm following instructions by reporting a bug here first. I'm not
subscribed to this list and unfortunately don't have time to participate in
a discussion.
Version:
svn, version 1.6.18 (r1303927)
Problem:
There is a situation where $Id$ substitution is inconsistent. If you svn
copy and then commit a directory, leaving some files unmodified, after the
commit all of the files in that directory will have $Id$ showing the
revision of the commit. But if you blow away the copied directory and then
check it back out, then the files that were not modified have their
original, pre-copy revisions showing in the $Id$ strings.
Test script:
#!/bin/sh
set -ex
rm -rf test.repo test.checkout
svnadmin create test.repo
svn co file://`pwd`/test.repo test.checkout
cd test.checkout/
mkdir dir1
echo 'file1: $Id$' > dir1/file1
echo 'file2: $Id$' > dir1/file2
svn add dir1
svn ps svn:keywords Id dir1/*
svn ci -m 'add dir1' dir1
svn cp dir1 dir2
echo new line >> dir2/file2
svn ci -m 'add dir2' dir2
grep -w Id dir2/file*
rm -rf dir2
svn up dir2
grep -w Id dir2/file*
Test Script output showing the discrepancy:
...
Transmitting file data .
Committed revision 2.
+ grep -w Id dir2/file1 dir2/file2
dir2/file1:file1: *$Id: file1 2 2012-08-24 14:29:01Z archie $*
dir2/file2:file2: $Id: file2 2 2012-08-24 14:29:01Z archie $
+ rm -rf dir2
+ svn up dir2
A dir2
A dir2/file1
A dir2/file2
Updated to revision 2.
+ grep -w Id dir2/file1 dir2/file2
dir2/file1:file1: *$Id: file1 1 2012-08-24 14:28:59Z archie $*
dir2/file2:file2: $Id: file2 2 2012-08-24 14:29:01Z archie $
Thanks,
-Archie
--
Archie L. Cobbs
Received on 2012-08-24 16:38:57 CEST