Weintraub, David
2006-06-08 20:30:06 UTC
Do other people hate the fact that the "p4" command returns a zero even
if the command doesn't work?
Yes, I understand that the P4Perl API has P4::Errors() and
P4::Warnings() that allows me to test for errors and warnings, but that
doesn't work in instances where I can't use the P4::Perl API, or if I am
writing a shell script.
This is becoming a big headache in debugging scripts because I'm
constantly coming up with various tests to see if a Perforce command
fails. Triggers are a big problem.
And, while I'm venting:
* When a trigger fails, why does it display STDOUT, and not STDERR like
Subversion does? When a trigger script fails, the output from the error
isn't being displayed because of this.
* It would also be nice if the various sub-commands of "p4" had a few
more parameters. For example, most version control systems I've worked
with have short, long, and verbose output for most of their commands. In
ClearCase, many of the commands had a "-fmt" option that allowed me to
specify the format (and fields) I wanted to output. I'd also like to be
able to specify a few more parameters, like limit the listing of the "p4
clients" command to clients owned by a specific owner, or labels created
after a particular date, or by a particular user.
* I would also like a way to submit changes and other functions without
having to bring up a form. For example:
$ p4 submit -description "This is my description" -force
The "-force" parameter means to submit the changeset without presenting
a form. The "-description" parameter allows me to specify the
description on my changeset. This would make it a lot easier to write
quick little shell scripts since I wouldn't have to be processing forms.
Enough venting for now.
--
David Weintraub
***@bankofamerica.com
***@bofasecurities.com
if the command doesn't work?
Yes, I understand that the P4Perl API has P4::Errors() and
P4::Warnings() that allows me to test for errors and warnings, but that
doesn't work in instances where I can't use the P4::Perl API, or if I am
writing a shell script.
This is becoming a big headache in debugging scripts because I'm
constantly coming up with various tests to see if a Perforce command
fails. Triggers are a big problem.
And, while I'm venting:
* When a trigger fails, why does it display STDOUT, and not STDERR like
Subversion does? When a trigger script fails, the output from the error
isn't being displayed because of this.
* It would also be nice if the various sub-commands of "p4" had a few
more parameters. For example, most version control systems I've worked
with have short, long, and verbose output for most of their commands. In
ClearCase, many of the commands had a "-fmt" option that allowed me to
specify the format (and fields) I wanted to output. I'd also like to be
able to specify a few more parameters, like limit the listing of the "p4
clients" command to clients owned by a specific owner, or labels created
after a particular date, or by a particular user.
* I would also like a way to submit changes and other functions without
having to bring up a form. For example:
$ p4 submit -description "This is my description" -force
The "-force" parameter means to submit the changeset without presenting
a form. The "-description" parameter allows me to specify the
description on my changeset. This would make it a lot easier to write
quick little shell scripts since I wouldn't have to be processing forms.
Enough venting for now.
--
David Weintraub
***@bankofamerica.com
***@bofasecurities.com