? 829040-add-semaphore-support-to-repository-locks.patch
? 945130-versioncontrol_repositories-make-update-method-updated-and-locked-columns.patch
? 945130-versioncontrol_repositories-make-update-method-updated-and-locked-columns.patch.1
? includes/views/versioncontrol.views_default.inc
? includes/views/handlers/versioncontrol_handler_field_repository_actions.inc
Index: includes/VersioncontrolRepository.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/versioncontrol/includes/VersioncontrolRepository.php,v
retrieving revision 1.10
diff -u -p -r1.10 VersioncontrolRepository.php
--- includes/VersioncontrolRepository.php	27 Oct 2010 15:48:43 -0000	1.10
+++ includes/VersioncontrolRepository.php	2 Nov 2010 04:24:46 -0000
@@ -505,6 +505,27 @@ abstract class VersioncontrolRepository 
     return NULL;
   }
 
+  /**
+   * Acquire a lock on data for this repository.
+   *
+   * @param   float
+   *   The number of seconds this lock should persist before being cleared.
+   *
+   * @return  boolean
+   *   Whether the lock was successfully acquired or not.
+   */
+  public function acquireLock($time = 60) {
+    return lock_acquire('versioncontrol_' . $this->name . '_lock', $time);
+  }
+
+  /**
+   * Release a previously acquired lock on this repository.
+   */
+  public function releaseLock() {
+    lock_release('versioncontrol_' . $this->name . '_lock', $time);
+  }
+
+
   //ArrayAccess interface implementation FIXME soooooooo deprecated
   public function offsetExists($offset) {
     return isset($this->$offset);
@@ -746,4 +767,5 @@ class VersioncontrolRepositoryUrlHandler
   public function getTrackerUrl($issue_id) {
     return strtr($this->urls['tracker'], array('%d' => $issue_id));
   }
+
 }
