3

Is there a way of spawning the progress GUI: enter image description here (the one you would see if you do update from p4v), when running Client.SyncFiles?

I have also tried spawning p4 sync a P4Command, but I cannot see how I can pass global flags (to run p4 -I sync -q).

Thanks!

Serge
  • 1,027
  • 14
  • 21
  • I have also tried spawning `p4 sync` a `P4Command`, but I cannot see how I can pass global flags (to run `p4 -I sync -q`). – Serge Oct 23 '15 at 00:03
  • also looks like `p4vc` doesn't support `sync` command at all – Serge Oct 23 '15 at 01:03
  • Which part of the GUI? The whole P4V? Why don't you just start it? I also don't understand why you would want to do that "when syncing". Maybe you want the cmdline output from the sync? – sferencik Oct 23 '15 at 04:40
  • When I press the update button in P4V, it shows the progress window with a stop button and a progress bar - that's all the UI I want to bring up – Serge Oct 24 '15 at 00:21
  • Actually, I take it back about `p4 -I sync -q` - it shows a commandline progress - not the UI – Serge Oct 24 '15 at 00:40
  • 1
    I'm pretty sure that progress dialog is specific to P4V and there's no way to get it in isolation. I don't even know how you'd implement it in your application, since using a regular `p4 sync` command P4 doesn't tell you the number of files you're going to sync overall (hence you can't calculate the percentage). – sferencik Oct 26 '15 at 06:05
  • Are there any analogues to ClientProgress in C++ API (http://www.perforce.com/perforce/doc.current/manuals/p4api/chapter.methods.html#clientuser.createprogress)? – Serge Oct 27 '15 at 01:36

0 Answers0