[p4] Custom submission form

Alok Narula anarula at beceem.com
Sun Aug 5 22:14:05 PDT 2007


I had the same requirement as Dix but I also wanted to check that the p4
user was filling data in the additional fields before allowing the
check-in to proceed. To fulfill my requirement, I wrote two triggers:

a) check_form.pl 
b) check_fields.pl

Trigger (a) pops up the modified form containing additional fields that
I want each p4 user to fill at the time of changelist creation. Trigger
(b) checks if the user has filled the new fields and displays an error
message if the user has not filled the field(s).

I've removed the login information from my script. Go ahead and try it
to see if it fulfills your requirement. You will have to add the login
information to the scripts and modify your triggers table to get the
scripts to work. Here is how I modified my triggers table:

check_form form-out change "/scm/scripts/triggers/check_form.pl
%formfile%"
check_field change-submit //depot/...
"/scm/scripts/triggers/check_fields.pl %change%"

Alok

-----Original Message-----
From: perforce-user-bounces at perforce.com
[mailto:perforce-user-bounces at perforce.com] On Behalf Of
perforce-user-request at perforce.com
Sent: Sunday, August 05, 2007 12:30 AM
To: perforce-user at perforce.com
Subject: perforce-user Digest, Vol 32, Issue 3

Send perforce-user mailing list submissions to
	perforce-user at perforce.com

To subscribe or unsubscribe via the World Wide Web, visit
	http://maillist.perforce.com/mailman/listinfo/perforce-user
or, via email, send a message with subject or body 'help' to
	perforce-user-request at perforce.com

You can reach the person managing the list at
	perforce-user-owner at perforce.com

When replying, please edit your Subject line so it is more specific
than "Re: Contents of perforce-user digest..."


Today's Topics:

   1. Custom submission form (Dix, John)
   2. Re: Custom submission form (Dix, John)
   3. Re: Custom submission form (Dix, John)
   4. Re: Custom submission form (Dix, John)
   5. Re: Custom submission form (steve at vance.com)
   6. Re: Custom submission form (steve at vance.com)
   7. Re: Custom submission form (steve at vance.com)
   8. FW:  Custom submission form (Dix, John)
   9. Re: FW:  Custom submission form (Nikhil Singhal)
  10. Re: partial file revert? (Andrew May)
  11. p4 uri (Roger Day)


----------------------------------------------------------------------

Message: 1
Date: Fri, 3 Aug 2007 14:17:07 -0700
From: "Dix, John" <JDix at MedManageSystems.com>
Subject: [p4] Custom submission form
To: <perforce-user at perforce.com>
Message-ID:
	
<AE6186D040FF7545960D34B39F63653F9955D5 at titanium.medmanagesystems.local>
	
Content-Type: text/plain;	charset="us-ascii"

Is it possible to customize the submission form during a p4 submit or
within the UI of P4V in order to add additional fields?



------------------------------

Message: 2
Date: Fri, 3 Aug 2007 14:18:54 -0700
From: "Dix, John" <JDix at MedManageSystems.com>
Subject: Re: [p4] Custom submission form
To: "Dix, John" <JDix at MedManageSystems.com>,
	<perforce-user at perforce.com>
Message-ID:
	
<AE6186D040FF7545960D34B39F63653F9955D6 at titanium.medmanagesystems.local>
	
Content-Type: text/plain;	charset="us-ascii"

Nevermind. I found the following technote:

 

 

________________________________

From: Dix, John 
Sent: Friday, August 03, 2007 2:17 PM
To: perforce-user at perforce.com
Subject: Custom submission form

 

Is it possible to customize the submission form during a p4 submit or
within the UI of P4V in order to add additional fields?



------------------------------

Message: 3
Date: Fri, 3 Aug 2007 14:19:31 -0700
From: "Dix, John" <JDix at MedManageSystems.com>
Subject: Re: [p4] Custom submission form
To: <perforce-user at perforce.com>
Message-ID:
	
<AE6186D040FF7545960D34B39F63653F9955D7 at titanium.medmanagesystems.local>
	
Content-Type: text/plain;	charset="us-ascii"

D'oh! Nevermind. I just found the following technote:

 

http://www.perforce.com/perforce/technotes/note026.html

 

 

 

________________________________

From: Dix, John 
Sent: Friday, August 03, 2007 2:17 PM
To: perforce-user at perforce.com
Subject: Custom submission form

 

