You can lock Perforce branch,depot or any other folder by using either
1) Protection table
2) Triggers
Using protection table:
You can lock a branch by just creating a new rule in Protection table. For example here, we are locking a branch called //dev/envision/esi/... by just providing only read permission to group xxx
read group xxx * -//dev/envision/esi/...
Here is a complex example.
The below protection table locks the branch //release/envision4.1sp1/... for every one else, except the user xxxats2. It locks for all the concerned groups release-xxx-4.0, xxx, yyy-group, yyy-all
=write group release-xxx-4.0 * -//release/envision4.1sp1/...
Points to remember:
Using triggers:
You can also lock a branch by writing a changelist submission trigger of type change-submit. Here the trigger logic work something like, when a changelist comes for submission, check for files under branch which you want to lock and also check for some .lock file created in a location accessible to server. If .lock file is present then cancel change submission.
Cons: This will definitely slowdown the CL submission time.
1) Protection table
2) Triggers
Using protection table:
You can lock a branch by just creating a new rule in Protection table. For example here, we are locking a branch called //dev/envision/esi/... by just providing only read permission to group xxx
read group xxx * -//dev/envision/esi/...
Here is a complex example.
The below protection table locks the branch //release/envision4.1sp1/... for every one else, except the user xxxats2. It locks for all the concerned groups release-xxx-4.0, xxx, yyy-group, yyy-all
=write group release-xxx-4.0 * -//release/envision4.1sp1/...
=write group xxx * -//release/envision4.1sp1/...
=write group yyy-group * -//release/envision4.1sp1/...
=write group yyy-all * -//release/envision4.1sp1/...
write user xxxats2 * //release/envision4.1sp1/...
=write group ddds * -//user_information/enVision/4.1_SP1/output/...
=write group uuuu-info * -//user_information/enVision/4.1_SP1/output/...
=write group yyy-all * -//user_information/enVision/4.1_SP1/output/...
write user xxxats2 * //user_information/enVision/4.1_SP1/output/...
Points to remember:
- The protection table order works from bottom to top. Hence place new locking rules below the existing rules in order for it be in effect.
- =write : means, provide all other privileges ( like read, open), except write
- Use "p4 protects //release/envision4.1SP1/..." command to find out which all groups/users already have write privileges. Remove write privileges from all the concerned groups
Using triggers:
You can also lock a branch by writing a changelist submission trigger of type change-submit. Here the trigger logic work something like, when a changelist comes for submission, check for files under branch which you want to lock and also check for some .lock file created in a location accessible to server. If .lock file is present then cancel change submission.
Cons: This will definitely slowdown the CL submission time.
18 comments:
[COLOR="Red"][B]Click on the pictures to view in full size[/B][/COLOR]
[URL=http://www.wallpaperhungama.in/details.php?image_id=13383][IMG]http://www.wallpaperhungama.in/data/thumbnails/11/Katrina Kaif-314.jpg[/IMG][/URL]
[URL=http://www.wallpaperhungama.in/details.php?image_id=8825][IMG]http://www.wallpaperhungama.in/data/thumbnails/11/Katrina Kaif-309.jpg[/IMG][/URL]
[URL=http://www.wallpaperhungama.in/details.php?image_id=8822][IMG]http://www.wallpaperhungama.in/data/thumbnails/11/Katrina Kaif-306.jpg[/IMG][/URL]
[URL=http://www.wallpaperhungama.in/details.php?image_id=4238][IMG]http://www.wallpaperhungama.in/data/thumbnails/11/Katrina_Kaif-99.jpg[/IMG][/URL]
[url=http://www.wallpaperhungama.in/cat-Asin-32.htm][b]Katrina Kaif Hot Wallpapers[/b][/url]
Photo gallery at t WallpaperHungama.in is dedicated to Katrina Kaif Pictures. Click on the thumbnails on enlarged Katrina Kaif pictures, exclusive photographs and snobbish photos. Also after discernible other Pictures Gallery representing Turbulent grade and Momentous Decision appearance scans, film captures, movie promos, wallpapers, hollywood & bollywood pictures, photos of actresses and celebrities
I should digg your article so more folks can look at it, very useful, I had a hard time finding the results searching on the web, thanks.
- Norman
I should digg your article so more people are able to look at it, really helpful, I had a tough time finding the results searching on the web, thanks.
- Murk
Prettу grеаt post. I ѕіmply ѕtumbled upоn youг blog and
wished to say that I hаѵе trulу lovеd surfing aгounԁ your blog
poѕts. Аfter аll Ι wіll be subscrіbіng for youг гss feeԁ anԁ I hope
you ωritе аgаin very soon!
Here is my websіte :: buy nootropics
Have a look at my web site ; what goes into nootropics
Write more, thats all I have to say. Liteгally, it ѕeems as though уou rеlied on
the video to make your ρoint. You obvіously
know what youre talking about, why waste youг intelligenсe on јust posting vidеos to yοur blog when you could
be giving us ѕοmеthing informative to rеad?
my web blog: http://www.biggreeneggmanual.com/how-to-clean-your-big-green-egg-grill-a-quick-guide/
Feel free to surf my site ... Farrenheit In Your Back With The Special Green Egg
Write more, thаts all I hаѵe tο ѕаy.
Lіteгally, it sеemѕ aѕ though
you relied on the vіdeο to make your point.
You obviоusly κnоw ωhаt yоure talking about, why waѕte уouг іntelligence on јust ρosting viԁeoѕ to уour
blog ωhеn уou cоuld be giving
uѕ ѕomethіng informatіve to rеаd?
Аlso visіt my blog post ... http://www.biggreeneggmanual.com/how-to-clean-your-big-green-egg-grill-a-quick-guide/
Also see my web site: Farrenheit In Your Back With The Special Green Egg
Paгagгaph writіng is also а excitement, if you be
familiar wіth then you can write іf not it is complex to wгite.
Feel free to surf to my blog :: car insurance dallas
Јust want to say your article iѕ as astounԁing.
The cleагneѕs in уouг post is just great anԁ i can asѕume yоu're an expert on this subject. Well with your permission let me to grab your RSS feed to keep up to date with forthcoming post. Thanks a million and please continue the gratifying work.
Also visit my web site ... tens unit
Thanks designed for ѕharing such a
pleasаnt thіnκing, аrtіclе is goοԁ, thatѕ ωhy i havе rеad іt еntirеlу
Ηerе is my weblog ... irving taxi service
At thіѕ moment I am readу to ԁо my bгeakfast,
οnce having my breakfast cοming ovег again tо гead additіonal news.
my webρаge grapevine taxi service
What a data of un-аmbiguitу and ρrеѕerѵenеss of precіous κnow-how on the
tοpiс οf unpredісteԁ emotіons.
Here is my web blog :: how to flip a car
Do you mind if I quote a couple of your posts as long as I provide
credit and sources back to your website? My blog site is in the
very same niche as yours and my users would really benefit from a lot of the information you provide here.
Please let me know if this ok with you. Regards!
My web-site - cheap Dental Implants
Keep on writing, great job!
My website ... http://www.yepcheck.Com/chansonwiki/index.php?title=Yeastrol_UK
Yellow Cab Dallas promise to put our up most effort to give our customer the best care and service in time of their needs. In addition making the ride safe we insure a wide selection of quality vehicles for business and personal cab service. GIVE US A CALL 24 HOURS (972)-369-3334
Check our website for more details: http://yellowcabdallas.net/
Yellow Cab Dallas
Bumrungrad International Hospital serves over 520,000 international patients including 1.1 million local patients each year. Bumrungrad International Hospital Bangkok offers therapeutic, state-of-the-art diagnostic and intensive care facilities in a one-stop medical centre. Discover IMS is one of International Referral Offices of Bumrungrad International Hospital in Bangladesh.
Our Main Services are Dfw Limo Service, Airport Limousine Service, Wedding Limousine, Bachelor & Bachelorette Party, Night Out, Corporate Limousine, Special Events, Sight Seeing, Prom Nights Limousine entire Dfw metroplex area.
Contact us now for book a Limousine @ +1 972 594 9291 any time 24 hours a day.
Website Design Company in Bangladesh - Creative Tech Park Dhaka BD is the Ultimate Web Design and Development Company Bangladesh to Ensure Creative Technology all over the world with full customer satisfaction than ever. Best web site design company to develop your web page design and custom website package with top graded SSD web hosting and website domain name registration with an affordable price.
Smart Outsourcing Solutions is the leading web development, ecommerce solution, offshore outsourcing development and freelancing training company in Dhaka Bangladesh.
Website design company in bangladesh
Post a Comment