chiark
/
gitweb
/
~mdw
/
stgit
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
b83e37e
)
Give the global "crt_series" variable a default value
author
Chuck Lever
<cel@netapp.com>
Wed, 26 Oct 2005 18:51:32 +0000
(14:51 -0400)
committer
Catalin 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
patch
|
blob
|
blame
|
history
diff --git
a/stgit/commands/common.py
b/stgit/commands/common.py
index 575aae7c8868ebfd3cb1d241ad8457d2d1bb94a8..9747981342a00f31e2fc2c0f2105b4e8a2e4e739 100644
(file)
--- a/
stgit/commands/common.py
+++ b/
stgit/commands/common.py
@@
-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):