[Pkg-bazaar-commits] ./bzr/unstable r352: - Show aliases in command help

Martin Pool mbp at sourcefrog.net
Fri Apr 10 07:43:45 UTC 2009


------------------------------------------------------------
revno: 352
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Thu 2005-05-05 13:02:38 +1000
message:
  - Show aliases in command help
modified:
  bzrlib/help.py
  testbzr
-------------- next part --------------
=== modified file 'bzrlib/help.py'
--- a/bzrlib/help.py	2005-05-05 02:59:39 +0000
+++ b/bzrlib/help.py	2005-05-05 03:02:38 +0000
@@ -101,6 +101,10 @@
         print aname,
     print 
     print short
+
+    if cmdclass.aliases:
+        print 'aliases: ' + ', '.join(cmdclass.aliases)
+    
     if rest:
         print rest
 

=== modified file 'testbzr'
--- a/testbzr	2005-05-05 02:55:45 +0000
+++ b/testbzr	2005-05-05 03:02:38 +0000
@@ -169,8 +169,10 @@
     runcmd("bzr help st")
     runcmd("bzr help")
     runcmd("bzr help commands")
-    runcmd("bzr help ci")
-    runcmd("bzr help slartibartfast", 1)    
+    runcmd("bzr help slartibartfast", 1)
+
+    out = backtick("bzr help ci")
+    out.index('aliases: ')
 
     progress("can't rename unversioned file")
     runcmd("bzr rename test.txt new-test.txt", 1)



More information about the Pkg-bazaar-commits mailing list