[Digicool-CVS] CVS: CVSROOT - postcommit_actions:1.99

klm@cvs.baymountain.com klm@cvs.baymountain.com
Thu, 19 Jul 2001 10:15:45 -0400


Update of /cvs-repository/CVSROOT
In directory cvs.baymountain.com:/tmp/cvs-serv20471

Modified Files:
	postcommit_actions 
Log Message:
Adding some debugging info to the messages, so i can track down where
the path for diffing goes awry.

Also, added indication of old version number to banner above diff (so
both the old and new versions are there).



====== Updated CVSROOT/postcommit_actions to v 1.99 ======
     subject = "CVS: %s " % name
 
-    diff_msg = '\n'
+    diff_msg = ''
 
     if remote is not None and remote.has_key('leading_path'):
         l = remote['leading_path']
@@ -364,6 +364,8 @@
                 new_msg = ('--- Removed file %s from package %s --\n'
                            % (fn, name))
             else:
+                diff_msg = ('[debug - name:%s, repo:%s, fn:%s\n'
+                            % (name, repo, fn))
                 new_msg = create_diff(name, repo, fn, old, new)
 
             diff_msg = diff_msg + new_msg + '\n'
@@ -412,8 +414,8 @@
         file_handle = os.popen(diff_cmd)
         lines = file_handle.readlines()[6:]
         file_handle.close()
-        insert_str = ("====== Updated %s/%s to v %s ======\n"
-                      % (str(name), str(file), new))
+        insert_str = ("====== Updated %s/%s, %s => %s ======\n"
+                      % (str(name), str(file), old, new))
         lines.insert(0, insert_str) 
 
     return string.join(lines, '')