Login | Register
My pages Projects Community openCollabNet

Discussions > commits > svn commit: r4096 - trunk/subclipse/org.tigris.subversion.subclipse.graph/src/org/tigris/subversion/subclipse/graph/editors/GraphEditPart.java

subclipse
Discussion topic

Back to topic list

svn commit: r4096 - trunk/subclipse/org.tigris.subversion.subclipse.graph/src/org/tigris/subversion/subclipse/graph/editors/GraphEditPart.java

Author selsemore
Full name Stephen Elsemore
Date 2008-11-10 13:31:46 PST
Message Author: selsemore
Date: 2008-11-10 13:31:45-0800
New Revision: 4096

Modified:
   trunk/subclipse/org.​tigris.subversion.su​bclipse.graph/src/or​g/tigris/subversion/​subclipse/graph/edit​ors/GraphEditPart.ja​va

Log:
Revision graph - Always show branch where item came into existence, even if branch is deleted.

Modified: trunk/subclipse/org.​tigris.subversion.su​bclipse.graph/src/or​g/tigris/subversion/​subclipse/graph/edit​ors/GraphEditPart.ja​va
Url: http://subclipse.tig​ris.org/source/brows​e/subclipse/trunk/su​bclipse/org.tigris.s​ubversion.subclipse.​graph/src/org/tigris​/subversion/subclips​e/graph/editors/Grap​hEditPart.java?view=​diff&rev=4096​&p1=trunk/subclipse​/org.tigris.subversi​on.subclipse.graph/s​rc/org/tigris/subver​sion/subclipse/graph​/editors/GraphEditPa​rt.java&p2=trunk​/subclipse/org.tigri​s.subversion.subclip​se.graph/src/org/tig​ris/subversion/subcl​ipse/graph/editors/G​raphEditPart.java​&r1=4095&r2=409​6
====================​====================​====================​==================
--- trunk/subclipse/org.​tigris.subversion.su​bclipse.graph/src/or​g/tigris/subversion/​subclipse/graph/edit​ors/GraphEditPart.ja​va (original)
+++ trunk/subclipse/org.​tigris.subversion.su​bclipse.graph/src/or​g/tigris/subversion/​subclipse/graph/edit​ors/GraphEditPart.ja​va 2008-11-10 13:31:45-0800
@@ -95,9 +95,13 @@
                 Node lastNode = (Node)branch.getNode​s().get(branch.getNo​des().size() - 1);
                 if (lastNode.getAction() == 'D' && Cache.isEqualsOrPare​nt(lastNode.getPath(​), branch.getPath())) {
                     if (showDeleted == RevisionGraphEditor.​SHOW_DELETED_NO || (showDeleted == RevisionGraphEditor.​SHOW_DELETED_MODIFIE​D && !isModified(branch))) {
- // branch has been deleted and item was not modified in that location
- i--;
- continue;
+ // branch has been deleted and item was not modified in that location.
+ // do not show this branch, unless it is the location where the item came
+ // into existence.
+ if (!graph.getRootPath(​).equals(branch.getP​ath())) {
+ i--;
+ continue;
+ }
                     }
                 }
             }

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

Messages

Show all messages in topic

svn commit: r4096 - trunk/subclipse/org.tigris.subversion.subclipse.graph/src/org/tigris/subversion/subclipse/graph/editors/GraphEditPart.java selsemore Stephen Elsemore 2008-11-10 13:31:46 PST
Messages per page: