You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Jean-Noël Rivasseau <el...@gmail.com> on 2007/03/14 13:30:43 UTC
Is it possible to have an unversionned item in a svn repository that is still checked out the first time?
Hello
My problem is this one: I would like to have a configuration file in my
subversion project, along with the code. Ideally, developpers checking out
my project via SVN would get a copy of a (default) configuration file. Thus
they would know that this file is there and needs to be modified
accordingly.
However I of course don't need the changes they make to the file to be
commited to the SVN repository... since these changes reflect their (local)
configuration...
Is there a way to have such a file in an SVN repository? svn status would
not show this file (as if it were ignored), but it would still be in the
subversion repository.
If someone can help me (I hope I've been clear enough), thanks in advance.
Jean-Noël Rivasseau
Re: Is it possible to have an unversionned item in a svn repository that is still checked out the first time?
Posted by Jean-Noël Rivasseau <el...@gmail.com>.
Yes, but apart from that solution, is there a better way? I'd prefer not
having to tell the users to rename the file - it would be nice if they could
directly edit the configuration file.
On 3/14/07, Les Mikesell <le...@gmail.com> wrote:
>
> Andrew Close wrote:
> >> On 3/14/07, Andrew Close < aclose@gmail.com> wrote:
> >> > On 3/14/07, Jean-Noël Rivasseau < elvanor2007@gmail.com> wrote:
> >> > > Hello
> >> > >
> >> > > My problem is this one: I would like to have a configuration file
> >> in my
> >> > > subversion project, along with the code. Ideally, developpers
> >> checking
> >> out
> >> > > my project via SVN would get a copy of a (default) configuration
> >> file.
> >> Thus
> >> > > they would know that this file is there and needs to be modified
> >> > > accordingly.
> >> > >
> >> > > However I of course don't need the changes they make to the file
> >> to be
> >> > > commited to the SVN repository... since these changes reflect their
> >> (local)
> >> > > configuration...
> >> > >
> >> > > Is there a way to have such a file in an SVN repository? svn status
> >> would
> >> > > not show this file (as if it were ignored), but it would still be
> >> in the
> >> > > subversion repository.
> >> > >
> >> > > If someone can help me (I hope I've been clear enough), thanks in
> >> advance.
> >> > >
> >> >
> >> > i know you can do what you have stated, but i don't have the solution
> >> > for you. :)
> >> > i'm pretty sure you can specify that certain files are not to be
> >> > updated to the repository or that they can't be re-committed. so a
> >> > developer would be able to check out the config file, modify it for
> >> > their own needs, and when they accidentally attempt to commit their
> >> > changes to the repository that particular file is ignored.
> >> > you could also write a pre-commit hook script that looks for that
> >> > particular file and disallows check-in...
> >> >
> >
> > On 3/14/07, Jean-Noël Rivasseau <el...@gmail.com> wrote:
> >> Ok thanks anyway (it's good to know it CAN be done), but now does
> someone
> >> have a simple solution? :)
> >>
> >> Jean-Noël
> >
> > Jean-Noel,
> >
> > when i replied to you i didn't reply to all.
> > hopefully someone else will have a 'solution' for you.
>
> The simple solution is to rename the example file so it can be under
> version control but won't be changed often, and provide instructions to
> copy the example to the expected file name before making local changes.
>
> --
> Les Mikesell
> lesmikesell@gmail.com
>
>
>
Re: Is it possible to have an unversionned item in a svn repository
that is still checked out the first time?
Posted by Les Mikesell <le...@gmail.com>.
Andrew Close wrote:
>> On 3/14/07, Andrew Close < aclose@gmail.com> wrote:
>> > On 3/14/07, Jean-Noël Rivasseau < elvanor2007@gmail.com> wrote:
>> > > Hello
>> > >
>> > > My problem is this one: I would like to have a configuration file
>> in my
>> > > subversion project, along with the code. Ideally, developpers
>> checking
>> out
>> > > my project via SVN would get a copy of a (default) configuration
>> file.
>> Thus
>> > > they would know that this file is there and needs to be modified
>> > > accordingly.
>> > >
>> > > However I of course don't need the changes they make to the file
>> to be
>> > > commited to the SVN repository... since these changes reflect their
>> (local)
>> > > configuration...
>> > >
>> > > Is there a way to have such a file in an SVN repository? svn status
>> would
>> > > not show this file (as if it were ignored), but it would still be
>> in the
>> > > subversion repository.
>> > >
>> > > If someone can help me (I hope I've been clear enough), thanks in
>> advance.
>> > >
>> >
>> > i know you can do what you have stated, but i don't have the solution
>> > for you. :)
>> > i'm pretty sure you can specify that certain files are not to be
>> > updated to the repository or that they can't be re-committed. so a
>> > developer would be able to check out the config file, modify it for
>> > their own needs, and when they accidentally attempt to commit their
>> > changes to the repository that particular file is ignored.
>> > you could also write a pre-commit hook script that looks for that
>> > particular file and disallows check-in...
>> >
>
> On 3/14/07, Jean-Noël Rivasseau <el...@gmail.com> wrote:
>> Ok thanks anyway (it's good to know it CAN be done), but now does someone
>> have a simple solution? :)
>>
>> Jean-Noël
>
> Jean-Noel,
>
> when i replied to you i didn't reply to all.
> hopefully someone else will have a 'solution' for you.
The simple solution is to rename the example file so it can be under
version control but won't be changed often, and provide instructions to
copy the example to the expected file name before making local changes.
--
Les Mikesell
lesmikesell@gmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Is it possible to have an unversionned item in a svn repository that is still checked out the first time?
Posted by Andrew Close <ac...@gmail.com>.
> On 3/14/07, Andrew Close < aclose@gmail.com> wrote:
> > On 3/14/07, Jean-Noël Rivasseau < elvanor2007@gmail.com> wrote:
> > > Hello
> > >
> > > My problem is this one: I would like to have a configuration file in my
> > > subversion project, along with the code. Ideally, developpers checking
> out
> > > my project via SVN would get a copy of a (default) configuration file.
> Thus
> > > they would know that this file is there and needs to be modified
> > > accordingly.
> > >
> > > However I of course don't need the changes they make to the file to be
> > > commited to the SVN repository... since these changes reflect their
> (local)
> > > configuration...
> > >
> > > Is there a way to have such a file in an SVN repository? svn status
> would
> > > not show this file (as if it were ignored), but it would still be in the
> > > subversion repository.
> > >
> > > If someone can help me (I hope I've been clear enough), thanks in
> advance.
> > >
> >
> > Hi Jean-Noël
> >
> > i know you can do what you have stated, but i don't have the solution
> > for you. :)
> > i'm pretty sure you can specify that certain files are not to be
> > updated to the repository or that they can't be re-committed. so a
> > developer would be able to check out the config file, modify it for
> > their own needs, and when they accidentally attempt to commit their
> > changes to the repository that particular file is ignored.
> > you could also write a pre-commit hook script that looks for that
> > particular file and disallows check-in...
> >
On 3/14/07, Jean-Noël Rivasseau <el...@gmail.com> wrote:
> Ok thanks anyway (it's good to know it CAN be done), but now does someone
> have a simple solution? :)
>
> Jean-Noël
Jean-Noel,
when i replied to you i didn't reply to all.
hopefully someone else will have a 'solution' for you.
;)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
RE: Is it possible to have an unversionned item in a svn repository that is still checked out the first time?
Posted by Méresse Christophe <ch...@nagra.com>.
________________________________
From: elvanor@gmail.com [mailto:elvanor@gmail.com] On Behalf Of Jean-Noël Rivasseau
Sent: mercredi, 14. mars 2007 14:31
To: users@subversion.tigris.org
Subject: Is it possible to have an unversionned item in a svn repository that is still checked out the first time?
Hello
My problem is this one: I would like to have a configuration file in my subversion project, along with the code. Ideally, developpers checking out my project via SVN would get a copy of a (default) configuration file. Thus they would know that this file is there and needs to be modified accordingly.
However I of course don't need the changes they make to the file to be commited to the SVN repository... since these changes reflect their (local) configuration...
Is there a way to have such a file in an SVN repository? svn status would not show this file (as if it were ignored), but it would still be in the subversion repository.
It's not possible to do that with Subversion but...
Usually, projects contain a file called something like myproject-default.conf and users/developers just have to copy it as myproject.conf and modify it.
Your project can either verify if a myproject.conf file is present and either complain, either use the myproject-default.conf.
Think simple :)
Regards
Christophe