[p4] Trigger to restrict users to delete any file

- C Saha - p4sync at yahoo.com
Sun Jun 4 22:28:01 PDT 2006


Hi All 
   
  Perhaps you guys are right, I should not go for deleting those files permanently. 
   
  But as an Administrator, I am always worried about the space usage, and that means more backup time. When I found that more than 36000 files were deleted, then can I not assume that I am unnecessarily copying those 36000 files (out of which, most are binary files). This depots are used by the Techinal Publications group and they mostly deal with pdf, jpg, book etc binary files, so the depot is also full of binary files (total depot size is > 50 GB). And when they delete any file, and if they dont need those files in future, I think those files should be obliterated. 
   
  Pls let me know if I am not making sense ...
   
  Thanks
  Chirantan

Lee Marzke <lee at marzke.net> wrote:
  It's very uncommon to need to obliterate large number of files - the only
obliterates should be for rare accidents.

If your developers are checking in files to the wrong branch or locations,
I would investigate fixing that problem. Restrict check-in to valid 
locations.

If you are refactoring ( moving files and/or directories around ) you
should be doing this in a separate branch, and following the advice
in "Practical Perforce", on handling structural changes.

In short - your proposed solution of restricting delete - would only make
things worse for the developers. In reality, the real solution may involve
better training for your developers, or changing code line policies.

Why not explain your problem much more fully here, and let someone
help you out with a better solution.


Regards,

Lee Marzke

- C Saha - wrote:
> Hi All 
> 
> I want to keep a close watch to the perforce developers / users regarding file deletions. Users are deleting files using “Open for Delete” - > “Submit” and then they are not running “pr obliterate” to remove the file permanently. This is causing a big problem and we the depot now containing lost of unused files (and they will not use those files in future also). 
> 
> So I am planning to implement a trigger which will restrict the all the users to delete (p4 delete) any file. Only super users should be able to do that. 
> 
> Can anyone help me in doing this? 
>
>
> Thanks a lot to all in advance 
>
> ====================
> Thanks & Regards 
> CSaha
> 
> ---------------------------------
> Ring'em or ping'em. Make PC-to-phone calls as low as 1¢/min with Yahoo! Messenger with Voice.
> _______________________________________________
> perforce-user mailing list - perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user
> 

begin:vcard
fn:Lee Marzke
n:Marzke;Lee
email;internet:lee at marzke.net
tel;work:800 393 5217
tel;home:610 454 9354
version:2.1
end:vcard



		
---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.


More information about the perforce-user mailing list