-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi there,
received the attached patch via E-Mail from Joerg Schuberth, but don't have a Eclipse installed right now on my Netbook... Cheers, Bastian -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkrOBIsACgkQBqJW4lDO0YI/gQCgjrzBGRjTnC4Oa/GxOWWGz+H3 8rUAn3swpJnybvQLMwA4aR1Dr+pO1kkt =4rnI -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MercurialEclipse" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/mercurialeclipse?hl=en -~----------~----~----~----~------~----~------~--~---
# HG changeset patch # User [email protected] # Date 1254773147 -7200 # Node ID b3d4a80463687c142beadc5c204618030caea6a6 # Parent 4cabf7575ae1fac3a4979c28f4733759c22c13b8 statusBatchSize never should be 0 >> see stack trace java.lang.ArithmeticException: / by zero at com.vectrace.MercurialEclipse.team.cache.MercurialStatusCache.refreshStatus(MercurialStatusCache.java:912) at com.vectrace.MercurialEclipse.team.cache.MercurialStatusCache.access$0(MercurialStatusCache.java:889) at com.vectrace.MercurialEclipse.team.cache.MercurialStatusCache$ProjectUpdateJob.updateProject(MercurialStatusCache.java:132) at com.vectrace.MercurialEclipse.team.cache.MercurialStatusCache$ProjectUpdateJob.run(MercurialStatusCache.java:114) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) diff -r 4cabf7575ae1 -r b3d4a8046368 src/com/vectrace/MercurialEclipse/team/cache/MercurialStatusCache.java --- a/src/com/vectrace/MercurialEclipse/team/cache/MercurialStatusCache.java Mon Sep 14 21:23:24 2009 +0200 +++ b/src/com/vectrace/MercurialEclipse/team/cache/MercurialStatusCache.java Mon Oct 05 22:05:47 2009 +0200 @@ -535,9 +535,6 @@ * Refreshes local repository status and notifies the listeners about changes. No refresh of changesets. */ public void refreshStatus(final IResource res, IProgressMonitor monitor) throws HgException { - if(false && debug){ - new Exception("refreshStatus " + res).printStackTrace(); - } Assert.isNotNull(res); monitor = checkMonitor(monitor); monitor.subTask(Messages.mercurialStatusCache_Refreshing + res.getName()); @@ -1052,7 +1049,7 @@ // TODO: group batches by repo root statusBatchSize = store.getInt(MercurialPreferenceConstants.STATUS_BATCH_SIZE);// STATUS_BATCH_SIZE; - if (statusBatchSize < 0) { + if (statusBatchSize <= 0) { statusBatchSize = STATUS_BATCH_SIZE; MercurialEclipsePlugin.logWarning(Messages.mercurialStatusCache_BatchSizeForStatusCommandNotCorrect, null); }
