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.
Summary: | Some source file paths too long | ||
---|---|---|---|
Product: | www | Reporter: | Jesse Glick <jglick> |
Component: | Builds & Repositories | Assignee: | Jesse Glick <jglick> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | anebuzelsky, jskrivanek, ppis |
Priority: | P1 | Keywords: | UMBRELLA |
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://wiki.netbeans.org/wiki/view/HgMigration | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | 122541, 122542, 122543, 122544, 122545, 122546, 122547, 122548, 122549 | ||
Bug Blocks: |
Description
Jesse Glick
2007-11-21 19:57:49 UTC
For reference, found using command: find */.hg | ruby -n -e 'BEGIN {@trans={}; open("main/nbbuild/translations").each_line {|l| parts=l.chomp.split "//"; @trans[parts[1]] = parts[0]}}; if (!/^.{0,209}$/) then gsub!(/_([a-z_])/) {|c| $1.upcase}; gsub!(%r{^([a-z]+/)\.hg/store/data/(.+)/([^/]+)\.i$}) {|all| repo=$1; path=$2; file=$3; puts "#{@trans[repo + path]}/#{file}"}; end' | sort There is no exact maximum for CVS file lengths - problems will depend on the path length used for the root of a checkout, and the chars added by Hg will depend on the number of [A-Z_] in the path - but for the files that I filed bugs for it would be good to trim off at least 30-40 characters. In most cases the long files are tests whose names can simply be abbreviated, e.g. uml/core/test/unit/src/org/netbeans/modules/uml/core/reverseengineering/reintegration/umlparsingintegratortestcases/constructortest/ConstructorAttributeCallUsingThisKeywordTest.java could just as easily be named something like uml/core/test/unit/src/org/netbeans/modules/uml/core/reverseengineering/reintegration/umlparseintgtor/ctor/CtorAttrCallUsingThisKwdTest.java saving 41 characters. All fixed with the exception of 9 files in enterprise/openesbaddons/contrib-imola in CVS, which anyway go to the misc repo. Also have fixed import script to just skip over any files with paths too long (above 206 chars in store path) and produce a report about them. So good enough for now. Long Path Tool can be the best solution, I will say. |