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

[PATCH] Allow more than one pattern per line in svn:ignore

From: Edmund Horner <edmund_at_chrysophylax.cjb.net>
Date: 2003-12-10 12:08:12 CET

This is a very little patch to allow svn:ignore to hold more than one
pattern per line. It copies the pattern splitting arguments from those
used for global-ignores.

As this is virtually my first toe-in-the-water, I'm don't expect to be
perfect. For one thing I haven't run the tests (I'm not sure how to get
them working on win32), but I have tested it informally.

Edmund Horner.

Log:

Allow more than one svn:ignore pattern per line.

* subversion/libsvn_wc/status.c
     (collect_ignore_patterns): Split the svn:ignore property string
         on any of "n\r\t\v " (as is used with global-ignores) to
         allow more allow than one pattern per line.

* doc/book/book/ch06.xml
     (svn-ch-6-sect-2.3.3): Explain that patterns can be separated by
          newlines or by spaces (instead of requiring one per line).

Index: subversion/libsvn_wc/status.c
===================================================================
--- subversion/libsvn_wc/status.c (revision 7946)
+++ subversion/libsvn_wc/status.c (working copy)
@@ -483,7 +483,7 @@
                             svn_wc_adm_access_path (adm_access), adm_access,
                             pool));
   if (value != NULL)
- svn_cstring_split_append (patterns, value->data, "\n\r", FALSE, pool);
+ svn_cstring_split_append (patterns, value->data, "\n\r\t\v ", FALSE, pool);
 
   return SVN_NO_ERROR;
 }
Index: doc/book/book/ch06.xml
===================================================================
--- doc/book/book/ch06.xml (revision 7946)
+++ doc/book/book/ch06.xml (working copy)
@@ -1112,7 +1112,8 @@
 
         <para>For this purpose, the <literal>svn:ignore</literal>
           property is the solution. Its value is a multi-line
- collection of file patterns, one pattern per line. The
+ collection of file patterns, with patterns separated
+ by newlines or by spaces. The
           property is set on the directory in which your wish the
           patterns to be applied.
           <footnote>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Dec 10 12:09:18 2003

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

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