chiark / gitweb /
Give the global "crt_series" variable a default value
authorChuck Lever <cel@netapp.com>
Wed, 26 Oct 2005 18:51:32 +0000 (14:51 -0400)
committerCatalin Marinas <catalin.marinas@gmail.com>
Thu, 27 Oct 2005 19:47:12 +0000 (20:47 +0100)
The Python interpreter was searching every scope to find crt_series.  By
providing a default value, this reduces the amount of searching the
interpreter does looking for crt_series.

I've noticed that most commands are faster with this change.

Signed-off-by: Chuck Lever <cel@netapp.com>
stgit/commands/common.py

index 575aae7c8868ebfd3cb1d241ad8457d2d1bb94a8..9747981342a00f31e2fc2c0f2105b4e8a2e4e739 100644 (file)
@@ -24,6 +24,8 @@ from optparse import OptionParser, make_option
 from stgit.utils import *
 from stgit import stack, git
 
+crt_series = None
+
 
 # Command exception class
 class CmdException(Exception):