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

Re: Force commit (when file contents have changed but not timestamp)

From: Simon Large <simon.tortoisesvn_at_googlemail.com>
Date: 2007-09-25 10:25:04 CEST

On 25/09/2007, Matthias Bolliger <Matthias.Bolliger@aaro.se> wrote:
> Is there a way to force TSVN to commit a file, when its contents has changed but its timestamp has not?
>
> In this situation, TSVN currently does not seem to see the file as changed, and says "There's nothing for TortoiseSVN to do here..."
>
> I keep some code signing keys and certificates in a TrueCrypt volume, and the volume file (Keys.tc) in turn is kept in SVN. When new keys are added, or other changes made to the TrueCrypt volume, it is definitely changed, but its timestamp remains unchanged (probably a feature of TrueCrypt).
>
> I have to manually change the timestamp of the file to make TSVN understand that the file needs to be committed. It would be nicer to have a TSVN command "Force commit".
>
> Is there perhaps a way already? Or would this be a feature request?

It would be a feature request for TrueCrypt or Subversion first of
all. However, it may not be necessary. Subversion should check both
the file size and the timestamp and not rely solely on the timestamp.
I believe this is fixed on svn trunk, but have not confirmed it.

If both timestamp and filesize are the same, subversion will not check
the content. If it did that it would take forever to check every file
byte-by-byte for a corner case which should not really exist. You
could ask on the subversion list for an option to force this, but I
don't rate your chances.

A better solution would be to ask the TrueCrypt developers to change
the timestamp when the file content is changed. TrueCrypt has already
made at least one change in response to a request which originated on
this list.

http://tortoisesvn.net/node/249

Simon

-- 
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.net
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Tue Sep 25 10:25:21 2007

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

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