Login | Register
My pages Projects Community openCollabNet

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

svnutils
Discussion topic

Back to topic list

CVS update: /svnutils/trunk/, /svnutils/trunk/src/

Author sunny256
Full name Øyvind A. Holm
Date 2004-09-16 14:30:12 PDT
Message User: sunny256
Date: 04/09/16 14:30:12

Added:
 /svnutils/trunk/src/
  svnrevs

Modified:
 /svnutils/trunk/
  CONTENTS

Log:
 r58 | sunny256 | 2004-09-16 21:28:16 +0000 | 9 lines
 
 Added the "svnrevs" one-liner which lists revisions as a comma-separated
 list for use in log messages etc.
 
 * /trunk/src/svnrevs
   New file.
 
 * /trunk/CONTENTS
   Added svnrevs to the list.

File Changes:

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

File [changed]: CONTENTS
Url: http://svnutils.tigr​is.org/source/browse​/svnutils/trunk/CONT​ENTS?r1=1.3&r2=1​.4
Delta lines: +5 -1
-------------------
--- CONTENTS 12 Sep 2004 22:53:39 -0000 1.3
+++ CONTENTS 16 Sep 2004 21:30:12 -0000 1.4
@@ -24,6 +24,10 @@
     Subversion MIME type on all recognized file extensions. It takes one
     or more "mime.types" files as input, which are in the format of
     Apache's "mime.types" file.
+ - svnrevs
+ One-liner when called instead of the svn executable will display all
+ revisions as a comma-separated list. Can be used for log messages
+ etc.
   - windows/
     - SvnHotCopy.wsf
       Made to run as scheduled task from a directory you are free to
@@ -44,5 +48,5 @@
       backup program, but let’s first see if there are any other wheels
       around that’s already invented.
 
-$Id: CONTENTS 54 2004-09-11 19:01:26Z sunny256 $
+$Id: CONTENTS 58 2004-09-16 21:28:16Z sunny256 $
 vim: set tw=72 ts=2 sw=2 sts=2 et fo+=w fenc=UTF-8 :

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

File [added]: svnrevs
Url: http://svnutils.tigr​is.org/source/browse​/svnutils/trunk/src/​svnrevs?rev=1.1&​content-type=text/vn​d.viewcvs-markup
Added lines: 10
---------------
#!/bin/sh

#===================​====================​====================​============
# $Id: svnrevs 58 2004-09-16 21:28:16Z sunny256 $
# When calling this one-liner instead of svn, a comma-separated list of
# the revision numbers is generated. For use in log messages etc.
# Example: svnrevs -r512:HEAD http://blah.com/path​/to/repository
#===================​====================​====================​============

svn log --xml $* | perl -e '$a = join("", <>); $b = $c = ""; $a =~ s/<logentry\b.*?​\brevision="(\d+)"​.*?>/($b .= "${c}r$1", $c = ", ")/egs; print "$b\n";'




--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: cvs-unsubscribe@svnu​tils.tigris.org
For additional commands, e-mail: cvs-help at svnutils dot tigris dot org

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

Messages

Show all messages in topic

CVS update: /svnutils/trunk/, /svnutils/trunk/src/ sunny256 Øyvind A. Holm 2004-09-16 14:30:12 PDT
Messages per page: