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 - Prevent ZIPs from being committed in Hg changesets
Summary: Prevent ZIPs from being committed in Hg changesets
Status: NEW
Alias: None
Product: www
Classification: Unclassified
Component: Builds & Repositories (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: pgebauer
URL:
Keywords: NO74, NO80, NO81
Depends on:
Blocks:
 
Reported: 2010-02-04 08:22 UTC by Jesse Glick
Modified: 2015-01-21 08:44 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.