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

[PATCH]log and blame command should log the revision range in operational log

From: Kamesh Jayachandran <kamesh_at_collab.net>
Date: 2007-02-20 10:15:22 CET

Hi All,
Find the attached patch and log.

with regards
Kamesh Jayachandran

[[[
'log' and 'blame' commands need to log the revision range.

* subversion/mod_dav_svn/reports/log.c
  (dav_svn__log_report): Log revision range.
* subversion/mod_dav_svn/reports/file-revs.c
  (dav_svn__file_revs_report): Log revision range for 'blame' command.

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

Index: subversion/mod_dav_svn/reports/log.c
===================================================================
--- subversion/mod_dav_svn/reports/log.c (revision 23436)
+++ subversion/mod_dav_svn/reports/log.c (working copy)
@@ -320,15 +320,20 @@
   if (paths->nelts == 0)
     action = "log";
   else if (paths->nelts == 1)
- action = apr_psprintf(resource->pool, "log-all '%s'",
+ action = apr_psprintf(resource->pool, "log-all '%s' r%" SVN_REVNUM_T_FMT \
+ ":%" SVN_REVNUM_T_FMT,
                           svn_path_uri_encode(APR_ARRAY_IDX
                                               (paths, 0, const char *),
- resource->pool));
+ resource->pool),
+ start, end);
   else
- action = apr_psprintf(resource->pool, "log-partial '%s'",
+ action = apr_psprintf(resource->pool, "log-partial '%s' " \
+ "r%" SVN_REVNUM_T_FMT \
+ ":%" SVN_REVNUM_T_FMT,
                           svn_path_uri_encode(APR_ARRAY_IDX
                                               (paths, 0, const char *),
- resource->pool));
+ resource->pool),
+ start, end);
 
   apr_table_set(resource->info->r->subprocess_env, "SVN-ACTION", action);
 
Index: subversion/mod_dav_svn/reports/file-revs.c
===================================================================
--- subversion/mod_dav_svn/reports/file-revs.c (revision 23436)
+++ subversion/mod_dav_svn/reports/file-revs.c (working copy)
@@ -311,8 +311,10 @@
 
   /* We've detected a 'high level' svn action to log. */
   apr_table_set(resource->info->r->subprocess_env, "SVN-ACTION",
- apr_psprintf(resource->pool, "blame '%s'",
- svn_path_uri_encode(path, resource->pool)));
+ apr_psprintf(resource->pool, "blame '%s' r%" SVN_REVNUM_T_FMT \
+ ":%" SVN_REVNUM_T_FMT,
+ svn_path_uri_encode(path, resource->pool),
+ start, end));
 
   /* Flush the contents of the brigade (returning an error only if we
      don't already have one). */

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Feb 20 10:14:57 2007

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.