This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 180288

Summary: Prevent ZIPs from being committed in Hg changesets
Product: www Reporter: Jesse Glick <jglick>
Component: Builds & RepositoriesAssignee: pgebauer <pgebauer>
Status: NEW ---    
Severity: normal CC: anebuzelsky, mmirilovic, pjiricka
Priority: P2 Keywords: NO74, NO80, NO81
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Jesse Glick 2010-02-04 08:22:22 UTC
Recent developer mistakes have involved accidentally committing quite large JAR files to repository history when they should have been taken from external binaries. Even if corrected in sources, the changesets continue to consume a lot of space in history that cannot be undone.

We should have a Mercurial hook preventing anyone from pushing any changeset containing a new or modified ZIP file. (Even if you need to store e.g. sample projects for tests, it is best to keep them unpackaged in the repo since that will compress much better and it is easier to follow modifications.)
Comment 1 pgebauer 2012-11-14 09:17:01 UTC
Based on code in the file http://hg.netbeans.org/nb-hooks/file/3101141d5868/forbid_external.py ,  I would say that all file with extension zip, jar, gz, bz2, gem and dll are forbidden to commit.

Could you please tell me what miss in the mentioned hook?
Comment 2 Jesse Glick 2012-12-03 18:32:49 UTC
(In reply to comment #1)
> Based on code in the file
> http://hg.netbeans.org/nb-hooks/file/3101141d5868/forbid_external.py ,  I would
> say that all file with extension zip, jar, gz, bz2, gem and dll are forbidden
> to commit.

Only in external/ or release/ dirs. The problem is ZIPs being committed from other places.