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

Re: Need to check a file out, but want never to check it back in !

From: Simon Large <simon.tortoisesvn_at_gmail.com>
Date: Thu, 4 Nov 2010 17:31:59 +0000

On 4 November 2010 17:06, Richard Willis <RichardW_at_pulsar-pm.com> wrote:
> I am using TortoiseSVN in my build environment, which is an ancient (management decision) version of Hitachi Workbench.
> HWB maintains a .set file which contains stuff not pertinent to the build and which changes whenever I do anything trivial, such as a resize of the editor window. So, whenever I just do nothing in particular, this file is  always marked as "changed". I don't want to keep checking this file back in.

I have some stupid software like that too :-(

> I could just add it to the ignore list but that means it won't get checked-out when I do a clean checkout of the project. HWB, being what it is, will simply fail to start up if this file is absent, rather than assuming some sensible defaults.
> So, what do I do ? As far as I can see, there are four options:
> Give the file a property of some type that says "stored but never versioned". Such a mechanism doesn't seem to exist.


> Use a post-checkout hook to copy a "new" version of that file from some template or other. There doesn't seem to be a hook for this event.

Server-side hooks execute on the server anyway, so no good here.

> Use a client-side post-checkout hook to do the above. This seems unnecessarily complicated as it insists I specify a directory in which this is to work (why ? I want it to work in whatever directory I'm checking out to). Also, it means a separate setup step for each machine on which I'm likely to want to check-out. Also, it doesn't appear to work: it just flashes a DOS box and does nothing else (it is pointed at a .BAT file, which never gets invoked)

They have to be set up per machine for security reasons, otherwise I
could put a malicious hook into the repository and have it execute on
every other client's machine. I think when you specify a folder it
works in all sub-folders too. All the same, not a good solution.

> Use a custom differ to say "this file never changes". OK, so I create a minimal .exe file which always returns zero and set the Advanced diff tools to point to this exe for the file extension .set. This doesn't work: when I manually make a change to the .set file, I still get the red exclamation icon on it. Using right-click-diff on that file does indeed invoke my custom differ though.
> None of those options works. What am I doing wrong.

The recommended way is to commit a template file. You could have an
init.bat file at the root of your checkout which copies the template
to the .set file if it doesn't already exist. That's the best solution
available, I think.


:       ___
:  oo  // \\      "De Chelonian Mobile"
: (_,\/ \_/ \     TortoiseSVN
:   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
:   /_/   \_\     http://tortoisesvn.net
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-11-04 18:32:06 CET

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

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