You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by David Aldrich <da...@eu.nec.com> on 2009/04/21 11:24:10 UTC

Synchronising svn config files on Windows PCs

Hi
 
It is important for us that all our svn committers use the same version of our svn config file. Most of our committers work in Windows. My understanding is that svn provides no facility to push a config file to users' workstations, so I would like to find a Windows facility for doing this instead.
 
So my requirement is for a facility that allows a Windows System Administrator to push a config file to: 
 
%APPDATA%\Subversion

on specified PC's.

Please can anyone suggest how to do this?

Best regards

David

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1842033

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].


RE: Synchronising svn config files on Windows PCs

Posted by Bert Huijben <rh...@sharpsvn.net>.
> -----Original Message-----
> From: Ryan Schmidt [mailto:subversion-2009a@ryandesign.com]
> Sent: dinsdag 21 april 2009 13:58
> To: David Aldrich
> Cc: users@subversion.tigris.org
> Subject: Re: Synchronising svn config files on Windows PCs
> 
> On Apr 21, 2009, at 06:24, David Aldrich wrote:
> 
> > It is important for us that all our svn committers use the same
> > version of our svn config file. Most of our committers work in
> > Windows. My understanding is that svn provides no facility to push
> > a config file to users' workstations, so I would like to find a
> > Windows facility for doing this instead.
> >
> > So my requirement is for a facility that allows a Windows System
> > Administrator to push a config file to:
> >
> > %APPDATA%\Subversion
> >
> > on specified PC's.
> >
> > Please can anyone suggest how to do this?
> 
> You could, of course, use Subversion to do this. Just make %APPDATA%
> \Subversion a working copy that pulls its information from somewhere
> in your repository. Users would have to run "svn up" on that
> directory periodically to obtain updates, or perhaps there is a
> Windows scheduler you could use to do so automatically.

On Windows you can also use the registry to publish Subversion settings.
When your organization uses group policies it's usually easier to use these
settings than the specific config files.

See
http://svnbook.red-bean.com/en/1.5/svn.advanced.confarea.html#svn.advanced.c
onfarea.windows-registry for more details

	Bert

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1843477

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: Synchronising svn config files on Windows PCs

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Apr 21, 2009, at 06:24, David Aldrich wrote:

> It is important for us that all our svn committers use the same  
> version of our svn config file. Most of our committers work in  
> Windows. My understanding is that svn provides no facility to push  
> a config file to users' workstations, so I would like to find a  
> Windows facility for doing this instead.
>
> So my requirement is for a facility that allows a Windows System  
> Administrator to push a config file to:
>
> %APPDATA%\Subversion
>
> on specified PC's.
>
> Please can anyone suggest how to do this?

You could, of course, use Subversion to do this. Just make %APPDATA% 
\Subversion a working copy that pulls its information from somewhere  
in your repository. Users would have to run "svn up" on that  
directory periodically to obtain updates, or perhaps there is a  
Windows scheduler you could use to do so automatically.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1842329

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

RE: Synchronising svn config files on Windows PCs

Posted by "Todd C. Gleason" <tg...@impac.com>.
> -----Original Message-----
> From: Andy Levy [mailto:andy.levy@gmail.com]
> Sent: Tuesday, April 21, 2009 8:03 AM
> To: David Aldrich
> Cc: users@subversion.tigris.org; Bolstridge, Andrew
> Subject: Re: Synchronising svn config files on Windows PCs
> 
> On Tue, Apr 21, 2009 at 09:47, David Aldrich
<Da...@eu.nec.com>
> wrote:
> > Thanks to everyone who responded to my question.
> >
> >> > The easiest method is to add a copy statement to the user's login
> >> > script.
> >
> > I'll go with this solution, as the registry solution is more
> complicated.
> >
> > There are a couple of details that I would like to ask about:
> >
> > Firstly:
> >
> >> If the user already has the latest version, it's not overlaid.
> >
> > Andy, how do you do this check?
> 
> It's something in ZENWorks, which I've never used. I handed the config
> file to my co-worker who does that voodoo and gave him the parameters.
> 
> > Secondly:
> >
> > I would do the copy directly from the config file's url. However, I
have
> used the $Id$ keyword at the top of the config file so that I can
quickly
> determine its revision. In my understanding, a copy from the url will
not
> expand that keyword. Is there any way to expand the keyword apart from
> checking out the file into a working copy?
> >

We do a similar thing using Python:  Pull down the config file (using
svn cat), compare it to the user's config file, and if different, prompt
to overwrite it.  So we don't actually have a working copy for the
config file, but it is stored in a Subversion repository.

We do this from a script that pulls down a build, which most users run
frequently enough that I'm not too concerned that a few may have a
slightly out-of-date version.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1844709

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].


