mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
svn: Refactored SvnCheckinEnvironment - use common client factory model for file status detection
This commit is contained in:
@@ -366,26 +366,17 @@ public class SvnCheckinEnvironment implements CheckinEnvironment {
|
||||
@Nullable
|
||||
private SVNStatus getStatus(@NotNull File file) {
|
||||
SVNStatus result = null;
|
||||
WorkingCopyFormat format = mySvnVcs.getWorkingCopyFormat(file);
|
||||
|
||||
try {
|
||||
result = WorkingCopyFormat.ONE_DOT_EIGHT.equals(format) ? getStatusCommandLine(file) : getStatusSvnKit(file);
|
||||
result = mySvnVcs.getFactory(file).createStatusClient().doStatus(file, false);
|
||||
}
|
||||
catch (SVNException e) {
|
||||
// do nothing
|
||||
LOG.info(e);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
private SVNStatus getStatusSvnKit(File file) throws SVNException {
|
||||
return mySvnVcs.createStatusClient().doStatus(file, false);
|
||||
}
|
||||
|
||||
private SVNStatus getStatusCommandLine(File file) throws SVNException {
|
||||
return new SvnCommandLineStatusClient(mySvnVcs).doStatus(file, false);
|
||||
}
|
||||
|
||||
private static List<File> collectPaths(@NotNull List<Change> changes) {
|
||||
// case sensitive..
|
||||
Set<String> paths = ContainerUtil.newHashSet();
|
||||
|
||||
Reference in New Issue
Block a user