Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: /svnutils/trunk/src/

svnutils
Discussion topic

Back to topic list

CVS update: /svnutils/trunk/src/

Author sunny256
Full name Øyvind A. Holm
Date 2005-04-26 15:41:55 PDT
Message User: sunny256
Date: 2005/04/26 15:41:55

Modified:
   svnutils/trunk/src/svndiff

Log:
 r124 | sunny256 | 2005-04-26 22:38:21 +0000 (Tue, 26 Apr 2005) | 7 lines
 
 svndiff understands the <svnclient> element in the rc file.
 
 * /trunk/src/svndiff
   If <svnclient>blu​rfl</svnclient​> is specified in the rc file, the
   "blurfl" program (whatever that may be) is used instead of the ususal
   svn client.

File Changes:

Directory: /svnutils/trunk/src/
===============================

File [changed]: svndiff
Url: http://svnutils.tigr​is.org/source/browse​/svnutils/trunk/src/​svndiff?r1=1.21&​r2=1.22
Delta lines: +18 -3
--------------------
--- svndiff 26 Apr 2005 22:41:27 -0000 1.21
+++ svndiff 26 Apr 2005 22:41:53 -0000 1.22
@@ -1,7 +1,7 @@
 #!/usr/bin/perl -w
 
 #===================​====================​====================​============
-# $Id: svndiff 123 2005-04-26 22:34:56Z sunny256 $
+# $Id: svndiff 124 2005-04-26 22:38:21Z sunny256 $
 # Uses a specified diff program for viewing differences in a Subversion
 # versioned directory tree.
 #
@@ -273,6 +273,16 @@
                     D("read_rcfile(): \$Cmd = \"$Cmd\"");
                     "";
                 }sex;
+
+ $el_defaults =~
+ s{
+ <svnclient\b(.*?​)>(.*?)</svncl​ient>
+ }
+ {
+ $CMD_SVN = xml_to_txt($2);
+ D("read_rcfile(): \$CMD_SVN = \"$CMD_SVN\"");
+ "";
+ }sex;
                 print_leftover($el_defaults, "defaults");
             }sex;
             print_leftover($el_svndiffrc, "svndiffrc");
@@ -356,7 +366,7 @@
 
 =head1 REVISION
 
-$Id: svndiff 123 2005-04-26 22:34:56Z sunny256 $
+$Id: svndiff 124 2005-04-26 22:38:21Z sunny256 $
 
 =head1 SYNOPSIS
 
@@ -416,6 +426,7 @@
   <svndiffrc>
     <defaults>
       <diffprog>vimd​iff</diffprog>​
+ <svnclient>svn​</svnclient>
     </defaults>
   </svndiffrc>
 
@@ -424,6 +435,10 @@
 The string inside the C<diffprog> elements can be set to whatever your
 diff program is called as, the default string is "vimdiff".
 
+You can also define an alternative svn(1) client to use inside the
+C<svnclient> elements.
+The default value here is of course "svn".
+
 =back
 
 =head1 ENVIRONMENT VARIABLES
@@ -471,4 +486,4 @@
 # }}}
 
 # vim: set fenc=UTF-8 ft=perl fdm=marker ts=4 sw=4 sts=4 et fo+=w :
-# End of file $Id: svndiff 123 2005-04-26 22:34:56Z sunny256 $
+# End of file $Id: svndiff 124 2005-04-26 22:38:21Z sunny256 $

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

CVS update: /svnutils/trunk/src/ sunny256 Øyvind A. Holm 2005-04-26 15:41:55 PDT
Messages per page: