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

Re: [TSVN] BUG: Files are labeled modfied if the date changes rather than if the file changes...

From: SteveKing <steveking_at_gmx.ch>
Date: 2005-01-18 19:45:23 CET

Michael D'Auria wrote:
> For instance, you start making changes to a file and save as you go.

How about 'hi' first?

> The files is actually modified now, but then you realize you made a
> mistake and you shouldn't have edited that part, so you Undo all your
> work and now the file is where it was when you started. TortoiseSVN
> shows this as being modified, when it is in fact unmodified, that last
> changed date has just changed.

That's because it _is_ still modified. If you use the 'revert' command
to undo your changes, then the modified icon will be gone.

> This wouldn't be a big deal if when I committed the files would remain
> at the revision they were before I committed this time, but the revision
> increases anyway.

Do a diff on that file from the log dialog (a unified diff, because your
external diff program might not show you those differences).
I would bet a 100 bucks that you forgot to undo a simple whitespace
change to your file, e.g. an empty line at the end of the file, a tab
replaced with spaces or something like that.
Subversion _never_ shows a file as modified (and therefore would never
commit it) if it isn't really modified. Unlike CVS, the filedate is just
used to make the check faster - if the filedates are identical, then it
is assumed that the file hasn't changed. But if the filedates differ,
then Subversion scans the whole file to make sure it really has changed
(or not).

> P.S.: I LOVE this program, so don't think I am knocking it, I just would
> like to make it better :)

Then don't put a big "BUG:" in your mail subject line - I really hate
that because most of the time it's not a bug. What do you think that
people who search the mailing list will think when they find hundreds of
mails starting with "BUG:"?

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Tue Jan 18 19:45:57 2005

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

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