[Cvsshell-devel] CVS: cvsshell/src cvs_shell.py,1.39,1.40
Status: Beta
Brought to you by:
stefanheimann
From: Stefan H. <ste...@us...> - 2003-04-19 18:08:22
|
Update of /cvsroot/cvsshell/cvsshell/src In directory sc8-pr-cvs1:/tmp/cvs-serv13540/src Modified Files: cvs_shell.py Log Message: The listing is no longer marked dirty when some arbitrary shell command contains ids from the listing Index: cvs_shell.py =================================================================== RCS file: /cvsroot/cvsshell/cvsshell/src/cvs_shell.py,v retrieving revision 1.39 retrieving revision 1.40 diff -C2 -d -r1.39 -r1.40 *** cvs_shell.py 16 Apr 2003 22:06:58 -0000 1.39 --- cvs_shell.py 19 Apr 2003 18:08:19 -0000 1.40 *************** *** 216,219 **** --- 216,220 ---- def execShellCmd(self, name, args): if name == 'cvs' and self.cvsChangeCmdRE.search(args): + print "May change" # command may change the status self.setDirtyListing(1) *************** *** 224,228 **** l = self.applyOnEntryList(args, doIt) args = string.join(l) - self.setDirtyListing(1) except utils.ParseError: pass except AppError, msg: pass --- 225,228 ---- *************** *** 600,605 **** def getEntry(self, filename): for e in self.entries: ! if os.path.samefile(filename, os.path.join(e.dir, e.name)): ! return e return None --- 600,607 ---- def getEntry(self, filename): for e in self.entries: ! try: ! if os.path.samefile(filename, os.path.join(e.dir, e.name)): ! return e ! except OSError: pass return None |