Is it possible to customize the submission form during a p4 submit or
within the UI of P4V in order to add additional fields?



------------------------------

Message: 4
Date: Fri, 3 Aug 2007 14:27:43 -0700
From: "Dix, John" <JDix at MedManageSystems.com>
Subject: Re: [p4] Custom submission form
To: <perforce-user at perforce.com>
Message-ID:
	
<AE6186D040FF7545960D34B39F63653F9955D8 at titanium.medmanagesystems.local>
	
Content-Type: text/plain;	charset="us-ascii"

I guess techNote 26 resolves the issue for command line but at least
half of our users use the UI only and not command line. Is there a way
to modify the forms used in the submissions from P4V?

 

________________________________

From: Dix, John 
Sent: Friday, August 03, 2007 2:19 PM
To: Dix, John; 'perforce-user at perforce.com'
Subject: RE: Custom submission form

 

Nevermind. I found the following technote:

 

 

________________________________

From: Dix, John 
Sent: Friday, August 03, 2007 2:17 PM
To: perforce-user at perforce.com
Subject: Custom submission form

 

Is it possible to customize the submission form during a p4 submit or
within the UI of P4V in order to add additional fields?



------------------------------

Message: 5
Date: Fri, 03 Aug 2007 17:46:05 -0400
From: steve at vance.com
Subject: Re: [p4] Custom submission form
To: "Dix, John" <JDix at MedManageSystems.com>
Cc: perforce-user at perforce.com
Message-ID:
	<S364389AbXHCVqF/20070803214605Z+33862 at swip006.ftl.affinity.com>
Content-Type: text/plain; format=flowed; charset="iso-8859-1"

John -- 

Look at 'p4 help spec' from the latest server or 'p4 help undoc' for the

'spec' command in previous versions. Notice that it is still
unsupported, 
but that it is stable enough that automatic labels were based on it
during 
their development. 

Steve 

Dix, John writes: 

> Is it possible to customize the submission form during a p4 submit or
> within the UI of P4V in order to add additional fields? 
> 
> _______________________________________________
> perforce-user mailing list  -  perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user
 


------------------------------

Message: 6
Date: Fri, 03 Aug 2007 19:08:24 -0400
From: steve at vance.com
Subject: Re: [p4] Custom submission form
To: "Dix, John" <JDix at MedManageSystems.com>
Cc: perforce-user at perforce.com
Message-ID:
	<S363308AbXHCXIY/20070803230824Z+14249 at swip002.ftl.affinity.com>
Content-Type: text/plain; format=flowed; charset="iso-8859-1"

Yes, but the limitation on form in and form out triggers is that they
can't 
add full Perforce fields. They can only modify information in existing 
fields. The typical way to use this to extend the form is to add 
pseudo-fields in the Description section. 

With the 'spec' command, you can add full form fields that look the same
as 
those provided by Perforce. For now, this is at the expense of not being

officially supported. 

Steve 

Dix, John writes: 

> D'oh! Nevermind. I just found the following technote: 
> 
>   
> 
> http://www.perforce.com/perforce/technotes/note026.html 
> 
>   
> 
>   
> 
>   
> 
> ________________________________ 
> 
> From: Dix, John 
> Sent: Friday, August 03, 2007 2:17 PM
> To: perforce-user at perforce.com
> Subject: Custom submission form 
> 
>   
> 
> Is it possible to customize the submission form during a p4 submit or
> within the UI of P4V in order to add additional fields? 
> 
> _______________________________________________
> perforce-user mailing list  -  perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user
 


------------------------------

Message: 7
Date: Fri, 03 Aug 2007 19:35:37 -0400
From: steve at vance.com
Subject: Re: [p4] Custom submission form
To: "Dix, John" <JDix at MedManageSystems.com>
Cc: perforce-user at perforce.com
Message-ID:
	<S363300AbXHCXfh/20070803233537Z+10109 at swip001.ftl.affinity.com>
Content-Type: text/plain; format=flowed; charset="iso-8859-1"

If you're only modifying existing Perforce fields, tech note 26 should
work 
equally well for all client programs. I don't know if P4V uses the undoc

window hints information in job specs or if these are also implemented
for 
other specs, but it would be worth a try. 

Steve 

Dix, John writes: 

