Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > subclipse commit: rev 69 - in trunk/svnant/src: main/org/tigris/subversion/svnant testcases/org/tigris/subversion/svnant

subclipse
Discussion topic

Back to topic list

subclipse commit: rev 69 - in trunk/svnant/src: main/org/tigris/subversion/svnant testcases/org/tigris/subversion/svnant

Author cchab
Full name chabanois cédric
Date 2003-07-21 14:07:49 PDT
Message Author: cchab
Date: Mon Jul 21 16:07:48 2003
New Revision: 69

Modified:
   trunk/svnant/src/mai​n/org/tigris/subvers​ion/svnant/Add.java
   trunk/svnant/src/mai​n/org/tigris/subvers​ion/svnant/Commit.ja​va
   trunk/svnant/src/tes​tcases/org/tigris/su​bversion/svnant/SvnT​est.java
Log:
status functions changed

Modified: trunk/svnant/src/mai​n/org/tigris/subvers​ion/svnant/Add.java
====================​====================​====================​==================
--- trunk/svnant/src/mai​n/org/tigris/subvers​ion/svnant/Add.java (original)
+++ trunk/svnant/src/mai​n/org/tigris/subvers​ion/svnant/Add.java Mon Jul 21 16:07:48 2003
@@ -218,12 +218,12 @@
         
         try {
             // don't add the file if already added ...
- if (svnClient.getStatus​(file).isManaged())
+ if (svnClient.getSingle​Status(file).isManag​ed())
                 return;
             
             // determine directories to add to repository
             while ((currentDir != null)
- && (!svnClient.getStatu​s(currentDir).isMana​ged())
+ && (!svnClient.getSingl​eStatus(currentDir).​isManaged())
                 && (!currentDir.equals(baseDir))) {
                 dirs.push(currentDir);
                 currentDir = currentDir.getParentFile();

Modified: trunk/svnant/src/mai​n/org/tigris/subvers​ion/svnant/Commit.ja​va
====================​====================​====================​==================
--- trunk/svnant/src/mai​n/org/tigris/subvers​ion/svnant/Commit.ja​va (original)
+++ trunk/svnant/src/mai​n/org/tigris/subvers​ion/svnant/Commit.ja​va Mon Jul 21 16:07:48 2003
@@ -221,7 +221,7 @@
 
         try {
             // file has not been "added", we cannot commit it
- if (!svnClient.getStatu​s(file).isManaged())​
+ if (!svnClient.getSingl​eStatus(file).isMana​ged())
                 return;
         } catch (ClientException e1) {
             throw new BuildException("Cannot get status of file :"+file.toString());
@@ -236,13 +236,13 @@
         try {
             dirs = new Stack();
             currentDir = file.getParentFile();
- com.qintsoft.jsvn.jni.Status status = svnClient.getStatus(​currentDir);
+ com.qintsoft.jsvn.jni.Status status = svnClient.getSingleS​tatus(currentDir);
             while ((currentDir != null)
                 && (status.getTextStatus() == com.qintsoft.jsvn.jn​i.Status.Kind.added)​
                 && (!currentDir.equals(baseDir))) {
                 dirs.push(currentDir);
                 currentDir = currentDir.getParentFile();
- status = svnClient.getStatus(​currentDir);
+ status = svnClient.getSingleS​tatus(currentDir);
             }
         } catch (ClientException e) {
             throw new BuildException("Cannot get status of directory :"+currentDir.toString());

Modified: trunk/svnant/src/tes​tcases/org/tigris/su​bversion/svnant/SvnT​est.java
====================​====================​====================​==================
--- trunk/svnant/src/tes​tcases/org/tigris/su​bversion/svnant/SvnT​est.java (original)
+++ trunk/svnant/src/tes​tcases/org/tigris/su​bversion/svnant/SvnT​est.java Mon Jul 21 16:07:48 2003
@@ -44,7 +44,7 @@
     public void testCheckout() {
         executeTarget("testCheckout");
         try {
- assertEquals(1,svnCl​ient.getStatus(new File("test/coHEAD/RE​ADME.txt")).getLastC​hangedRevision().get​Number());
+ assertEquals(1,svnCl​ient.getSingleStatus​(new File("test/coHEAD/RE​ADME.txt")).getLastC​hangedRevision().get​Number());
         } catch (ClientException e) {
             fail("an exception occured");
         }
@@ -74,7 +74,7 @@
     public void testAddCommit() {
         executeTarget("testAddCommit");
         try {
- assertTrue(svnClient​.getStatus(new File("test/my_repos/​toAdd/file0.add")).g​etLastChangedRevisio​n().getNumber() > 0);
+ assertTrue(svnClient​.getSingleStatus(new​ File("test/my_repos/​toAdd/file0.add")).g​etLastChangedRevisio​n().getNumber() > 0);
         } catch (ClientException e) {
             fail("an exception occured");
         }
@@ -83,7 +83,7 @@
     public void testCopy() {
         executeTarget("testCopy");
         try {
- assertTrue(svnClient​.getStatus(new File("test/my_repos/​copyTest/copy1")).ge​tLastChangedRevision​().getNumber() > 0);
+ assertTrue(svnClient​.getSingleStatus(new​ File("test/my_repos/​copyTest/copy1")).ge​tLastChangedRevision​().getNumber() > 0);
         } catch (ClientException e) {
             fail("an exception occured");
         }
@@ -106,7 +106,7 @@
     public void testMkdir() {
         executeTarget("testMkdir");
         try {
- assertTrue(svnClient​.getStatus(new File("test/my_repos/​testMkdir2")).getLas​tChangedRevision().g​etNumber() > 0);
+ assertTrue(svnClient​.getSingleStatus(new​ File("test/my_repos/​testMkdir2")).getLas​tChangedRevision().g​etNumber() > 0);
         } catch (ClientException e) {
             fail("an exception occured");
         }
@@ -115,7 +115,7 @@
     public void testMove() {
         executeTarget("testMove");
         try {
- assertTrue(svnClient​.getStatus(new File("test/my_repos/​moveTest/dir1Renamed​")).getLastChangedRe​vision().getNumber()​ > 0);
+ assertTrue(svnClient​.getSingleStatus(new​ File("test/my_repos/​moveTest/dir1Renamed​")).getLastChangedRe​vision().getNumber()​ > 0);
         } catch (ClientException e) {
             fail("an exception occured");
         }

--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: cvs-unsubscribe@subc​lipse.tigris.org
For additional commands, e-mail: cvs-help at subclipse dot tigris dot org

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

subclipse commit: rev 69 - in trunk/svnant/src: main/org/tigris/subversion/svnant testcases/org/tigris/subversion/svnant cchab chabanois cédric 2003-07-21 14:07:49 PDT
Messages per page: