You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Lakshman Srilakshmanan <la...@tradingpost.com.au> on 2006/02/06 04:29:53 UTC

Solution to File corruption

Hi All,

First let me thank you for your suggestions.
Steve hit the nail on the head.

Sensis_Classifieds_J2EE_Framework.doc file contains the keywords
$Author$ and $Revision$. It is included as an example of what the
developers should include in their source code. It appears this is
corrupting the file when subversion tries to replace these keywords. I
did not have this problem in CVS as CVS does not attempt to replace
keywords in binary files.

Is this a bug ? I would not expect subversion to try and substitute
keywords in a binary file.

Secondly is the work-around, to set svn:keywords explicitly on files we
explicitly need keyword substitution.

Thanks
Lakshman


-----Original Message-----
From: Lakshman Srilakshmanan 
Sent: Monday, 6 February 2006 2:48 PM
To: Steve Williams
Cc: Ryan Schmidt; users@subversion.tigris.org
Subject: RE: File corruption

Hi Steve

I have listed the property of both files. The only difference I can see
is the file size.
One is 500Kb the other one is 170KB.

Please find listed below the property on 2 files. 
One gets corrupted (Sensis_Classifieds_J2EE_Framework.doc) the other is
fine (Sensis_Classifieds_Logging.doc)

Are there any file size limitation?

lakshman@bart:~/Common-trunk > svn proplist
xdocs/Sensis_Classifieds_Logging.doc
Properties on 'xdocs/Sensis_Classifieds_Logging.doc':
  svn:mime-type
  svn:keywords

lakshman@bart:~/Common-trunk > svn proplist
xdocs/Sensis_Classifieds_J2EE_Framework.doc
Properties on 'xdocs/Sensis_Classifieds_J2EE_Framework.doc':
  svn:mime-type
  svn:keywords


lakshman@bart:~/Common-trunk > svn propget svn:mime-type
xdocs/Sensis_Classifieds_Logging.doc
application/octet-stream
lakshman@bart:~/Common-trunk > svn propget svn:mime-type
docs/Sensis_Classifieds_J2EE_Framework.doc
application/octet-stream

lakshman@bart:~/Common-trunk > svn propget svn:keywords
xdocs/Sensis_Classifieds_Logging.doc
Author Revision HeadURL Date
lakshman@bart:~/Common-trunk > svn propget svn:keywords
xdocs/Sensis_Classifieds_J2EE_Framework.doc
Author Revision HeadURL Date



-rw-r--r--    1 lakshman dev        596992 Feb  3 18:34
Sensis_Classifieds_J2EE_Framework.doc.good


-rw-r--r--    1 lakshman dev        597008 Feb  3 18:44
Sensis_Classifieds_J2EE_Framework.doc
-rw-r--r--    1 lakshman dev        171520 Feb  3 18:13
Sensis_Classifieds_Logging.doc

Thanks

Lakshman


-----Original Message-----
From: Steve Williams [mailto:stevewilliams@kromestudios.com] 
Sent: Monday, 6 February 2006 2:39 PM
To: Lakshman Srilakshmanan
Cc: Ryan Schmidt; users@subversion.tigris.org
Subject: Re: File corruption

Lakshman Srilakshmanan wrote:

>Hi Steve,
>
>Thanks for your mail.
>
>Assuming I don't set svn:eol-style, I get
>Sensis_Classifieds_J2EE_Framework.doc file corrupted and
>Sensis_Classifieds_Logging.doc is fine for the same operation.
>  
>

Maybe you still have the svn:keywords property set and only one document

contains the keywords.

-- 
Sly



This message and its attachments may contain legally privileged or
confidential information. This message is intended for the use of the
individual or entity to which it is addressed. If you are not the
addressee indicated in this message, or the employee or agent
responsible for delivering the message to the intended recipient, you
may not copy or deliver this message or its attachments to anyone.
Rather, you should permanently delete this message and its attachments
and kindly notify the sender by reply e-mail. Any content of this
message and its attachments, which does not relate to the official
business of the sending company must be taken not to have been sent or
endorsed by the sending company or any of its related entities. No
warranty is made that the e-mail or attachment(s) are free from computer
virus or other defect.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: Solution to File corruption

Posted by Ulrich Eckhardt <ec...@satorlaser.com>.
Please don't start a new mail when you are in fact following up to an existing 
discussion. How should anyone know what you are talking about?

On Monday 06 February 2006 05:29, Lakshman Srilakshmanan wrote:
> Sensis_Classifieds_J2EE_Framework.doc file contains the keywords
> $Author$ and $Revision$. It is included as an example of what the
> developers should include in their source code. It appears this is
> corrupting the file when subversion tries to replace these keywords. I
> did not have this problem in CVS as CVS does not attempt to replace
> keywords in binary files.
>
> Is this a bug ? I would not expect subversion to try and substitute
> keywords in a binary file.

You told Subversion to replace keywords and it did so, that's not a bug.

> Secondly is the work-around, to set svn:keywords explicitly on files we
> explicitly need keyword substitution.

It's not a workaround. Don't tell Subversion to substitute keywords unless you 
want it to substitute keywords.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org