You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Andy Markham <an...@gmail.com> on 2005/10/10 22:21:36 UTC

Problem excluding files using "global-ignores" setting in config file

I have been using Subversion for a few weeks now and have been ignoring
files that show up in the 'svn status' command that I know shouldn't be
under version control. However, it's time to fix that.

When I uncomment the "[miscellany]" and "global-ignores = ..." lines in the
config file and then add "*.tpl.php" to the end, it still shows me files
that match that pattern.

Basically, I'm working on an osCommerce site with Smarty templates and I'm
hoping to exclude all of the compiled templates that end up in the
"templates_c" directory. When compiled, the template files (ending in .tpl)
in the "templates" are given an extra .php extension (e.g. filename.tpl.php)
and put in the "templates_c" directory.

My global-ignores line looks like this:

global-ignores = *.o *.lo *.la #*# .*.rej *.rej .*~ *~ .#* .DS_Store
*.tpl.php

However, I see the following when I run 'svn status':

M gp/includes/modules/payment/merchantpartners_cc.php
M gp/templates_c/%%123^%%123631881^product_info.tpl.php
M gp/templates_c/%%214^%%2140183840^popup_dimensions.tpl.php
M gp/templates_c/%%117^%%1172603085^index.tpl.php
M gp/templates/checkout_success.tpl

Any help would be appreciated.

Regards,
Andy

Re: Problem excluding files using "global-ignores" setting in config file

Posted by Joshua Varner <jl...@gmail.com>.
On 10/11/05, Russell E. Owen <ro...@cesmail.net> wrote:
> In article <20...@bmlv.gv.at>,
>  "Ph. Marek" <ph...@bmlv.gv.at> wrote:
>
> > On Tuesday 11 October 2005 00:21, Andy Markham wrote:
> > > However, I see the following when I run 'svn status':
> > >
> > > M gp/includes/modules/payment/merchantpartners_cc.php
> > > M gp/templates_c/%%123^%%123631881^product_info.tpl.php
> > > M gp/templates_c/%%214^%%2140183840^popup_dimensions.tpl.php
> > > M gp/templates_c/%%117^%%1172603085^index.tpl.php
> > > M gp/templates/checkout_success.tpl
> > >
> > > Any help would be appreciated.
> > The "M" at the beginning shows that they are already versioned.
> > The ignore-patterns work only for _new_ files, not such subversion already
> > handles.
> >
> > You can "svn rm" the files and recompile; then they should not be shown
> > anymore.
>
> But if you "svn rm" files, they are deleted from disk. Is there some
> command that removes them from version control without deleting them?
> "svn revert" may work if the files have never been checked in. But once
> they are checked in...?
>
Currently no. You have to copy them to a temp name, svn remove, commit
copy them back to the original name.

Or svn remove them, the svn cat them back if they hadn't changed.

Josh

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: Problem excluding files using "global-ignores" setting in config file

Posted by "Russell E. Owen" <ro...@cesmail.net>.
In article <20...@bmlv.gv.at>,
 "Ph. Marek" <ph...@bmlv.gv.at> wrote:

> On Tuesday 11 October 2005 00:21, Andy Markham wrote:
> > However, I see the following when I run 'svn status':
> >
> > M gp/includes/modules/payment/merchantpartners_cc.php
> > M gp/templates_c/%%123^%%123631881^product_info.tpl.php
> > M gp/templates_c/%%214^%%2140183840^popup_dimensions.tpl.php
> > M gp/templates_c/%%117^%%1172603085^index.tpl.php
> > M gp/templates/checkout_success.tpl
> >
> > Any help would be appreciated.
> The "M" at the beginning shows that they are already versioned.
> The ignore-patterns work only for _new_ files, not such subversion already 
> handles.
> 
> You can "svn rm" the files and recompile; then they should not be shown 
> anymore.

But if you "svn rm" files, they are deleted from disk. Is there some 
command that removes them from version control without deleting them? 
"svn revert" may work if the files have never been checked in. But once 
they are checked in...?

-- Russell


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Problem excluding files using "global-ignores" setting in config file

Posted by "Ph. Marek" <ph...@bmlv.gv.at>.
On Tuesday 11 October 2005 00:21, Andy Markham wrote:
> However, I see the following when I run 'svn status':
>
> M gp/includes/modules/payment/merchantpartners_cc.php
> M gp/templates_c/%%123^%%123631881^product_info.tpl.php
> M gp/templates_c/%%214^%%2140183840^popup_dimensions.tpl.php
> M gp/templates_c/%%117^%%1172603085^index.tpl.php
> M gp/templates/checkout_success.tpl
>
> Any help would be appreciated.
The "M" at the beginning shows that they are already versioned.
The ignore-patterns work only for _new_ files, not such subversion already 
handles.

You can "svn rm" the files and recompile; then they should not be shown 
anymore.


Regards,

Phil

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org