[p4] diff2 + added files?
Sohail Somani
sohail at taggedtype.net
Tue Dec 4 11:52:39 PST 2007
On Tue, 04 Dec 2007 13:37:00 -0600, Ken Williams wrote:
> On 12/4/07 11:01 AM, "Sohail Somani" <sohail at taggedtype.net> wrote:
>
>> Unfortunately, I don't think I was clear enough! What I want to do is
>> take a diff of the two branches for the purposes of code review. So I
>> want all the added and removed content, including *added* and *deleted*
>> files.
>
> In other words, similar to the -N flag from Gnu diff.
>
> I don't know of any built-in way. None of the following work:
[snip]
I think they didn't work because p4 diff2 uses some built-in diff
> The best I can think of is to pipe the output of 'p4 diff2 -du' (NOT -u)
> to a process that will turn lines like "==== <none> - //depot/foo#9
> ====' into the '+' lines you want, and remove the rest of the "===="
> lines.
That seems to be the only thing to do.
Thank you for your help.
--
Sohail Somani
http://uint32t.blogspot.com
More information about the perforce-user
mailing list