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

Re: svn status does not detect a modification if the same file was touched

From: Sasikala Kottegoda <sasikala_at_wso2.com>
Date: Thu, 19 Oct 2017 15:46:45 +0530

Hi Andreas,

Thanks for the prompt reply.

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?

Thank you,
Sasikala

On Thu, Oct 19, 2017 at 3:25 PM, Andreas Stieger <andreas.stieger_at_gmx.de>
wrote:

> Greetings,
>
> On 10/19/2017 11:41 AM, Sasikala Kottegoda wrote:
> > A file named a.txt exists inside a folder in the working copy, which
> > has been copied from somewhere else
> >
> > * cCopy and replace a.txt with the same file/or modify it by issuing
> > the 'touch' command
> > * Do an svn status, it shows nothing
> > * Do an svn info on the file and 'Last Changed Date' shows the same
> > as the previous file. It does not get modified even though the
> > file was newly copied.
> > * But the from java files API, the file is shown with a different
> > modified date
> >
> > Why do we not modify the 'Last Changed Date' when the file was newly
> > copied/touched?
>
> Last Changed Date refers to the last change of the version item in the
> repository that the working copy knows about. It does not relate or
> account for local file system changes, neither in identity (inode),
> timestamps (touch) nor content - because this is a local change that
> does not change the versioned item until commit.
>
> Andreas
>

-- 
Sasikala Kottegoda
*Senior Software Engineer*
WSO2 Inc., http://wso2.com/
lean. enterprise. middleware
Mobile: +94 774835928
[image: https://wso2.com/signature] <https://wso2.com/signature>
Received on 2017-10-19 12:17:16 CEST

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

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