[commit] r2343 - trunk/Tests/svngui

GMESRC Repository Notifications gme-commit at list.isis.vanderbilt.edu
Tue Sep 10 14:58:09 CDT 2013


Author: volgy
Date: Tue Sep 10 14:58:09 2013
New Revision: 2343

Log:
Release locks even if no change

Modified:
   trunk/Tests/svngui/SVNClient.cpp

Modified: trunk/Tests/svngui/SVNClient.cpp
==============================================================================
--- trunk/Tests/svngui/SVNClient.cpp	Tue Sep 10 14:57:21 2013	(r2342)
+++ trunk/Tests/svngui/SVNClient.cpp	Tue Sep 10 14:58:09 2013	(r2343)
@@ -459,7 +459,16 @@
 	apr_pool_t* scratch_pool = svn_pool_create(client->pool);
 	apr_array_header_t* targets = apr_array_make(client->pool, 1, sizeof(target));
 	APR_ARRAY_PUSH(targets, const char*) = target;
+	
 	SVNTHROW(svn_client_commit6(targets, svn_depth_immediates, FALSE, FALSE, FALSE, FALSE, FALSE, NULL, NULL, NULL, NULL, client->ctx, scratch_pool));
+
+	// commit does not release the lock if the file was not changed (empty commit)
+	updateStatus();
+	if (owned) {
+		SVNTHROW(svn_client_unlock(targets, FALSE, client->ctx, scratch_pool));
+		updateStatus();
+	}
+
 	svn_pool_clear(scratch_pool);
 }
 


More information about the gme-commit mailing list