You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by John Maher <Jo...@rotair.com> on 2014/09/08 18:37:51 UTC

global ignores

Hello

I am trying to get subversion to ignore certain files and directories on a windows system.  I am using a windows 7 machine with a 1.7 subversion client.  My repository has about 40 projects in it and I want to ignore bin and obj directories along with *.sou and *.user files.  I seemed like it was working but it is acting strangely.  I just recently rebuilt my machine, but a project I added prior to the rebuild is only half correct, the folders are being ignored but not the files.  The files are stored on a network drive and I issued svn proplist -R and do not see any ignores in the list.  I saw somewhere that I can edit the config file in this folder  C:\Documents and Settings\[username]\Application Data\Subversion, but this directory is inaccessible.  I went to %Appdata% and found a config file there.  So I tried to edit it, however I can find no information on how to properly edit it.

I saw
# global-ignores = *.o *.lo *.la *.al .libs *.so *.so.[0-9]* *.a *.pyc *.pyo
I tried
# global-ignores = *.o *.lo *.la *.al .libs *.so *.so.[0-9]* *.a *.pyc *.pyo *.sou
And
# global-ignores = *.o *.lo *.la *.al .libs *.so *.so.[0-9]* *.a *.pyc *.pyo
global-ignores = *.sou

But everytime I issue a svn status I still see the files.  I do not know if status ignores the ignore list and it is just for committing or if I am editing the right file.  Nor do I know if a reboot is needed before the changes take effect, I tried that once but I can be here for hours with all the unknowns.   Anyone have any idea?

JM

RE: global ignores

Posted by John Maher <Jo...@rotair.com>.
Thanks Mark, that did it.

JM

From: Mark Phippard [mailto:markphip@gmail.com]
Sent: Monday, September 08, 2014 1:18 PM
To: John Maher; users@subversion.apache.org
Subject: Re: global ignores

Please keep users@ involved.

On Mon, Sep 8, 2014 at 1:07 PM, John Maher <Jo...@rotair.com>> wrote:
Thanks Mark.  Could you be a little more specific?  Like look at what and where.  I’ve been looking at all kinds of stuff and reading many, many posts but nothing is clear.

I do not have any specific suggestion, just that if you see a ? then that means the file should be ignorable if the settings are right.


For example, what is a comment in the config file.  Many places it talks about comments but nowhere does it explain what a comment is.  I see lines starting with # and lines starting with ###.  Are all of those comments or just the ###?  It is clear that the lines with ### are comments but is subversion reading the lines with # or are they comments also?

Any line that starts with # is a comment.

On Windows, open the Run dialog and enter %APPDATA%\Subversion and press ENTER.  Then edit the file named "config" with a text editor.  The default value for this option is:

[miscellany]
### Set global-ignores to a set of whitespace-delimited globs
### which Subversion will ignore in its 'status' output, and
### while importing or adding files and directories.
global-ignores = *.o *.lo *.la #*# .*.rej *.rej .*~ *~ .#* .DS_Store

Make sure your text editor does not change the filename or save it with a file extension added.  If you are using TortoiseSVN, I recall their Settings dialog also provides access to this.

--
Thanks

Mark Phippard
http://markphip.blogspot.com/

Re: global ignores

Posted by Mark Phippard <ma...@gmail.com>.
Please keep users@ involved.

On Mon, Sep 8, 2014 at 1:07 PM, John Maher <Jo...@rotair.com> wrote:

>  Thanks Mark.  Could you be a little more specific?  Like look at what
> and where.  I’ve been looking at all kinds of stuff and reading many, many
> posts but nothing is clear.
>

I do not have any specific suggestion, just that if you see a ? then that
means the file should be ignorable if the settings are right.


>
>
> For example, what is a comment in the config file.  Many places it talks
> about comments but nowhere does it explain what a comment is.  I see lines
> starting with # and lines starting with ###.  Are all of those comments or
> just the ###?  It is clear that the lines with ### are comments but is
> subversion reading the lines with # or are they comments also?
>

Any line that starts with # is a comment.

On Windows, open the Run dialog and enter %APPDATA%\Subversion and press
ENTER.  Then edit the file named "config" with a text editor.  The default
value for this option is:

[miscellany]
### Set global-ignores to a set of whitespace-delimited globs
### which Subversion will ignore in its 'status' output, and
### while importing or adding files and directories.
global-ignores = *.o *.lo *.la #*# .*.rej *.rej .*~ *~ .#* .DS_Store

Make sure your text editor does not change the filename or save it with a
file extension added.  If you are using TortoiseSVN, I recall their
Settings dialog also provides access to this.

-- 
Thanks

Mark Phippard
http://markphip.blogspot.com/

Re: global ignores

Posted by Mark Phippard <ma...@gmail.com>.
On Mon, Sep 8, 2014 at 12:47 PM, John Maher <Jo...@rotair.com> wrote:

>  Thanks for the reply Mark.  For the new project they became versioned,
> but not the projects prior to that.  They all show up with the status
> command with a ? in front except the two from the latest project.  Before I
> remove the two offending files (or delete, I do not know which is better) I
> would prefer to ensure they are properly ignored otherwise I will be going
> through this again.
>

Adding users@

A ? would indicate the files are in fact unversioned which means they could
be ignored.  So I guess I would look closer at your configuration to see
why they are not being ignored.


-- 
Thanks

Mark Phippard
http://markphip.blogspot.com/

Re: global ignores

Posted by Mark Phippard <ma...@gmail.com>.
On Mon, Sep 8, 2014 at 12:37 PM, John Maher <Jo...@rotair.com> wrote:

>  Hello
>
>
>
> I am trying to get subversion to ignore certain files and directories on a
> windows system.  I am using a windows 7 machine with a 1.7 subversion
> client.  My repository has about 40 projects in it and I want to ignore bin
> and obj directories along with *.sou and *.user files.  I seemed like it
> was working but it is acting strangely.  I just recently rebuilt my
> machine, but a project I added prior to the rebuild is only half correct,
> the folders are being ignored but not the files.  The files are stored on a
> network drive and I issued svn proplist –R and do not see any ignores in
> the list.  I saw somewhere that I can edit the config file in this folder
> C:\Documents and Settings\[username]\Application Data\Subversion, but this
> directory is inaccessible.  I went to %Appdata% and found a config file
> there.  So I tried to edit it, however I can find no information on how to
> properly edit it.
>
>
>
> I saw
>
> # global-ignores = *.o *.lo *.la *.al .libs *.so *.so.[0-9]* *.a *.pyc
> *.pyo
>
> I tried
>
> # global-ignores = *.o *.lo *.la *.al .libs *.so *.so.[0-9]* *.a *.pyc
> *.pyo *.sou
>
> And
>
> # global-ignores = *.o *.lo *.la *.al .libs *.so *.so.[0-9]* *.a *.pyc
> *.pyo
>
> global-ignores = *.sou
>
>
>
> But everytime I issue a svn status I still see the files.  I do not know
> if status ignores the ignore list and it is just for committing or if I am
> editing the right file.  Nor do I know if a reboot is needed before the
> changes take effect, I tried that once but I can be here for hours with all
> the unknowns.   Anyone have any idea?
>
>
Are the files showing as unversioned or modfied?

Ignores only apply to unversioned files. If the file is already part of
your repository and has local modifications, there is no option in SVN to
ignore those files.

-- 
Thanks

Mark Phippard
http://markphip.blogspot.com/