[Zope-CVS] CVS: CVSROOT - postcommit_actions:1.142
Fred L. Drake, Jr.
Mon, 25 Nov 2002 16:03:15 -0500
Update of /cvs-repository/CVSROOT
In directory cvs.zope.org:/tmp/cvs-serv16267
State needed in a finally clause should be initialized before the try.
=== CVSROOT/postcommit_actions 1.141 => 1.142 ===
--- CVSROOT/postcommit_actions:1.141 Tue Oct 15 14:56:18 2002
+++ CVSROOT/postcommit_actions Mon Nov 25 16:03:14 2002
@@ -322,11 +322,11 @@
def create_diff(repo, file, old, new):
""" Create a diff comparing old and new versions """
if old == 'NONE': # A new file was added
+ # We have to change to a neutral dir, or cvs will complain about
+ # doing checkouts into the repository - even though the checkout
+ # is to stdout, sigh.
+ origdir = os.getcwd()
- # We have to change to a neutral dir, or cvs will complain about
- # doing checkouts into the repository - even though the checkout
- # is to stdout, sigh.
- origdir = os.getcwd()
revclause = ''