Added vim instruction to expand tabs + number of comments aligned to preset width in ilist
authorDmitriy Morozov <morozov@cs.duke.edu>
Thu, 10 Jan 2008 02:38:37 -0500
changeset 19 c79f89b04676
parent 18 57157f212cde
child 20 1630cf85c7f7
Added vim instruction to expand tabs + number of comments aligned to preset width in ilist
artemis.py
--- a/artemis.py	Tue Jan 08 23:52:11 2008 +0100
+++ b/artemis.py	Thu Jan 10 02:38:37 2008 -0500
@@ -1,5 +1,5 @@
 # Author: Dmitriy Morozov <hg@foxcub.org>, 2007
-
+        
 """A very simple and lightweight issue tracker for Mercurial."""
 
 from mercurial import hg, util
@@ -51,10 +51,10 @@
 
 
         if match_date and not date_match(util.parsedate(mbox[0]['date'])[0]): continue
-        ui.write("%s (%d) [%s]: %s\n" % (issue[len(issues_path)+1:], # +1 for trailing /
-                                         len(mbox)-1,                 # number of replies (-1 for self)
-                                         mbox[0]['State'],
-                                         mbox[0]['Subject']))
+        ui.write("%s (%3d) [%s]: %s\n" % (issue[len(issues_path)+1:], # +1 for trailing /
+                                          len(mbox)-1,                # number of replies (-1 for self)
+                                          mbox[0]['State'],
+                                          mbox[0]['Subject']))
 
 
 def iadd(ui, repo, id = None, comment = 0):
@@ -271,3 +271,5 @@
                    'do not add a comment about changed properties')],
                  _('hg iupdate [OPTIONS] ID'))
 }
+
+# vim: expandtab