Get out of only Modified and Added files in svn log


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Get out of only Modified and Added files in svn log
# 1  
Old 08-22-2013
Get out of only Modified and Added files in svn log

How to get only modified and added files with revision,author and comments from svn log verbose

Code:
------------------------------------------------------------------------
r7351 | user01 | 2013-07-02 17:53:28 -0400 (Tue, 02 Jul 2013) | 2 lines
Changed paths:
   D /trunk/demo/proj1/.project

jira-125723
 Removing unwanted files
------------------------------------------------------------------------
------------------------------------------------------------------------
r7352 | user02 | 2013-07-02 17:54:24 -0400 (Tue, 02 Jul 2013) | 2 lines
Changed paths:
   D /trunk/demo/proj2/320-test.ert

jira-125723
 Removing unwanted files
------------------------------------------------------------------------
------------------------------------------------------------------------
r7504 | user04 | 2013-07-08 14:26:36 -0400 (Mon, 08 Jul 2013) | 4 lines
Changed paths:
   M /trunk/demo/maven/Sum.jsp
   M /trunk/demo/Code/Results.jsp

jira-121639

WP-IQISU- lot of changes to fix issue
------------------------------------------------------------------------
------------------------------------------------------------------------
r7523 | user08 | 2013-07-08 16:17:52 -0400 (Mon, 08 Jul 2013) | 1 line
Changed paths:
   A /trunk/demo/ant/properties

jira-2185

My code and output:
Code:
cat test | awk '/^r[0-9]* \|/ { REVISION=$1; } /  [AM]/ { print REVISION": "$0; }'
r7504:    M /trunk/demo/maven/Sum.jsp
r7504:    M /trunk/demo/Code/Results.jsp
r7523:    A /trunk/demo/ant/properties

But i need author and comments information too.
# 2  
Old 08-28-2013
how about this, it is not exact for your request, but get mostly.

Code:
perl -l40pe 's/^-+/\n/' svn.log|awk -F \| '{$3=""}1'

 r7351   user01    2 lines Changed paths:    D /trunk/demo/proj1/.project  jira-125723  Removing unwanted files

 r7352   user02    2 lines Changed paths:    D /trunk/demo/proj2/320-test.ert  jira-125723  Removing unwanted files

 r7504   user04    4 lines Changed paths:    M /trunk/demo/maven/Sum.jsp    M /trunk/demo/Code/Results.jsp  jira-121639  WP-IQISU- lot of changes to fix issue

 r7523   user08    1 line Changed paths:    A /trunk/demo/ant/properties  jira-2185

This User Gave Thanks to rdcwayx For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Making post down hook script for svn regarding sending emails after an file is committed in svn

Hi Folks , I am asking this question but i apologise please if this is not the correct forum , I have to develop a shell script that i want to place in at hooks/post-commit , that is basically i have to develop a post hook script and the main functionality of that script would be lets say if... (0 Replies)
Discussion started by: sunsun06060606
0 Replies

2. Shell Programming and Scripting

Saving svn log in a separate directory

Hi Folks, I have a directory at /usr/local/aa and there is other directory where I have checkout the code through svn checkout command ( /opt/app/fgh) now I can apply svn log command here as shown below $ cd /opt/app/fgh svn checkout <url> svn log shows me the log on console . please... (3 Replies)
Discussion started by: punpun66
3 Replies

3. Shell Programming and Scripting

UNIX command/script svn log to get just the files information

Just need the directory name and files changes information in svn log This is my svn log verbose: svn log -v //test/svn/Demo/branches/HelloWorld/Batch --limit 2 ------------------------------------------------------------------------ r133 | testuser1 | 2013-04-02 18:22:28 -0400 (Tue, 02 Apr... (22 Replies)
Discussion started by: iaav
22 Replies

4. UNIX for Dummies Questions & Answers

How to archive old files from the recently added 10 files?

Hi there, I am very new to unix and having trouble with a fairly simple statement: cd /user ls -t -c1 | sed -ne '11,$p' | mv xargs archive/ What I want the code to do is sort all files in a directory by timestamp, select all of the files after the 10th file, and then move those files... (3 Replies)
Discussion started by: DSIReady
3 Replies

5. UNIX for Advanced & Expert Users

Copy files from SVN Server

Hi, We have a SVN server on which the developers upload their source code which is in the form of a .ear file or a folder. We login to the SVN server using our credentials and then go to the directory in which the application is placed and then click on the download link to download the... (6 Replies)
Discussion started by: mohtashims
6 Replies

6. Shell Programming and Scripting

New sequence nos to be added in new files

Hi All, Please help me in below request. Got multiple files in a dir ex: /os . from each file need to filter based upon first field (field only has 1,2,3 or 4) and then put it in different files based on the Field 1. But need to generate a sequence while inserting and the sequence number needs... (1 Reply)
Discussion started by: rdakshn
1 Replies

7. Solaris

How to integrate SVN client to SVN server repository.

Hi, I am new to SVN configuration on Solaris 10.I have installed SVN client version 1.7. bash-3.00# ./svn --version svn, version 1.7.4 (r1295709) compiled Mar 2 2012, 12:59:36 Here my requirement is how to integrate svn client to One of the SVN server repository. My repository... (0 Replies)
Discussion started by: muraliinfy04
0 Replies

8. Shell Programming and Scripting

how to delete the older files other than the recently added 5 files

Number of files will get created in a folder automatically daily.. so i hav to delete the older files other than the recently added 5 files.. Could u help me through this..?? (5 Replies)
Discussion started by: shaal89
5 Replies

9. Shell Programming and Scripting

Listing files added in a particular month

how can I ouput all files in working directory added in a particular month using shellscript (3 Replies)
Discussion started by: mohit_iitk
3 Replies
Login or Register to Ask a Question