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

RE: Re: Can you set properties on a file without having it checked out?

From: André Pönitz <andre_at_wasy.de>
Date: 2005-05-12 06:39:46 CEST

Scott Simpson [mailto:Scott.Simpson@computer.org]:
> Sent: Thursday, May 12, 2005 5:49 AM
> To: users@subversion.tigris.org
> Subject: Re: Can you set properties on a file without having it checked out?
>
> Ben Collins-Sussman wrote:
>
> >
> > You can't change versioned data (either a file's text or properties)
> > except in a working copy. Plain and simple. In other words, you
> > cannot change file-text or properties using a URL argument to some
> > command. There's no such thing, and it's deliberate.
>
> OK. So it looks like I'll have to add the property for my Change Request
> (CR) number on the client side. I could write a Perl script to intercept
> all the command line arguments and have all the users use that. This
> would have the disadvantage that I'd have to parse the "svn" command for
> file names and such. Yuck. Also, I need to handle three clients:
>
> On Windows: TortoiseSVN and Eclipse (and maybe command line)
> On Linux: Command line and Eclipse
>
> How would I intercept all three?

A brutish way would be to keep an extrea working copy checked out
e.g. locally on the server and have a post commit script updating
this working copy, making the necessary changes and committing it
(of course the script needs to distinguish such 'automatic' commits
from real ones).

Andre'

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu May 12 06:42:16 2005

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.