Login | Register
My pages Projects Community openCollabNet

Discussions > commits > svn commit: r3949 - branches/GSoC2008/gimenete/org.tigris.subversion.subclipse.graph/src/org/tigris/subversion/subclipse/graph/editors/RevisionGraphEditor.java

subclipse
Discussion topic

Back to topic list

svn commit: r3949 - branches/GSoC2008/gimenete/org.tigris.subversion.subclipse.graph/src/org/tigris/subversion/subclipse/graph/editors/RevisionGraphEditor.java

Author gimenete
Full name Alberto Gimeno
Date 2008-08-04 04:02:47 PDT
Message Author: gimenete
Date: 2008-08-04 04:02:47-0700
New Revision: 3949

Modified:
   branches/GSoC2008/gi​menete/org.tigris.su​bversion.subclipse.g​raph/src/org/tigris/​subversion/subclipse​/graph/editors/Revis​ionGraphEditor.java

Log:
Another bug fixed in the cache.

Modified: branches/GSoC2008/gi​menete/org.tigris.su​bversion.subclipse.g​raph/src/org/tigris/​subversion/subclipse​/graph/editors/Revis​ionGraphEditor.java
Url: http://subclipse.tig​ris.org/source/brows​e/subclipse/branches​/GSoC2008/gimenete/o​rg.tigris.subversion​.subclipse.graph/src​/org/tigris/subversi​on/subclipse/graph/e​ditors/RevisionGraph​Editor.java?view=dif​f&rev=3949&p​1=branches/GSoC2008/​gimenete/org.tigris.​subversion.subclipse​.graph/src/org/tigri​s/subversion/subclip​se/graph/editors/Rev​isionGraphEditor.jav​a&p2=branches/GS​oC2008/gimenete/org.​tigris.subversion.su​bclipse.graph/src/or​g/tigris/subversion/​subclipse/graph/edit​ors/RevisionGraphEdi​tor.java&r1=3948​&r2=3949
====================​====================​====================​==================
--- branches/GSoC2008/gi​menete/org.tigris.su​bversion.subclipse.g​raph/src/org/tigris/​subversion/subclipse​/graph/editors/Revis​ionGraphEditor.java (original)
+++ branches/GSoC2008/gi​menete/org.tigris.su​bversion.subclipse.g​raph/src/org/tigris/​subversion/subclipse​/graph/editors/Revis​ionGraphEditor.java 2008-08-04 04:02:47-0700
@@ -232,7 +232,10 @@
                 new WorkMonitorListener(monitor, unitWork));
         
         monitor.setTaskName(​"Calculating graph");
- unitWork = TASK_STEPS / (int)(revision - root.getRevision());
+ if(revision == root.getRevision())
+ unitWork = TASK_STEPS;
+ else
+ unitWork = TASK_STEPS / (int)(revision - root.getRevision());
         if(unitWork < 1) unitWork = 1;
         final Graph graph = cache.createGraph(
                 root.getPath(),

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

Messages

Show all messages in topic

svn commit: r3949 - branches/GSoC2008/gimenete/org.tigris.subversion.subclipse.graph/src/org/tigris/subversion/subclipse/graph/editors/RevisionGraphEditor.java gimenete Alberto Gimeno 2008-08-04 04:02:47 PDT
Messages per page: