gump-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject cvs commit: gump/python/gump/model depend.py
Date Wed, 10 Mar 2004 14:20:07 GMT
ajack       2004/03/10 06:20:06

  Modified:    python/gump/model depend.py
  Log:
  I'd over optimized full dependency determination, hence full == direct depends,
  hence these numbers are too low:
  
  http://lsd.student.utwente.nl/gump/project_todos.html
  
  Revision  Changes    Path
  1.15      +8 -6      gump/python/gump/model/depend.py
  
  Index: depend.py
  ===================================================================
  RCS file: /home/cvs/gump/python/gump/model/depend.py,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- depend.py	9 Mar 2004 21:19:09 -0000	1.14
  +++ depend.py	10 Mar 2004 14:20:04 -0000	1.15
  @@ -295,7 +295,6 @@
           self.fullDependencies=DependSet()
           for depend in self.directDependencies.getDepends():
               if not self.fullDependencies.containsDepend(depend):
  -                self.fullDependencies.addDepend(depend)
                   
                   dependProject=depend.getProject()
                   if not self.fullDependencies.containsProject(dependProject):
  @@ -303,6 +302,8 @@
                       for subdepend in dependProject.getFullDependencies():
                           if not self.fullDependencies.containsDepend(subdepend):
                               self.fullDependencies.addDepend(depend)
  +                                            
  +                self.fullDependencies.addDepend(depend)
               
           return self.fullDependencies.getDepends()
                   
  @@ -331,8 +332,7 @@
           self.fullDependees=DependSet(1)
           
           for depend in self.directDependees.getDepends():
  -            if not self.fullDependees.containsDepend(depend):    
  -                self.fullDependees.addDepend(depend)
  +            if not self.fullDependees.containsDepend(depend):  
                   
                   dependProject=depend.getOwnerProject()
                   if not self.fullDependees.containsProject(dependProject):
  @@ -340,6 +340,8 @@
                       for subdepend in dependProject.getFullDependees():
                           if not self.fullDependees.containsDepend(subdepend):    
                               self.fullDependees.addDepend(depend)
  +                                              
  +                self.fullDependees.addDepend(depend)
               
           return self.fullDependees.getDepends()
           
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


Mime
View raw message