# HG changeset patch # User Alexander Solovyov <piranha@piranha.org.ua> # Date 1259359349 -7200 # Node ID 83910efdbb542ba9eb79f459eea2bf47608381a4 # Parent 714f9414b0093d3acb73a38e9a282e4256bbed3e remove trailing whitespaces diff -r 714f9414b009 -r 83910efdbb54 artemis.py --- a/artemis.py Sat Apr 11 15:44:02 2009 -0700 +++ b/artemis.py Sat Nov 28 00:02:29 2009 +0200 @@ -1,5 +1,5 @@ # Author: Dmitriy Morozov <hg@foxcub.org>, 2007 -- 2009 - + """A very simple and lightweight issue tracker for Mercurial.""" from mercurial import hg, util @@ -65,7 +65,7 @@ property_match = property_match and (mbox[root][property] == value) else: property_match = property_match and (property not in mbox[root]) - + if not show_all and (not properties or not property_match) and (properties or mbox[root]['State'].upper() in [f.upper() for f in state['fixed']]): continue if match_date and not date_match(util.parsedate(mbox[root]['date'])[0]): continue @@ -125,8 +125,8 @@ return else: # Write down a comment about updated properties - properties_subject = ', '.join(['%s=%s' % (property, value) for (property, value) in properties]) - + properties_subject = ', '.join(['%s=%s' % (property, value) for (property, value) in properties]) + issue = "From: %s\nDate: %s\nSubject: changed properties (%s)\n" % \ (user, util.datestr(format = date_format), properties_subject) @@ -186,7 +186,7 @@ comment = int(comment) issue, id = _find_issue(ui, repo, id) if not issue: return - + _create_missing_dirs(os.path.join(repo.root, issues_dir), issue) mbox = mailbox.Maildir(issue, factory=mailbox.MaildirMessage) @@ -194,7 +194,7 @@ if opts['all']: ui.write('='*70 + '\n') i = 0 - keys = _order_keys_date(mbox) + keys = _order_keys_date(mbox) for k in keys: _write_message(ui, mbox[k], i, skip = opts['skip']) ui.write('-'*70 + '\n') @@ -391,13 +391,13 @@ ('d', 'date', '', 'restrict to issues matching the date (e.g., -d ">12/28/2007)"'), ('f', 'filter', '', 'restrict to pre-defined filter (in %s/%s*)' % (issues_dir, filter_prefix))], _('hg ilist [OPTIONS]')), - 'iadd': (iadd, + 'iadd': (iadd, [('a', 'attach', [], 'attach file(s) (e.g., -a filename1 -a filename2)'), ('p', 'property', [], 'update properties (e.g., -p state=fixed)'), ('n', 'no-property-comment', None, - 'do not add a comment about changed properties')], + 'do not add a comment about changed properties')], _('hg iadd [OPTIONS] [ID] [COMMENT]')), 'ishow': (ishow, [('a', 'all', None, 'list all comments'),