You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2011/04/19 12:29:31 UTC
svn commit: r1095005 - /subversion/trunk/subversion/svn/log-cmd.c
Author: stsp
Date: Tue Apr 19 10:29:30 2011
New Revision: 1095005
URL: http://svn.apache.org/viewvc?rev=1095005&view=rev
Log:
* subversion/svn/log-cmd.c
(log_entry_receiver): Check for cancellation while printing changed paths.
For large commits (e.g. initial imports) listing all paths can take a
lot of time and the user might want to cancel.
Modified:
subversion/trunk/subversion/svn/log-cmd.c
Modified: subversion/trunk/subversion/svn/log-cmd.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/svn/log-cmd.c?rev=1095005&r1=1095004&r2=1095005&view=diff
==============================================================================
--- subversion/trunk/subversion/svn/log-cmd.c (original)
+++ subversion/trunk/subversion/svn/log-cmd.c Tue Apr 19 10:29:30 2011
@@ -228,6 +228,9 @@ log_entry_receiver(void *baton,
= apr_hash_get(log_entry->changed_paths2, item->key, item->klen);
const char *copy_data = "";
+ if (lb->ctx->cancel_func)
+ SVN_ERR(lb->ctx->cancel_func(lb->ctx->cancel_baton));
+
if (log_item->copyfrom_path
&& SVN_IS_VALID_REVNUM(log_item->copyfrom_rev))
{