Anthill OS patch: svn-checkout-happens-twice
Jim Hague <[email protected]> Mon, 29 Oct 2007 11:44:30 +0000
| Newsgroups | gmane.comp.java.anthill.devel |
|---|---|
| Message-ID | <[email protected]> |
# HG changeset patch
# User Jim Hague <jim.hague-70XMh/ZFPwTe9wHmmfpqLFaTQe2KTcn/@public.gmane.org>
# Date 1193654689 0
# Node ID d92cb5077023c8f20f6a6be66da40432f2b29ec6
# Parent 87e3f05138b53d785e2b885430b64d64d4fdd204
The Subversion getWorkingProjectCopy() calls its counterpart in the
superclass. Oops! This will cause the getWorkingProjectCopy .pgl to
run, and a checkout done. Back in the subclass, the same thing happens
again. So remove the superclass call.
diff -r 87e3f05138b5 -r d92cb5077023
source/main/java/com/urbancode/anthill/adapter/SubversionRepositoryAdapter.java
---
a/source/main/java/com/urbancode/anthill/adapter/SubversionRepositoryAdapter.java
Mon Oct 29 10:44:49 2007 +0000
+++
b/source/main/java/com/urbancode/anthill/adapter/SubversionRepositoryAdapter.java
Mon Oct 29 10:44:49 2007 +0000
@@ -132,8 +132,6 @@ public class SubversionRepositoryAdapter
*/
public void getWorkingProjectCopy(BuildDefinition def)
throws RepositoryException {
- super.getWorkingProjectCopy(def);
-
log.debug("Getting working copy of project: " +
project.getProjectName());
Process p = null;
StreamPumper errorPumper = null;
--
Jim Hague - [email protected] Never trust a computer you can't lift.