[p4] Find old dead code?
steve@vance.com
steve at vance.com
Mon Oct 29 22:39:56 PDT 2007
Sync a workspace to your deadline date, grep in that source base, then sync
or annotate from that revision forward to see if the code is still there?
Just a SWAG at a recipe. Very scriptable, although the latter part could
require some ingenuity.
Steve
Original Message:
-----------------
From: Roy Smith smith_roy at emc.com
Date: Mon, 29 Oct 2007 23:08:55 -0400
To: perforce-user at perforce.com
Subject: [p4] Find old dead code?
I want to clean out some old dead code, i.e. blocks which are
surrounded by
#if 0
[...]
#endif
Finding all the #if 0 lines is easy with grep. What's a bit more
complicated is finding all the *old* ones. Say, older than a year
(i.e. I'll put up with such sillyness, as long as it's recent; humor
me on that for the moment). Perforce certainly has the information
needed to perform that query, but is there any reasonable way to
script doing this?
if "p4 annotate" could tag lines with dates instead of change or
version numbers, that would get me most of the way there, but it
doesn't seem to be able to do that.
-------------------
Roy Smith <smith_roy at emc.com>
Software Guy, EMC Common Management Group
44 South Broadway, 7th floor
White Plains, NY 10601
(914) 580-3427
AIM: roysmith649
_______________________________________________
perforce-user mailing list - perforce-user at perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user
--------------------------------------------------------------------
mail2web LIVE Free email based on Microsoft® Exchange technology -
http://link.mail2web.com/LIVE
More information about the perforce-user
mailing list