Jump to content


p4 diff2 -q and integrating multiple files.

p4 api diff2 integrate

  • Please log in to reply
2 replies to this topic

#1 mister_wilson

mister_wilson

    Advanced Member

  • Members
  • PipPipPip
  • 121 posts
  • LocationMontreal, Quebec

Posted 26 June 2013 - 01:06 AM

Hi,

I'm working on a small utility to replicate/mirror a perforce branch using the P4API and the "  p4 diff2 -q"   command to compare two branches.

My result set for the diff2 command usually returns a lot of records (i.e.: > 100000 records)

When I get results that have a "status" of "left only", "content" or "types" I would like to integrate these files using "p4 integrate -t -v -f depotFile depotFile2"

How can I integrate multiple files from my result set instead of one file at a time?

Thanks,

-MW

#2 P4Sam

P4Sam

    Advanced Member

  • Members
  • PipPipPip
  • 484 posts
  • LocationSan Francisco, CA

Posted 26 June 2013 - 01:23 AM

What you're describing sounds exactly like the "p4 copy" command -- even if you need your utility to do something slightly different, that might be a better starting point than "diff2" + "integ".

#3 mister_wilson

mister_wilson

    Advanced Member

  • Members
  • PipPipPip
  • 121 posts
  • LocationMontreal, Quebec

Posted 26 June 2013 - 02:10 AM

This is exactly what I'm looking for =)

Thanks P4Sam.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users