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

Re: Can I prevent a file from being modified?

From: Chris Albertson <albertson.chris_at_gmail.com>
Date: Sun, 17 Jul 2011 12:50:14 -0700

On Sat, Jul 16, 2011 at 1:14 PM, David Myers
<david.myers.24j74_at_gmail.com> wrote:
> Dear subversion,
>
> I have recently started a new post and I am in the process of investigating
> some possible new working practices. This particularly relates to document
> control.

No matter how good or what features you have in SVN or some other
system like it, there is the chance that after the document is checked
out it is modified. I think you need to have workflow and practices
to prevent and detect a change that might happen outside of svn. A
couple things I can think of are (1) COmpute the MD5 checksum and
store that as a seporate text file. If ever you find the MD5 and the
document no longer match you know one of them is changed. (2) many
document file formats and be set to disallow edits. PDF can bet set
this way.

WithSVN I think all you need is a way to DETECT changes because you
can always back them out if you know the change was made. An MD5
checksum is a good way to detect changes

-- 
Chris Albertson
Redondo Beach, California
Received on 2011-07-17 21:51:10 CEST

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