Mostly for gabe, but I'm going to clean this up a bit and keep it
since it's good for inspecting code, maybe even see if the hg guys
want it.  It doesn't yet ignore whitespace only changes and it doesn't
discover code that's just moved around.  Both things that would be
pretty darn nice.

Add this to.hgrc:

[extensions]
stats = /Users/nate/m5/incoming/util/stats.py

Then you get a new command: 'stats'

Here's an example of how to use it:
hg stats -v -u nate -d '> 2006-09-10' -m 'nate:binkert,binkertn' > /tmp/data


This prints verbose (with line by line output kinda like diff) all
lines changed by nate after sept 10, 2006 and maps the usernames of
binkert and binkertn to nate as well during the change to make sure
that everything is covered.

You can do something similar with your dates of hire to help you
figure out exactly what code changed.  There's a couple of other flags
(like -t 10 which would say only display files with at least 10 lines
changed.)

It's not perfect, but it makes life easier.  Let me know what you think.

  Nate

Attachment: stats.py
Description: Binary data

_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to