> On 3/30/07, Ryan Schmidt <subversion-2007a@ryandesign.com> wrote:
> >Only other thing I could think of: are the timestamps of the
> >pristine file and the modified file the same? If so, Subversion may
> >not think they are different. Try "touch"ing the modified file
> >first. Then see if it will revert.
[Mark Wagner]
> That was it, thanks. I don't suppose there's an undocumented
> "--force" option for "svn revert"?
Subversion, like the Unix 'make' command, assumes that if you modify a
file, you modify its "last modified" timestamp. That is, after all,
why the "last modified" timestamp exists. A few rare tools attempt to
hide the fact that they made modifications to a file by restoring the
file's original timestamp. Don't use such tools with Subversion - or,
really, don't use them at all, unless your _intention_ is to fool your
software in this way.
Subversion 1.5, when released, will attempt to work around this broken
behavior in most cases, by noticing when a file's timestamp has not
changed but its size has changed.
Received on Sat Mar 31 04:25:43 2007