[p4] p4 submit w/o an editor

David Jones drj at ravenbrook.com
Fri Jul 14 01:12:13 PDT 2006


On 13 Jul 2006, at 21:32, Weintraub, David wrote:

>
>     $ p4 client -client "temp$$" -root "$PWD" -view "//depot/dir/ 
> dir/...
> //temp$$/..."
>     $ p4 -c "temp$$" sync
>     $ p4 client -d "temp$$"
>
> Takes all of three lines. Instead, I have to build a form in a text
> file, then redirect that input back into the "p4 client" command. A  
> much
> messier process.

You don't need a file, a pipe will do:

printf 'Client: drj-temp\nRoot: /tmp/\nView: //info.ravenbrook.com/ 
foo-bar/... //drj-temp/...' | p4 client -i

You might be surprised at how minimal a form you can get away with:

printf 'Change: new\nDescription: spong' | p4 change -i

Nonetheless I also think command line options for form values would  
be a good idea.

David Jones
Ravenbrook Limited



More information about the perforce-user mailing list