[gatewiki-commits] SF.net SVN: gatewiki:[1785] trunk/cow/src/java/gate/versioning/svnkit/ Sandbox.java

View: New views
1 Messages — Rating Filter:   Alert me  

[gatewiki-commits] SF.net SVN: gatewiki:[1785] trunk/cow/src/java/gate/versioning/svnkit/ Sandbox.java

by ian_roberts :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Revision: 1785
          http://gatewiki.svn.sourceforge.net/gatewiki/?rev=1785&view=rev
Author:   ian_roberts
Date:     2009-11-02 12:50:09 +0000 (Mon, 02 Nov 2009)

Log Message:
-----------
Added a non-recursive version of Sandbox.addEntry.

Modified Paths:
--------------
    trunk/cow/src/java/gate/versioning/svnkit/Sandbox.java

Modified: trunk/cow/src/java/gate/versioning/svnkit/Sandbox.java
===================================================================
--- trunk/cow/src/java/gate/versioning/svnkit/Sandbox.java 2009-10-30 14:38:29 UTC (rev 1784)
+++ trunk/cow/src/java/gate/versioning/svnkit/Sandbox.java 2009-11-02 12:50:09 UTC (rev 1785)
@@ -508,9 +508,24 @@
    * schedules all its inner dir entries for addition as well.
    */
   synchronized public void addEntry(File wcPath) throws SVNException {
+    addEntry(wcPath, true);
+  } // addEntry
+
+  /**
+   * Puts directories and files under version control scheduling them for
+   * addition to a repository. They will be added in a next commit. Like 'svn
+   * add PATH' command.
+   *
+   * @param wcPath the file or directory to add.  Its parent must already be
+   *         known to subversion (though not necessarily committed).
+   * @param recurse if true, and wcPath names a directory, recursively add all
+   *         the directories contents.  If false, just add the directory itself
+   *         but not its contents.  Has no effect if wcPath names a normal
+   *         file.
+   */
+  synchronized public void addEntry(File wcPath, boolean recurse) throws SVNException {
     clientManager.getWCClient().doAdd(wcPath, false, false, false,
-      SVNDepth.fromRecurse(true), false, false);
-
+      SVNDepth.fromRecurse(recurse), false, false);
   } // addEntry
 
   /**


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
gatewiki-commits mailing list
gatewiki-commits@...
https://lists.sourceforge.net/lists/listinfo/gatewiki-commits