User:Davisb/IssueRadar: Difference between revisions
From KitwarePublic
Jump to navigationJump to search
(One intermediate revision by the same user not shown) | |||
Line 3: | Line 3: | ||
==Scripts== | ==Scripts== | ||
mantisLogin = raw_input('Mantis user name:') | import commands | ||
mantisPassword = raw_input('Mantis password:') | |||
mantisLogin = raw_input('Mantis user name:') | |||
print 'Fetching from hub...' | mantisPassword = raw_input('Mantis password:') | ||
c = 'git fetch hub' | |||
(rv, o) = commands.getstatusoutput(c) | print 'Fetching from hub...' | ||
c = 'git fetch hub' | |||
print 'Creating outstanding commit list...' | (rv, o) = commands.getstatusoutput(c) | ||
c = 'python ShowOutstandingDevCommits.py -l%s -p%s -v hub/stable hub/dev > MantisOutstandingCommitsList.txt' % (mantisLogin, mantisPassword) | |||
(rv, o) = commands.getstatusoutput(c) | print 'Creating outstanding commit list...' | ||
c = 'python ShowOutstandingDevCommits.py -l%s -p%s -v hub/stable hub/dev > MantisOutstandingCommitsList.txt' % (mantisLogin, mantisPassword) | |||
print 'Creating graph...' | (rv, o) = commands.getstatusoutput(c) | ||
c = 'python ShowOutstandingDevCommits.py -l%s -p%s -g hub/stable hub/dev | tred | unflatten -c 10 | dot -Tpdf -o MantisDependencyGraph.pdf' % (mantisLogin, mantisPassword) | |||
(rv, o) = commands.getstatusoutput(c) | print 'Creating graph...' | ||
c = 'python ShowOutstandingDevCommits.py -l%s -p%s -g hub/stable hub/dev | tred | unflatten -c 10 | dot -Tpdf -o MantisDependencyGraph.pdf' % (mantisLogin, mantisPassword) | |||
print 'Opening pdf viewer and list...' | (rv, o) = commands.getstatusoutput(c) | ||
c = 'evince MantisDependencyGraph.pdf' | |||
(rv, o) = commands.getstatusoutput(c) | print 'Opening pdf viewer and list...' | ||
c = 'evince MantisDependencyGraph.pdf' | |||
print 'Opening outstanding commit list...' | (rv, o) = commands.getstatusoutput(c) | ||
c = 'gedit MantisOutstandingCommitsList.txt' | |||
(rv, o) = commands.getstatusoutput(c) | print 'Opening outstanding commit list...' | ||
c = 'gedit MantisOutstandingCommitsList.txt' | |||
(rv, o) = commands.getstatusoutput(c) |
Latest revision as of 12:19, 20 June 2011
Introduction
Scripts
import commands mantisLogin = raw_input('Mantis user name:') mantisPassword = raw_input('Mantis password:') print 'Fetching from hub...' c = 'git fetch hub' (rv, o) = commands.getstatusoutput(c) print 'Creating outstanding commit list...' c = 'python ShowOutstandingDevCommits.py -l%s -p%s -v hub/stable hub/dev > MantisOutstandingCommitsList.txt' % (mantisLogin, mantisPassword) (rv, o) = commands.getstatusoutput(c) print 'Creating graph...' c = 'python ShowOutstandingDevCommits.py -l%s -p%s -g hub/stable hub/dev | tred | unflatten -c 10 | dot -Tpdf -o MantisDependencyGraph.pdf' % (mantisLogin, mantisPassword) (rv, o) = commands.getstatusoutput(c) print 'Opening pdf viewer and list...' c = 'evince MantisDependencyGraph.pdf' (rv, o) = commands.getstatusoutput(c) print 'Opening outstanding commit list...' c = 'gedit MantisOutstandingCommitsList.txt' (rv, o) = commands.getstatusoutput(c)