Discussion:
[p4] Exclusive checkout in P4V
Filip Gruszczyński
2009-01-09 13:41:29 UTC
Permalink
Hi!
I know, that I can first checkout a file and the lock it in P4V. Can Ido both with one click? Our artists work a lot on binary files and wewould like to allow to do a few less clicks.
-- Filip Gruszczyński
Tony Sweeney
2009-01-09 13:55:16 UTC
Permalink
Post by Filip Gruszczyński
Hi!
I know, that I can first checkout a file and the lock it in P4V. Can Ido both with one click? Our artists work a lot on binary files and wewould like to allow to do a few less clicks.
Change the file type of the files in question to 'binary+l'. The first
user to check out such a file will automatically lock it against further
checkouts. See 'p4 help filetypes' for more information.

Tony.
Post by Filip Gruszczyński
-- Filip Gruszczyński
_______________________________________________
http://maillist.perforce.com/mailman/listinfo/perforce-user
Michael Delaney
2009-01-09 14:13:20 UTC
Permalink
If this is a file you only want one person working on at a time, you can
change the properties of the file such that checks outs are exclusive to
one person at a time.

Assuming that is the case, you may want to look at the typemap command
('p4 help typemap') and the references at
http://www.perforce.com/perforce/doc.current/manuals/cmdref/o.ftypes.html#1040647.
Post by Filip Gruszczyński
Hi!
I know, that I can first checkout a file and the lock it in P4V. Can Ido both with one click? Our artists work a lot on binary files and wewould like to allow to do a few less clicks.
-- Filip Gruszczyński
_______________________________________________
http://maillist.perforce.com/mailman/listinfo/perforce-user
s***@vance.com
2009-01-09 16:33:51 UTC
Permalink
Others have correctly pointed out that you should use the +l file type
modifier to get exclusive checkout.

I just wanted to point out that locking the file using the Lock menu option
does NOT invoke exclusive checkout. It simply reserves the right to be the
next one to check in, which is different and does not accomplish what you
want.

Steve

Original Message:
-----------------
From: Filip Gruszczyński ***@gmail.com
Date: Fri, 9 Jan 2009 14:41:29 +0100
To: perforce-***@perforce.com
Subject: [p4] Exclusive checkout in P4V


Hi!
I know, that I can first checkout a file and the lock it in P4V. Can Ido
both with one click? Our artists work a lot on binary files and wewould
like to allow to do a few less clicks.
-- Filip Gruszczyński
_______________________________________________
perforce-user mailing list - perforce-***@perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user


--------------------------------------------------------------------
mail2web.com – What can On Demand Business Solutions do for you?
http://link.mail2web.com/Business/SharePoint
Filip Gruszczyński
2009-01-13 14:31:32 UTC
Permalink
OK, thank you all. I'll write a small script to add this modifier to all files.
There is one more question: can I set the server in such way, thatthey are automatically modified with +l?
2009/1/9 ***@vance.com <***@vance.com>:> Others have correctly pointed out that you should use the +l file type> modifier to get exclusive checkout.>> I just wanted to point out that locking the file using the Lock menu option> does NOT invoke exclusive checkout. It simply reserves the right to be the> next one to check in, which is different and does not accomplish what you> want.>> Steve>> Original Message:> -----------------> From: Filip GruszczyÅ„ski ***@gmail.com> Date: Fri, 9 Jan 2009 14:41:29 +0100> To: perforce-***@perforce.com> Subject: [p4] Exclusive checkout in P4V>>> Hi!> I know, that I can first checkout a file and the lock it in P4V. Can Ido> both with one click? Our artists work a lot on binary files and wewould> like to allow to do a few less clicks.> -- Filip GruszczyÅ„ski> _______________________________________________> perforce-user mailing list - perforce-***@perforce.com> http://maillist.perforce.com/mailman/listinfo/perforce-user>>> --------------------------------------------------------------------> mail2web.com – What can On Demand Business Solutions do for you?> http://link.mail2web.com/Business/SharePoint>>>


-- Filip Gruszczyński
Tony Sweeney
2009-01-13 14:50:11 UTC
Permalink
Post by Filip Gruszczyński
OK, thank you all. I'll write a small script to add this modifier to all files.
There is one more question: can I set the server in such way, thatthey are automatically modified with +l?
You can use 'p4 typemap' to set up a default filename -> filetype
mapping, such that all new files that match a specified pattern are
mapped to a given type. See the section "Defining Perforce filetypes
with typemap" in the system administrator's guide.

