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

Re: how do I keep a file but remove from being updated in SVN?

From: Andy Levy <andy.levy_at_gmail.com>
Date: Tue, 29 Dec 2009 08:45:30 -0500

On Mon, Dec 28, 2009 at 21:28, roguecartel <timfong888_at_gmail.com> wrote:
> Right now, the file is under version control, how do I remove it from
> being versioned?

1) Rename the current files to php.ini.template and
configuration.inc.php.template. Commit.
2) Copy (NOT SVN Copy) php.ini.template and
configuration.inc.php.template to php.ini and configuration.inc.php
3) Add php.ini and configuration.inc.php to svn:ignore. Commit.

But this will only work if you stop top-posting on the mailing list.

> On Dec 28, 3:29 am, Andy Levy <andy.l..._at_gmail.com> wrote:
>> On Mon, Dec 28, 2009 at 02:03, Nathan Tuggy
>>
>> <bugzi..._at_nathan.tuggycomputer.com> wrote:
>> > My limited understanding of SVN best practices (see other threads here
>> > for a better discussion) suggests that a good approach is to generate
>> > these files from templates. The templates are then versioned, but the
>> > generated files are not. Ideally, the files would be auto-generated with
>> > a small (versioned) script, but if that's not practical, hand-generation
>> > will also work reasonably well.
>>
>> > I thought the FAQ might have an entry on this, but apparently not.
>>
>> It's in the Subversion FAQ, not the TSVN FAQ.http://subversion.tigris.org/faq.html#ignore-commit
>>
>>
>>
>> > On 2009-12-27 20:03, roguecartel wrote:
>> >> I have a few files that differ from local and from staging and
>> >> production.  For example:
>>
>> >> php.ini
>> >> configuration.inc.php
>>
>> >> I need a good version to be checked in SVN.  However, my local version
>> >> needs to remain different, but I no longer want to see a red 'warning'
>> >> that it is out of sync.
>>
>> >> How can I:
>>
>> >> * keep these files in SVN (they are obviously already there)
>> >> * remove the need to have them updated (I cannot use delete and
>> >> ignore, because I still need these files)
>>
>> >> Thanks.
>>
>> > --
>> > Nathan Tuggy
>> > nat..._at_tuggycomputer.com
>>
>> > ------------------------------------------------------
>> >http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMess...
>>
>> > To unsubscribe from this discussion, e-mail: [users-unsubscr..._at_tortoisesvn.tigris.org].
>>
>> ------------------------------------------------------http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMess...
>>
>> To unsubscribe from this discussion, e-mail: [users-unsubscr..._at_tortoisesvn.tigris.org].
>
> ------------------------------------------------------
> http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2433529
>
> To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
>

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2433601

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2009-12-29 14:45:37 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.