Ralph Seichter wrote on Thu, 19 Oct 2017 13:01 +0200:
> On 19.10.2017 12:16, Sasikala Kottegoda wrote:
> 
> > In this scenario, svn status does not show anything. Also, the file
> > does not get commited when I issue an 'svn commit'. Is there a reason
> > for that?
> 
> Subversion uses a hash of the file content to determine if it has been
> modified. Changing the modification date in the working copy, as you did
> with 'touch', does not alter the content, hence the file is considered
> unchanged.

Subversion doesn't use checksums to detect modifications.  'svn status'
is based on filesize + mtime only.  If mtime differs but filesize doesn't, then
a full content diff is done.

> This is deliberate.

Yes, it is, for efficiency reasons.  (stat() is cheaper than read())

Reply via email to