--- a/mercurial/commands.py Wed Oct 22 15:41:32 2008 -0500
+++ b/mercurial/commands.py Wed Oct 22 17:00:05 2008 -0500
@@ -1862,6 +1862,16 @@
if miss:
continue
+ if opts['user']:
+ changes = get(rev)
+ miss = 0
+ for k in opts['user']:
+ if k != changes[1]:
+ miss = 1
+ break
+ if miss:
+ continue
+
copies = []
if opts.get('copies') and rev:
for fn in get(rev)[3]:
@@ -3184,6 +3194,7 @@
('r', 'rev', [], _('show the specified revision or range')),
('', 'removed', None, _('include revs where files were removed')),
('m', 'only-merges', None, _('show only merges')),
+ ('u', 'user', [], _('revs committed by user')),
('b', 'only-branch', [],
_('show only changesets within the given named branch')),
('P', 'prune', [], _('do not display revision or any of its ancestors')),