commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

r5228 - trunk/gnue-common/utils


From: reinhard
Subject: r5228 - trunk/gnue-common/utils
Date: Fri, 5 Mar 2004 08:39:58 -0600 (CST)

Author: reinhard
Date: 2004-03-05 08:39:58 -0600 (Fri, 05 Mar 2004)
New Revision: 5228

Modified:
   trunk/gnue-common/utils/svn2cl
Log:
Beautified output.


Modified: trunk/gnue-common/utils/svn2cl
===================================================================
--- trunk/gnue-common/utils/svn2cl      2004-03-05 14:39:01 UTC (rev 5227)
+++ trunk/gnue-common/utils/svn2cl      2004-03-05 14:39:58 UTC (rev 5228)
@@ -19,6 +19,7 @@
   def __init__(self, input, output):
 
     self.out = output
+    self.package = os.path.basename (os.getcwd ())
 
     p = xml.parsers.expat.ParserCreate()
 
@@ -44,13 +45,16 @@
     elif name == "author":
       self.author = self.text
     elif name == "path":
-      self.paths.append(string.split(self.text,'/',3)[-1])
+      p = string.split (self.text, '/', 3)
+      if len (p) == 4:
+        if p [2] == self.package:
+          self.paths.append (p [3])
     elif name == "msg":
       self.out.write("%s  Rev %s  %s\n\n" % (
              self.date,
              string.ljust(self.revision,5),
              self.author))
-      self.out.write("\t* %s" % linewrap("%s: %s" % 
(string.join(self.paths,','), self.text)))
+      self.out.write("\t* %s" % linewrap("%s: %s" % (string.join(self.paths,', 
'), self.text)))
     elif name == "date":
       self.date = self.text[:10] + ' ' + self.text[11:19]
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]