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-12-29 08:33:16 PST
Message User: sunny256
Date: 2005/12/29 08:33:16

Modified:
   svnutils/trunk/src/svedit

Log:
 r164 | sunny256 | 2005-12-22 15:10:38 +0000 (Thu, 22 Dec 2005) | 6 lines
 
  r19869@carmbb: sunny | 2005-12-18 22:36:20 +0100
  * /trunk/src/svedit
    Added the "-k" option for use with svk instead of svn. Extended the
    help text. Using "$@" instead of $* when calling svn or svk.

File Changes:

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

File [changed]: svedit
Url: http://svnutils.tigr​is.org/source/browse​/svnutils/trunk/src/​svedit?r1=1.3&r2​=1.4
Delta lines: +25 -3
--------------------
--- svedit 12 Sep 2004 23:04:35 -0000 1.3
+++ svedit 29 Dec 2005 16:33:13 -0000 1.4
@@ -1,16 +1,38 @@
 #!/bin/sh
 
 #===================​====================​====================​============
-# $Id: svedit 56 2004-09-12 11:06:56Z sunny256 $
+# $Id: svedit 164 2005-12-22 15:10:38Z sunny256 $
 # Simple shortcut for editing Subversion log messages.
 #===================​====================​====================​============
 
 if [ "$1" = "" ]; then
- echo "Syntax: svedit revnumber [additional svn commands]"
+ cat <<END
+
+Syntax: svedit [-k] revnumber [additional svn/svk commands]
+
+Options:
+
+-k
+ Use svk instead of svn.
+
+END
   exit 1;
 fi
+
+if [ "$1" = "-k" ]; then
+ use_svk=1
+ shift
+else
+ use_svk=0
+fi
+
 revnum=$1
 shift
-svn pe svn:log -r$revnum --revprop $*
+
+if [ "$use_svk" = "1" ]; then
+ svk pe svn:log -r$revnum --revprop "$@"
+else
+ svn pe svn:log -r$revnum --revprop "$@"
+fi
 
 # vim: set ts=2 sw=2 sts=2 expandtab :

« 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-12-29 08:33:16 PST
Messages per page: