From ad3193a0e587073dee0edef46bdf24f6c6e09779 Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Sat, 18 Apr 2009 09:54:51 -0700 Subject: Fix `repo --trace` to show ref and config loads The value of the varible TRACE was copied during the import, which happens before the --trace option can be processed. So instead we now use a function to determine if the value is set, as the function can be safely copied early during import. Signed-off-by: Shawn O. Pearce --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main.py') diff --git a/main.py b/main.py index df181835..740fb3a6 100755 --- a/main.py +++ b/main.py @@ -27,7 +27,7 @@ import os import re import sys -import git_command +from trace import SetTrace from command import InteractiveCommand from command import MirrorSafeCommand from command import PagedCommand @@ -79,7 +79,7 @@ class _Repo(object): gopts, gargs = global_options.parse_args(glob) if gopts.trace: - git_command.TRACE = True + SetTrace() if gopts.show_version: if name == 'help': name = 'version' -- cgit v1.2.3-54-g00ecf