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 168155 - Can not handle many files and wrong error dialog
Summary: Can not handle many files and wrong error dialog
Status: VERIFIED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Mercurial (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@versioncontrol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-06 05:02 UTC by Masaki Katakai
Modified: 2009-08-03 06:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
error dialog (38.69 KB, image/png)
2009-07-06 05:02 UTC, Masaki Katakai
Details
log file but only SEVERE line in output (4.37 KB, application/x-compressed)
2009-07-21 09:44 UTC, Masaki Katakai
Details
Screenshot attached... (15.10 KB, image/png)
2009-07-21 10:47 UTC, Jaromir Uhrik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Masaki Katakai 2009-07-06 05:02:01 UTC
It looks NetBeans can not handle a lot of files in mercurial. When I tried to
commit a lot of files, the following error happens.

SEVERE [org.netbeans.modules.mercurial]: execEnv():  execEnv(): IOException java.io.IOException: Cannot run program
"/usr/local/bin/hg": error=7, Argument list too long

Another problem is that error dialog is not correct by this error.
It says "Mercurial could not found".
Comment 1 Masaki Katakai 2009-07-06 05:02:52 UTC
Created attachment 84385 [details]
error dialog
Comment 2 Ondrej Vrabec 2009-07-20 13:20:35 UTC
How many is 'a lot of files'? I am trying to fix this, but i see the problem somewhere around 100 000 files on my
system. But i don't want to believe that you are trying that since with so many files the mercurial module (especially
it's cache) gets so slow that the IDE becomes unusable anyway.

Could you please attach the message log (for some system settings and so that i can exactly what command is failing -
add or commit)?
Comment 3 Masaki Katakai 2009-07-21 09:42:27 UTC
Hi Ondrej,

I tried the latest 6.7.1 FCS build.

 Product Version: NetBeans IDE 6.7.1 (Build 200907202301)
 Java: 1.6.0_13; Java HotSpot(TM) 64-Bit Server VM 11.3-b02-83
 System: Mac OS X version 10.5.7 running on x86_64; SJIS; en (nb)

% hg --version
Mercurial Distributed SCM (version 1.0.2)

I'm working on localization and I'm encountering this issue
when I handle many localized files. It's easy to reproduce,

1. hg clone http://hg.netbeans.org/main/l10n
2. cd l10n/src
3. cp -r ja ja2
4. Start NetBeans
5. Try to commit all files under ja2 on NetBeans.
   ja2 contains 7003 files.



Comment 4 Masaki Katakai 2009-07-21 09:44:35 UTC
Created attachment 84978 [details]
log file but only SEVERE line in output
Comment 5 Jaromir Uhrik 2009-07-21 10:46:28 UTC
My setup is:
Product Version: NetBeans IDE Dev (Build 200907200201)
Java: 1.5.0_19; Java HotSpot(TM) Client VM 1.5.0_19-137
System: Mac OS X version 10.5.7 running on i386; MacRoman; en_US (nb)
Mercurial Distributed SCM (version 1.1.1+20081229)

I get the different exception dialog when tried to reproduce the steps above - see attached screenshot.
The output window in NetBeans contains following commit messages:

Mercurial Commit
----------------
cmd line args test
INFO: End of Commit
Comment 6 Jaromir Uhrik 2009-07-21 10:47:04 UTC
Created attachment 84987 [details]
Screenshot attached...
Comment 7 Ondrej Vrabec 2009-07-21 14:32:16 UTC
so, i hope this will help: cdev #aae93a8dd92e
you will get a confirmation dialog (when committing too many files). If you confirm that dialog, the whole folder will
be committed recursively, meaning all hg-tracked files under it will be committed. But note that also excluded files
will be committed (thats why a confirmation will be needed)
Comment 8 Quality Engineering 2009-07-23 07:50:17 UTC
Integrated into 'main-golden', will be available in build *200907230201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/aae93a8dd92e
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: #168155 - Can not handle many files and wrong error dialog
remove done in loop, commit exceeding max command line size is done recursively on roots
Comment 9 Masaki Katakai 2009-08-03 06:56:43 UTC
Great! It looks working properly on build 200908021401.