> I guess techNote 26 resolves the issue for command line but at least
> half of our users use the UI only and not command line. Is there a way
> to modify the forms used in the submissions from P4V? 
> 
>   
> 
> ________________________________ 
> 
> From: Dix, John 
> Sent: Friday, August 03, 2007 2:19 PM
> To: Dix, John; 'perforce-user at perforce.com'
> Subject: RE: Custom submission form 
> 
>   
> 
> Nevermind. I found the following technote: 
> 
>   
> 
>   
> 
> ________________________________ 
> 
> From: Dix, John 
> Sent: Friday, August 03, 2007 2:17 PM
> To: perforce-user at perforce.com
> Subject: Custom submission form 
> 
>   
> 
> Is it possible to customize the submission form during a p4 submit or
> within the UI of P4V in order to add additional fields? 
> 
> _______________________________________________
> perforce-user mailing list  -  perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user
 


------------------------------

Message: 8
Date: Fri, 3 Aug 2007 20:47:47 -0700
From: "Dix, John" <JDix at MedManageSystems.com>
Subject: [p4] FW:  Custom submission form
To: <perforce-user at perforce.com>
Message-ID:
	
<AE6186D040FF7545960D34B39F63653F8F169D at titanium.medmanagesystems.local>
	
Content-Type: text/plain;	charset="iso-8859-1"

Forgot to add perforce-user

________________________________

From: Dix, John
Sent: Fri 8/3/2007 8:46 PM
To: Matthew Janulewicz
Subject: RE: [p4] Custom submission form


What I want is to add an extra field that requires the name of another
developer who has code reviewed the checkin. 

________________________________

From: Matthew Janulewicz [mailto:MJanulewicz at greendotcorp.com]
Sent: Fri 8/3/2007 5:47 PM
To: steve at vance.com; Dix, John
Cc: perforce-user at perforce.com
Subject: RE: [p4] Custom submission form



Coming in a little late here, but what kind of extra fields would you
want?

You might consider using Jobs, which can hold pretty much any kind of
arbitrary meta-data you can throw at it.


-Matt


-----Original Message-----
From: perforce-user-bounces at perforce.com
[mailto:perforce-user-bounces at perforce.com] On Behalf Of steve at vance.com
Sent: Friday, August 03, 2007 4:08 PM
To: Dix, John
Cc: perforce-user at perforce.com
Subject: Re: [p4] Custom submission form

Yes, but the limitation on form in and form out triggers is that they
can't
add full Perforce fields. They can only modify information in existing
fields. The typical way to use this to extend the form is to add
pseudo-fields in the Description section.

With the 'spec' command, you can add full form fields that look the same
as
those provided by Perforce. For now, this is at the expense of not being

officially supported.

Steve

Dix, John writes:

> D'oh! Nevermind. I just found the following technote:
>
>  
>
> http://www.perforce.com/perforce/technotes/note026.html
>
>  
>
>  
>
>  
>
> ________________________________
>
> From: Dix, John
> Sent: Friday, August 03, 2007 2:17 PM
> To: perforce-user at perforce.com
> Subject: Custom submission form
>
>  
>
> Is it possible to customize the submission form during a p4 submit or
> within the UI of P4V in order to add additional fields?
>
> _______________________________________________
> perforce-user mailing list  -  perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user

_______________________________________________
perforce-user mailing list  -  perforce-user at perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user






------------------------------

Message: 9
Date: Fri, 3 Aug 2007 22:30:55 -0700
From: "Nikhil Singhal" <nikhil at telspace.com>
Subject: Re: [p4] FW:  Custom submission form
To: "'Dix, John'" <JDix at MedManageSystems.com>,
	<perforce-user at perforce.com>
Message-ID: <000901c7d658$a1d9a550$e58ceff0$@com>
Content-Type: text/plain;	charset="us-ascii"

I really desperately need this feature.


-----Original Message-----
From: perforce-user-bounces at perforce.com
[mailto:perforce-user-bounces at perforce.com] On Behalf Of Dix, John
Sent: Friday, August 03, 2007 8:48 PM
To: perforce-user at perforce.com
Subject: [p4] FW: Custom submission form

Forgot to add perforce-user

________________________________

From: Dix, John
Sent: Fri 8/3/2007 8:46 PM
To: Matthew Janulewicz
Subject: RE: [p4] Custom submission form


What I want is to add an extra field that requires the name of another
developer who has code reviewed the checkin. 

________________________________