Re: Synchronising svn config files on Windows PCs

Posted by Andy Levy <an...@gmail.com>.
On Tue, Apr 21, 2009 at 09:47, David Aldrich <Da...@eu.nec.com> wrote:
> Thanks to everyone who responded to my question.
>
>> > The easiest method is to add a copy statement to the user's login
>> > script.
>
> I'll go with this solution, as the registry solution is more complicated.
>
> There are a couple of details that I would like to ask about:
>
> Firstly:
>
>> If the user already has the latest version, it's not overlaid.
>
> Andy, how do you do this check?

It's something in ZENWorks, which I've never used. I handed the config
file to my co-worker who does that voodoo and gave him the parameters.

> Secondly:
>
> I would do the copy directly from the config file's url. However, I have used the $Id$ keyword at the top of the config file so that I can quickly determine its revision. In my understanding, a copy from the url will not expand that keyword. Is there any way to expand the keyword apart from checking out the file into a working copy?
>

Keyword expansion is a client operation, and is done on checkout & export.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1843954

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].


RE: Synchronising svn config files on Windows PCs

Posted by David Aldrich <da...@eu.nec.com>.
Thanks to everyone who responded to my question. 

> > The easiest method is to add a copy statement to the user's login 
> > script.

I'll go with this solution, as the registry solution is more complicated.

There are a couple of details that I would like to ask about:

Firstly:

> If the user already has the latest version, it's not overlaid.

Andy, how do you do this check?

Secondly:

I would do the copy directly from the config file's url. However, I have used the $Id$ keyword at the top of the config file so that I can quickly determine its revision. In my understanding, a copy from the url will not expand that keyword. Is there any way to expand the keyword apart from checking out the file into a working copy?

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1843738

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].


Re: Synchronising svn config files on Windows PCs

Posted by Andy Levy <an...@gmail.com>.
On Tue, Apr 21, 2009 at 08:09, Bolstridge, Andrew
<an...@intergraph.com> wrote:
> The easiest method is to add a copy statement to the user's login
> script.

I've set up exactly this. Upon login, ZENWorks checks for the
existence of %APPDATA%\Subversion and if it's there, copies a standard
config file into it. If the user already has the latest version, it's
not overlaid.

> I think the lack of an 'universal config' is an issue for "enterprise
> subversion", but this gets round it nicely.
>
>
>
>> -----Original Message-----
>> From: David Aldrich [mailto:david.aldrich@eu.nec.com]
>> Sent: Tuesday, April 21, 2009 12:24 PM
>> To: users@subversion.tigris.org
>> Subject: Synchronising svn config files on Windows PCs
>>
>> Hi
>>
>> It is important for us that all our svn committers use the same
> version
>> of our svn config file. Most of our committers work in Windows. My
>> understanding is that svn provides no facility to push a config file
> to
>> users' workstations, so I would like to find a Windows facility for
>> doing this instead.
>>
>> So my requirement is for a facility that allows a Windows System
>> Administrator to push a config file to:
>>
>> %APPDATA%\Subversion
>>
>> on specified PC's.
>>
>> Please can anyone suggest how to do this?
>>
>> Best regards
>>
>> David
>>
>> ------------------------------------------------------
>>
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessage
>> Id=1842033
>>
>> To unsubscribe from this discussion, e-mail: [users-
>> unsubscribe@subversion.tigris.org].
>
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1842460
>
> To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
>

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1842974

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

RE: Synchronising svn config files on Windows PCs

Posted by "Bolstridge, Andrew" <an...@intergraph.com>.
The easiest method is to add a copy statement to the user's login
script.

I think the lack of an 'universal config' is an issue for "enterprise
subversion", but this gets round it nicely.



> -----Original Message-----
> From: David Aldrich [mailto:david.aldrich@eu.nec.com]
> Sent: Tuesday, April 21, 2009 12:24 PM
> To: users@subversion.tigris.org
> Subject: Synchronising svn config files on Windows PCs
> 
> Hi
> 
> It is important for us that all our svn committers use the same
version
> of our svn config file. Most of our committers work in Windows. My
> understanding is that svn provides no facility to push a config file
to
> users' workstations, so I would like to find a Windows facility for
> doing this instead.
> 
> So my requirement is for a facility that allows a Windows System
> Administrator to push a config file to:
> 
> %APPDATA%\Subversion
> 
> on specified PC's.
> 
> Please can anyone suggest how to do this?
> 
> Best regards
> 
> David
> 
> ------------------------------------------------------
>
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessage
> Id=1842033
> 
> To unsubscribe from this discussion, e-mail: [users-
> unsubscribe@subversion.tigris.org].

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1842460

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].