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

RE: Strange behavior

From: John Maher <JohnM_at_rotair.com>
Date: Tue, 13 Aug 2013 13:24:28 +0000

An excellent alternative. I will keep this in mind.

Thanks Andrew
JM

-----Original Message-----
From: Andrew Reedick [mailto:Andrew.Reedick_at_cbeyond.net]
Sent: Monday, August 12, 2013 3:52 PM
To: John Maher; users_at_subversion.apache.org
Subject: RE: Strange behavior

> -----Original Message-----
> From: John Maher [mailto:JohnM_at_rotair.com]
> Sent: Monday, August 12, 2013 3:27 PM
> To: Bob Archer; Edwin Castro; users_at_subversion.apache.org
> Subject: RE: Strange behavior
>
> Thanks Bob, that may be exactly what I am looking for. Something that
> would affect all the files without having to issue over 200 commands
> or build a dummy directory just for importing. Although that second
> suggestion provided by Andrew is definitely better than the first.
>
> I couldn't find where it discusses the global config in the book, if
> it does at all. And even if it does I doubt it would help because it
> won't tell me where to find the file. Unless there is a command to
> edit it. I tried a search and someone says there is a site-wide
> config (what I need) and a user config but not where they are. I am
> using Windows XP and an having a difficult time finding this file.
>
> I can't even find the name of it. If someone can provide that I could
> at least search for it and hope it has some clue inside as how to
> alter it.
>

Plan B might be to use svn_load_dirs.pl: http://svn.apache.org/repos/asf/subversion/trunk/contrib/client-side/svn_load_dirs/

It has a "glob_ignores" option, or will try to read your global-ignores from your local svn config file.

From the script:
===============
# If no glob_ignores specified, try to deduce from config file, # or use the default below.
my $ignores_str =
    '*.o *.lo *.la #*# .*.rej *.rej .*~ *~ .#* .DS_Store';

if ( defined $opt_glob_ignores)
  {
    $ignores_str = $opt_glob_ignores;
  }
elsif ( -f "$ENV{HOME}/.subversion/config" )
  {
    open my $conf, "$ENV{HOME}/.subversion/config";
    while (<$conf>)
      {
        if ( /^global-ignores\s*=\s*(.*?)\s*$/ )
          {
            $ignores_str = $1;
            last;
          }
      }
  }
Received on 2013-08-13 15:25:55 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.