From: Matthew Janulewicz [mailto:MJanulewicz at greendotcorp.com]
Sent: Fri 8/3/2007 5:47 PM
To: steve at vance.com; Dix, John
Cc: perforce-user at perforce.com
Subject: RE: [p4] Custom submission form



Coming in a little late here, but what kind of extra fields would you
want?

You might consider using Jobs, which can hold pretty much any kind of
arbitrary meta-data you can throw at it.


-Matt


-----Original Message-----
From: perforce-user-bounces at perforce.com
[mailto:perforce-user-bounces at perforce.com] On Behalf Of steve at vance.com
Sent: Friday, August 03, 2007 4:08 PM
To: Dix, John
Cc: perforce-user at perforce.com
Subject: Re: [p4] Custom submission form

Yes, but the limitation on form in and form out triggers is that they
can't
add full Perforce fields. They can only modify information in existing
fields. The typical way to use this to extend the form is to add
pseudo-fields in the Description section.

With the 'spec' command, you can add full form fields that look the same
as
those provided by Perforce. For now, this is at the expense of not being

officially supported.

Steve

Dix, John writes:

> D'oh! Nevermind. I just found the following technote:
>
>  
>
> http://www.perforce.com/perforce/technotes/note026.html
>
>  
>
>  
>
>  
>
> ________________________________
>
> From: Dix, John
> Sent: Friday, August 03, 2007 2:17 PM
> To: perforce-user at perforce.com
> Subject: Custom submission form
>
>  
>
> Is it possible to customize the submission form during a p4 submit or
> within the UI of P4V in order to add additional fields?
>
> _______________________________________________
> perforce-user mailing list  -  perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user

_______________________________________________
perforce-user mailing list  -  perforce-user at perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user




_______________________________________________
perforce-user mailing list  -  perforce-user at perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user



------------------------------

Message: 10
Date: Sat, 4 Aug 2007 01:27:43 -0700
From: Andrew May <acmay at acmay.homeip.net>
Subject: Re: [p4] partial file revert?
To: "Steve M. Robbins" <steve at sumost.ca>
Cc: perforce-user at perforce.com
Message-ID: <20070804012743.1f7d61df at localhost.localdomain>
Content-Type: text/plain; charset=US-ASCII

On Thu, 02 Aug 2007 10:21:30 -0500
"Steve M. Robbins" <steve at sumost.ca> wrote:
> I habitually review diffs of all modified files before check-in.  When
> using emacs' cvs mode, there is a way to go through the diff one chunk
> at a time much like the perforce diff tool.  However, I can also
> selectively revert a chunk if I change my mind.  Morever, since emacs
> is an editor I can actually edit the file right there.

If you are an emacs user have you used the Perforce emacs lisp library?
http://p4el.sourceforge.net/

It hooks right into ediff. (C-x p -) should bring it up. Then n/p should
jump between chunks, and "b" should take the old version.

But I really like the p4-diff-all-opened, where you can see the raw diff
of every file and enter will bring you to the file and line of the
change. It makes it real easy to double check and tweak all your
pending changes.


------------------------------

Message: 11
Date: Sat, 4 Aug 2007 13:57:43 +0100
From: "Roger Day" <roger.day at globalgraphics.com>
Subject: [p4] p4 uri
To: "Perforce Users Mailing List" <perforce-user at perforce.com>
Message-ID:
	
<OFB1402EEA.1723EADB-ON8025732D.0045741F-8025732D.004734D0 at cam.harlequin
.co.uk>
	
Content-Type: text/plain; charset="US-ASCII"

I currently maintain 2 SCM systems - an internal one and P4. To allow my

scripts to process references to files in both SCM systems with standard

URL classes (in python) I'm thinking of using a URL-like string to 
identify files in either system .i.e

hope://<hostname>/<filepath> 

p4://<hostname>/<filepath>

with depot dropping out as the default. Which kinda seems wrong to me.
It 
seems to me that the full path should be invoked. But  a full WWW-like
URI 
would look like:

///depot/

with hostname and protocol left out for defaults. Any background on why 
the two notations differ?

What do others do? Is there a recognised or defacto way of addressing p4

resources similarly? 

TIA
Roger

------------------------------

_______________________________________________
perforce-user mailing list  -  perforce-user at perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user


End of perforce-user Digest, Vol 32, Issue 3
********************************************


More information about the perforce-user mailing list