|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
package com.fr.design.mainframe.vcs.common; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.fr.base.extension.FileExtension; |
|
|
|
|
import com.fr.concurrent.NamedThreadFactory; |
|
|
|
|
import com.fr.design.DesignerEnvManager; |
|
|
|
|
import com.fr.design.file.HistoryTemplateListCache; |
|
|
|
@ -135,6 +136,9 @@ public class VcsHelper implements JTemplateActionListener {
|
|
|
|
|
public void run() { |
|
|
|
|
|
|
|
|
|
String fileName = getEditingFilename(); |
|
|
|
|
if (FileExtension.VIS.matchExtension(fileName)) { // fvs文件先不做版本控制
|
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
VcsOperator operator = WorkContext.getCurrent().get(VcsOperator.class); |
|
|
|
|
VcsEntity entity = operator.getFileVersionByIndex(fileName, 0); |
|
|
|
|
int latestFileVersion = 0; |
|
|
|
|