SVN: misleading "discovering location" due to not updated progress

This commit is contained in:
irengrig
2010-08-11 21:16:03 +04:00
parent 777824a3e5
commit 663fe159ce
@@ -317,7 +317,9 @@ public class SvnUtil {
public Collection<File> handleWorkingCopyRoot(File root, ProgressIndicator progress) {
final Collection<File> result = new HashSet<File>();
String oldText = null;
if (progress != null) {
oldText = progress.getText();
progress.setText(SvnBundle.message("progress.text.discovering.location", root.getAbsolutePath()));
}
try {
@@ -330,6 +332,9 @@ public class SvnUtil {
catch (SVNException e) {
//
}
if (progress != null) {
progress.setText(oldText);
}
return result;
}
}