[p4] submit numbered changelist in command line client
Weintraub, David
david.weintraub at bofasecurities.com
Thu Aug 10 12:33:41 PDT 2006
The original "p4 submit" brings up the changelist form because you have
to fill out the description on the changelist. Once you fill out the
description on the changelist, "p4 submit" can submit the changelist.
When you run "p4 submit -c xxxx", Perforce assumes that the changelist
is fine, and goes ahead and simply submits it. After all, it contains
all the information it needs. If you want to edit the changelist before
you do a submit, you can use the "p4 change xxxx" command first, then do
a "p4 submit -c xxxx".
Not too sure why p4win does a "p4 revert -an -c xxxx" first (or at least
shows that command first). The -n tells the revert command not to
actually revert any files, but show the files that would be reverted.
Therefore, the command really doesn't do anything. It might simply be a
way to show you the files being submitted in the log.
-----Original Message-----
From: perforce-user-bounces at perforce.com
[mailto:perforce-user-bounces at perforce.com] On Behalf Of Greg Pan
Sent: Thursday, August 10, 2006 2:13 PM
To: perforce-user at perforce.com
Subject: [p4] submit numbered changelist in command line client
I have implemented a trigger (python script) which validates whether the
descriptions user enters meet the length requirement. It will fail if
the length is not met. The only *issue* happens in p4 command line
client. The fail scheme works fine - Perforce warns you that "Submit
validation failed -- fix problems then use 'p4 submit -c xxxx'.". What I
expected was, upon seeing that, I could do 'p4 submit -c xxxx', which
would bring up the submit form where I could edit my description to meet
the requirement. But the re-submit would actually fail right away again
without giving me the chance to edit the description. What I need to do
is to execute 'p4 change xxxx', which bring up the submit form with the
editable description field.
My question is that why 'p4 submit -c xxxx' of command line client does
not give me the submit form? In p4win or p4v, the failed and numbered
changelist can be easily re-submit, as it does open up the submit form
for you. So the same attempt differs in different clients - at least to
me.
By the way, when I try to submit a numbered changelist on p4win, I see 2
commands being executed, "p4 revert -an -c xxxx" followed by "p4 submit
-o xxxx". So probably the combination of the 2 differs from simply "p4
submit -c xxxx"?
Thanks in advance.
Greg
_______________________________________________
perforce-user mailing list - perforce-user at perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user
More information about the perforce-user
mailing list