Changeset 3177
- Timestamp:
- 02/05/08 08:23:36 (10 months ago)
- Files:
-
- gitplugin/0.11/gitplugin/PyGIT.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
gitplugin/0.11/gitplugin/PyGIT.py
r3174 r3177 13 13 # GNU General Public License for more details. 14 14 15 import os, re 15 import os, re, sys, time 16 16 #from traceback import print_stack 17 18 _profile_git_calls = False 17 19 18 20 class GitError(Exception): … … 29 31 def _git_call_f(self,cmd): 30 32 #print "GIT: "+cmd 33 if _profile_git_calls: 34 t = time.time() 35 pass 36 31 37 (input, output, error) = os.popen3('GIT_DIR="%s" %s' % (self.repo,cmd)) 38 39 if _profile_git_calls: 40 t = time.time() - t 41 print >>sys.stderr, "GIT: took %6.2fs for '%s'" % (t, cmd) 42 pass 43 32 44 return output 33 45
