Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: tiwag on December 08, 2005, 06:14:27 pm

Title: SVN - "Check for Modifications" lasts ages
Post by: tiwag on December 08, 2005, 06:14:27 pm
@ SVN guru's

maybe someone can me explain the following SVN behaviour and knows a solution ?

let me explain briefly, what i did:

1.) did a SVN-checkout of a recent CB - HEAD revision on machine A onto directory _SVN
2.) have built CB there and everytime when i do a SVN - "Check for Modifications" everything is fine working.
3.) copied the whole directory _SVN to another computer machine B
4.) when i do a SVN - "Check for Modifications" on machine B, it grabs on the harddisk for several (2-4) minutes until the
     lowest and highest Revisions are shown and i can check the Repository, on machine A it lasts only 4-7seconds !!
5.) when i do a SVN-checkout on machine B, then the SVN - "Check for Modifications" also lasts only a few seconds.

common to machine A and B:
SVN == TortoiseSVN 1.2.6 b4786, 
Subversion 1.2.3 installed,
WinXP SP2


my questions :

why is this so ?!
is there a known way how to move the working directory from one computer to another without the described drawback ?
Title: Re: SVN - "Check for Modifications" lasts ages
Post by: Urxae on December 08, 2005, 06:52:14 pm
The last-modification times probably got changed by the copying, so now SVN has to compare the contents of all the files to that of the base copies in the .svn dirs to find out if you changed anything.
Solutions:
Title: Re: SVN - "Check for Modifications" lasts ages
Post by: tiwag on December 08, 2005, 07:35:30 pm
hi Urxae - thanks a lot !!!
your tip with svn cleanup works well

obviously packing 'n unpacking with winrar changes some fileinfo which is used by svn.
Title: Re: SVN - "Check for Modifications" lasts ages
Post by: thomas on December 08, 2005, 11:00:53 pm
Sidenote: Be very careful with naming your checkout directory _SVN. TortoiseSVN comes in two flavours, one that is "correct" (i.e. standards compliant), and another that is moronized to work better with some Windows versions -- this one uses the folder _SVN instead of .svn to store the versioning data.
Title: Re: SVN - "Check for Modifications" lasts ages
Post by: Urxae on December 08, 2005, 11:16:57 pm
Well, when someone is copying working copies between machines, I think it's fair to assume he didn't install the normal version on one computer and the 'moronized' version on the other. The working copies wouldn't be compatible anyway, he'd have found out soon enough ;). (Before that post even, as "Check for Modifications" wouldn't work at all on the wrong type of working copy)

Oh, and it's not done to work with some Windows versions, but to "work around the VS.NET bug with web projects".
I assume he's using Code::Blocks, so I don't think that would be an issue.
Though I don't know what they mean by "web projects" (and whether they can be done in Code::Blocks) I presume he wouldn't be using Code::Blocks if he couldn't achieve what he wanted to do with it.
Title: Re: SVN - "Check for Modifications" lasts ages
Post by: tiwag on December 09, 2005, 08:45:27 am
Sidenote: Be very careful with naming your checkout directory _SVN
....
thanks for the hint  :)