[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

svn:keyword causes modified status after checkout

From: T E Schmitz <mailreg_at_numerixtechnology.de>
Date: 2005-08-04 23:43:01 CEST

Hello,

I imported a vendor branch and one of the autoprops was
* = svn:keywords=LastChangedDate Revision Author

The imported vendor branch was an export from a subversion working copy.
The $Revision$ and $Rev$ keyword had been used in the sources. In 268
source files it appears as $Rev:$ - with the colon, no spaces and no
revision number.

These 268 sources lead to different side effects on different client
machines.

When checking out these sources I get the following effects:

===========================
Subversion 1.1.4-2 on Linux
===========================

All 268 files have the modified status right after checkout. After
reverting the files in the wc, the files still show up as modified.

svn diff:

--- ByteWrapper.java (revision 5)
+++ ByteWrapper.java (working copy)
@@ -30,7 +30,7 @@
   * A very simple class to wrap a byte array for persistence.
   *
   * @author <a href="mailto:jonesde@ofbiz.org">David E. Jones</a>
- * @version $Rev:$
+ * @version $Rev$
   * @since 2.1
   */
  public class ByteWrapper implements Serializable {

In the editor the line appears as

* @version $Rev: 2 $

===========================
Subversion 1.2.1 on Windows
===========================

None of the files have the modified status after checkout. But when I
modify one of those 268 files, the diff shows the change as well as the
line containing $Rev:$ as modified.

svn diff:

--- ByteWrapper.java (revision 5)
+++ ByteWrapper.java (working copy)
@@ -30,11 +30,11 @@
   * A very simple class to wrap a byte array for persistence.
   *
   * @author <a href="mailto:jonesde@ofbiz.org">David E. Jones</a>
- * @version $Rev:$
+ * @version $Rev$
   * @since 2.1
   */
  public class ByteWrapper implements Serializable {
- protected byte[] bytes;
+ protected byte[] bbytes;

      protected ByteWrapper() {}

===========================
Subversion 1.0.6-2 on Linux
===========================

None of the files have the modified status after checkout. When I modify
one of those 268 files the diff shows only the change I made.

svn diff:

--- ByteWrapper.java (revision 5)
+++ ByteWrapper.java (working copy)
@@ -34,7 +34,7 @@
   * @since 2.1
   */
  public class ByteWrapper implements Serializable {
- protected byte[] bytes;
+ protected byte[] bbytes;

      protected ByteWrapper() {}

======================

The server also runs Subversion 1.0.6-2 on Linux.

Occurrences of $Rev: xxxx $ do not cause this problem, nor does
$Revision: $

Question: does it have any significance that I specified "Revision"
rather than "Rev" or both in the autoprops? I presume not.

The only solution I can think of is repeating the import, this time
without svn:keywords.

Have you got a better idea?

-- 
Regards/Gruß,
Tarlika Elisabeth Schmitz
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Aug 4 23:45:18 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.