Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 124323 - Optimization to HgCommand.getSingleStatus
Optimization to HgCommand.getSingleStatus
Product: versioncontrol
Classification: Unclassified
Component: Mercurial
Sun All
: P3 (vote)
: 6.x
Assigned To: issues@versioncontrol
Depends on:
  Show dependency treegraph
Reported: 2007-12-20 14:05 UTC by Padraig Obriain
Modified: 2008-01-09 08:15 UTC (History)
0 users

See Also:
Issue Type: DEFECT

proposed patch (1.72 KB, patch)
2008-01-08 16:21 UTC, Padraig Obriain
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Padraig Obriain 2007-12-20 14:05:11 UTC
In HgCommand.getSingleStatus there is a call to HgUtils.isIgnored. This occurs after a call to doSingleStatusCmd.

It looks to me that the call to HgUtils.isIgnored could be done before the call to doSingleStatusCnmd and so avoid the
exec call when HgUtils.isIgnored returns true.
Comment 1 Padraig Obriain 2008-01-08 16:21:06 UTC
Created attachment 54821 [details]
proposed patch
Comment 2 Padraig Obriain 2008-01-09 08:15:18 UTC
IDE: [1/9/08 8:12 AM] Committing "" started
Checking in;
/shared/data/ccvs/repository/versioncontrol/mercurial/src/org/netbeans/modules/mercurial/util/,v  <--
new revision: 1.64; previous revision: 1.63
IDE: [1/9/08 8:12 AM] Committing "" finished
IDE: [1/9/08 8:12 AM] Diffing finished

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo