Update of /cvsroot/cvsshell/cvsshell/src
In directory usw-pr-cvs1:/tmp/cvs-serv17143/src
Modified Files:
cvs_cmds.py cvs_shell.py
Log Message:
* Directories in listing are now marked
* listing is made dirty after adding a directory
Index: cvs_cmds.py
===================================================================
RCS file: /cvsroot/cvsshell/cvsshell/src/cvs_cmds.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** cvs_cmds.py 11 Mar 2002 12:02:13 -0000 1.2
--- cvs_cmds.py 14 Mar 2002 18:45:46 -0000 1.3
***************
*** 158,161 ****
--- 158,162 ----
for x in l:
e,name = x
+ if os.path.isdir(name): app.setDirtyListing(1)
filenames += name + ' '
entries.append(e)
Index: cvs_shell.py
===================================================================
RCS file: /cvsroot/cvsshell/cvsshell/src/cvs_shell.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** cvs_shell.py 11 Mar 2002 12:02:13 -0000 1.14
--- cvs_shell.py 14 Mar 2002 18:45:46 -0000 1.15
***************
*** 364,368 ****
l = len(e.status)
if l > max: max = l
! formatStr = " %%%dd %%-%ds %%s\n" % (len(`len(self.entries)`), max)
oldDir = None
id = 0
--- 364,368 ----
l = len(e.status)
if l > max: max = l
! formatStr = " %%%dd %%-%ds %%s%%s\n" % (len(`len(self.entries)`), max)
oldDir = None
id = 0
***************
*** 372,376 ****
if oldDir != newDir:
lines.append("%s:\n" % newDir)
! lines.append(formatStr % (id, e.status, e.name))
id += 1
oldDir = newDir
--- 372,380 ----
if oldDir != newDir:
lines.append("%s:\n" % newDir)
! if os.path.isdir(os.path.join(self.rootDir, e.dir, e.name)):
! isDir = "<dir>"
! else:
! isDir = ''
! lines.append(formatStr % (id, e.status, isDir, e.name))
id += 1
oldDir = newDir
|