Update of /cvsroot/cvsshell/cvsshell/src
In directory usw-pr-cvs1:/tmp/cvs-serv11230
Modified Files:
basic_cmds.py
Log Message:
* Help items are now sorted before printed
* reflected renaming supdate into refresh
Index: basic_cmds.py
===================================================================
RCS file: /cvsroot/cvsshell/cvsshell/src/basic_cmds.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** basic_cmds.py 7 Mar 2002 10:44:18 -0000 1.3
--- basic_cmds.py 7 Mar 2002 11:49:16 -0000 1.4
***************
*** 7,11 ****
##############################
! noListingErrMsg = "No listing found. \nYou must run `update', `supdate' " \
"or `status' before using this command."
CvsError = 'CvsError'
--- 7,11 ----
##############################
! noListingErrMsg = "No listing found. \nYou must run `update', `refresh' " \
"or `status' before using this command."
CvsError = 'CvsError'
***************
*** 39,43 ****
if len(x) > max_len: max_len = m
printed = []
! for x in app.cmdToDoc.items():
name = app.cmdToCmds[x[0]]
if name in printed: continue
--- 39,46 ----
if len(x) > max_len: max_len = m
printed = []
! items = app.cmdToDoc.items()
! items.sort(lambda x,y: cmp(x[0], y[0]))
! print items
! for x in items:
name = app.cmdToCmds[x[0]]
if name in printed: continue
***************
*** 45,49 ****
doc = first_sentence.match(x[1]).group()
space = (max_len-len(name)) * ' '
! app.printMsg("%s%s: %s" % (name,space,doc))
app.printMsg("All commands not listed here are passed " \
"to the underlying shell.")
--- 48,52 ----
doc = first_sentence.match(x[1]).group()
space = (max_len-len(name)) * ' '
! app.printMsg("%s%s %s" % (name,space,doc))
app.printMsg("All commands not listed here are passed " \
"to the underlying shell.")
|