Tony.
Post by Filip Gruszczyński
-- Filip Gruszczyński
_______________________________________________
http://maillist.perforce.com/mailman/listinfo/perforce-user
Filip Gruszczyński
2009-01-13 15:35:47 UTC
Permalink
Thanks, I'll give it a try.
2009/1/13 Tony Sweeney <***@addr.com>:> Filip Gruszczyński wrote:>>>> OK, thank you all. I'll write a small script to add this modifier to all>> files.>> There is one more question: can I set the server in such way, thatthey are>> automatically modified with +l?>>>> You can use 'p4 typemap' to set up a default filename -> filetype mapping,> such that all new files that match a specified pattern are mapped to a given> type. See the section "Defining Perforce filetypes with typemap" in the> system administrator's guide.>> Tony.>>> 2009/1/9 ***@vance.com <***@vance.com>:> Others have correctly pointed>> out that you should use the +l file type> modifier to get exclusive>> checkout.>> I just wanted to point out that locking the file using the Lock>> menu option> does NOT invoke exclusive checkout. It simply reserves the>> right to be the> next one to check in, which is different and does not>> accomplish what you> want.>> Steve>> Original Message:> ----------------->>> From: Filip GruszczyÅ„ski ***@gmail.com> Date: Fri, 9 Jan 2009>> 14:41:29 +0100> To: perforce-***@perforce.com> Subject: [p4] Exclusive>> checkout in P4V>>> Hi!> I know, that I can first checkout a file and the>> lock it in P4V. Can Ido> both with one click? Our artists work a lot on>> binary files and wewould> like to allow to do a few less clicks.> -- Filip>> GruszczyÅ„ski> _______________________________________________>>> perforce-user mailing list - perforce-***@perforce.com>>> http://maillist.perforce.com/mailman/listinfo/perforce-user>>>>> -------------------------------------------------------------------->>> mail2web.com – What can On Demand Business Solutions do for you?>>> http://link.mail2web.com/Business/SharePoint>>>>>>>>> -- Filip Gruszczyński>> _______________________________________________>> perforce-user mailing list - perforce-***@perforce.com>> http://maillist.perforce.com/mailman/listinfo/perforce-user>>>>>>>>>


-- Filip Gruszczyński
Filip Gruszczyński
2009-01-13 22:10:55 UTC
Permalink
Yep, I know :) I changed all the old myself.
2009/1/13 Stephen Vance <***@vance.com>:> Keep in mind the typemap will set the default for new files but not change> existing files or prevent users from changing the type.>> Stephen Vance>> On Jan 13, 2009, at 10:35, "Filip Gruszczyński" <***@gmail.com> wrote:>>> Thanks, I'll give it a try.>>>> 2009/1/13 Tony Sweeney <***@addr.com>:>>>>>> Filip Gruszczyński wrote:>>>>>>>> OK, thank you all. I'll write a small script to add this modifier to all>>>> files.>>>> There is one more question: can I set the server in such way, thatthey>>>> are>>>> automatically modified with +l?>>>>>>>>>> You can use 'p4 typemap' to set up a default filename -> filetype>>> mapping,>>> such that all new files that match a specified pattern are mapped to a>>> given>>> type. See the section "Defining Perforce filetypes with typemap" in the>>> system administrator's guide.>>>>>> Tony.>>>>>>> 2009/1/9 ***@vance.com <***@vance.com>:> Others have correctly>>>> pointed>>>> out that you should use the +l file type> modifier to get exclusive>>>> checkout.>> I just wanted to point out that locking the file using the>>>> Lock>>>> menu option> does NOT invoke exclusive checkout. It simply reserves the>>>> right to be the> next one to check in, which is different and does not>>>> accomplish what you> want.>> Steve>> Original Message:>>>>> ----------------->>>>> From: Filip GruszczyÅ„ski ***@gmail.com> Date: Fri, 9 Jan 2009>>>> 14:41:29 +0100> To: perforce-***@perforce.com> Subject: [p4] Exclusive>>>> checkout in P4V>>> Hi!> I know, that I can first checkout a file and the>>>> lock it in P4V. Can Ido> both with one click? Our artists work a lot on>>>> binary files and wewould> like to allow to do a few less clicks.> -->>>> Filip>>>> GruszczyÅ„ski> _______________________________________________>>>>> perforce-user mailing list - perforce-***@perforce.com>>>>> http://maillist.perforce.com/mailman/listinfo/perforce-user>>>>>>> -------------------------------------------------------------------->>>>> mail2web.com – What can On Demand Business Solutions do for you?>>>>> http://link.mail2web.com/Business/SharePoint>>>>>>>>>>>>>>> -- Filip Gruszczyński>>>> _______________________________________________>>>> perforce-user mailing list - perforce-***@perforce.com>>>> http://maillist.perforce.com/mailman/listinfo/perforce-user>>>>>>>>>>>>>>>>>>>>>>>>>>>>> -->> Filip Gruszczyński>


-- Filip Gruszczyński

Continue reading on narkive:
Loading...