Update of /cvsroot/cvsshell/cvsshell/src
In directory usw-pr-cvs1:/tmp/cvs-serv18166
Modified Files:
cvs_shell.py
Log Message:
execShellCmd now tries to find out if a command will modify the status
of the current cvs listing
Index: cvs_shell.py
===================================================================
RCS file: /cvsroot/cvsshell/cvsshell/src/cvs_shell.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** cvs_shell.py 7 Mar 2002 11:47:50 -0000 1.2
--- cvs_shell.py 7 Mar 2002 12:21:56 -0000 1.3
***************
*** 37,41 ****
self.readCommandFile()
self.readConfigFile()
!
def setCvsRoot(self, root):
self.cvsRoot = root
--- 37,41 ----
self.readCommandFile()
self.readConfigFile()
!
def setCvsRoot(self, root):
self.cvsRoot = root
***************
*** 74,79 ****
InteractiveApp.run(self)
! def execShellCmd(self, name, opts, context):
! self.shell('%s %s' % (name, opts))
--- 74,83 ----
InteractiveApp.run(self)
! _cvsChangeCmdRE = re.compile(r'\s+(ad(d)?|new|ci|com(mit)?|delete|remove)\s+')
! def execShellCmd(name, opts, context):
! app = context['APP']
! if name == 'cvs' and _cvsChangeCmdRE.search(opts): # command may change the status
! context['basic_cmds.dirty_listing'] = 1
! app.shell('%s %s' % (name, opts))
|