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

[PATCH] operational logging for 'svn cat'

From: Kamesh Jayachandran <kamesh_at_collab.net>
Date: 2006-12-20 16:31:30 CET

Hi All,
Find the attached patch and log.

With regards
Kamesh Jayachandran

[[[

'svn cat' command should log "cat '/path/to/file' rRev"

* subversion/mod_dav_svn/repos.c
  (deliver):
   Operational Logging for 'svn cat' command.

Patch by: kameshj
Suggested by: Honey George <george@collab.net>

]]]

Index: subversion/mod_dav_svn/repos.c
===================================================================
--- subversion/mod_dav_svn/repos.c (revision 22766)
+++ subversion/mod_dav_svn/repos.c (working copy)
@@ -2877,6 +2877,7 @@
     {
       svn_stream_t *stream;
       char *block;
+ char *action;
 
       serr = svn_fs_file_contents(&stream,
                                   resource->info->root.root,
@@ -2929,6 +2930,13 @@
                              "Could not write EOS to filter.");
       }
 
+ action = apr_psprintf(resource->pool,
+ "cat '%s' r%" SVN_REVNUM_T_FMT,
+ svn_path_uri_encode(resource->info->repos_path,
+ resource->pool),
+ resource->info->root.rev);
+
+ apr_table_set(output->r->subprocess_env, "SVN-ACTION", action);
       return NULL;
     }
 }

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Dec 20 16:32:16 2006

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.