Mercurial > public > mercurial-scm > hg
diff hgext/patchbomb.py @ 4566:087b3ae4f08a
patchbomb: add --date option
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Tue, 12 Jun 2007 14:52:34 -0700 |
parents | 1cf908c00479 |
children | ec431334e4fc |
line wrap: on
line diff
--- a/hgext/patchbomb.py Tue Jun 12 14:44:47 2007 -0700 +++ b/hgext/patchbomb.py Tue Jun 12 14:52:34 2007 -0700 @@ -252,7 +252,10 @@ opts['revs'] = revs # start - start_time = util.makedate() + if opts.get('date'): + start_time = util.parsedate(opts['date']) + else: + start_time = util.makedate() def genmsgid(id): return '<%s.%s@%s>' % (id[:20], int(start_time[0]), socket.getfqdn()) @@ -407,6 +410,7 @@ ('', 'bcc', [], 'email addresses of blind copy recipients'), ('c', 'cc', [], 'email addresses of copy recipients'), ('d', 'diffstat', None, 'add diffstat output to messages'), + ('', 'date', '', _('use the given date as the sending date')), ('g', 'git', None, _('use git extended diff format')), ('f', 'from', '', 'email address of sender'), ('', 'plain', None, 'omit hg patch header'),