action.working.copies.map.correct.warning.text=Some folders marked in 'Project Settings | Version Control' as under Subversion control,\n\
are unversioned (Versioned folders may be under them).\n\
You can use 'Correct Roots' button to perform auto correction.
-action.Subversion.properties.diff.name=Properties Diff
action.Subversion.properties.difference.diff.title=Subversion properties difference: {0}
action.Subversion.properties.difference.diff.for.move.title=Subversion properties difference: {0} -> {1}
message.Subversion.files.can.not.be.added.to.subversion.are.not.under.working.copy.text=File(s) {0} can not be added to Subversion control since they are not under working copy.
import com.intellij.vcsUtil.VcsUtil;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
-import org.jetbrains.idea.svn.actions.AbstractShowPropertiesDiffAction;
import org.jetbrains.idea.svn.api.NodeKind;
import org.jetbrains.idea.svn.branchConfig.SvnBranchConfigurationManager;
import org.jetbrains.idea.svn.history.SimplePropertyRevision;
import org.jetbrains.idea.svn.info.Info;
-import org.jetbrains.idea.svn.properties.PropertyData;
import org.jetbrains.idea.svn.status.Status;
import org.jetbrains.idea.svn.status.StatusType;
import org.tmatesoft.svn.core.SVNException;
import java.util.List;
import java.util.Map;
+import static org.jetbrains.idea.svn.actions.ShowPropertiesDiffAction.getPropertyList;
+
class SvnChangeProviderContext implements StatusReceiver {
private static final Logger LOG = Logger.getInstance("org.jetbrains.idea.svn.SvnChangeProviderContext");
ContentRevision contentRevision = isBeforeRevision ? change.getBeforeRevision() : change.getAfterRevision();
SVNRevision revision = isBeforeRevision ? SVNRevision.BASE : SVNRevision.WORKING;
- return new SimplePropertyRevision(getProperties(file, revision), path, getRevisionNumber(contentRevision));
+ return new SimplePropertyRevision(getPropertyList(myVcs, file, revision), path, getRevisionNumber(contentRevision));
}
@Nullable
}
@NotNull
- private List<PropertyData> getProperties(@NotNull File file, @NotNull SVNRevision revision) throws SVNException {
- return AbstractShowPropertiesDiffAction.getPropertyList(myVcs, file, revision);
- }
-
- @NotNull
private ConflictState getState(@Nullable Status svnStatus) {
ConflictState result = svnStatus != null ? ConflictState.from(svnStatus) : ConflictState.none;
import static com.intellij.util.ObjectUtils.notNull;
import static com.intellij.util.containers.ContainerUtil.exists;
-public abstract class AbstractShowPropertiesDiffAction extends AnAction implements DumbAware {
- protected AbstractShowPropertiesDiffAction(String name) {
- super(name);
- }
+public class ShowPropertiesDiffAction extends AnAction implements DumbAware {
@Override
public void update(@NotNull AnActionEvent e) {
import com.intellij.openapi.vcs.history.VcsRevisionNumber;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
-import org.jetbrains.idea.svn.actions.AbstractShowPropertiesDiffAction;
import org.jetbrains.idea.svn.properties.PropertyData;
import java.util.List;
+import static org.jetbrains.idea.svn.actions.ShowPropertiesDiffAction.toSortedStringPresentation;
+
public class SimplePropertyRevision implements ContentRevision, PropertyRevision {
private final List<PropertyData> myProperty;
private final FilePath myNewFilePath;
@Nullable
public String getContent() {
- return AbstractShowPropertiesDiffAction.toSortedStringPresentation(myProperty);
+ return toSortedStringPresentation(myProperty);
}
@NotNull
import org.jetbrains.idea.svn.SvnBundle;
import org.jetbrains.idea.svn.SvnRevisionNumber;
import org.jetbrains.idea.svn.SvnVcs;
-import org.jetbrains.idea.svn.actions.AbstractShowPropertiesDiffAction;
import org.jetbrains.idea.svn.properties.PropertyData;
import org.tmatesoft.svn.core.SVNURL;
import java.util.List;
+import static org.jetbrains.idea.svn.actions.ShowPropertiesDiffAction.getPropertyList;
+import static org.jetbrains.idea.svn.actions.ShowPropertiesDiffAction.toSortedStringPresentation;
+
public class SvnLazyPropertyContentRevision extends SvnBaseContentRevision implements MarkerVcsContentRevision, PropertyRevision {
private final VcsRevisionNumber myNumber;
private final SVNURL myUrl;
@Override
public String getContent() throws VcsException {
- return AbstractShowPropertiesDiffAction.toSortedStringPresentation(getProperties());
+ return toSortedStringPresentation(getProperties());
}
private List<PropertyData> loadContent() throws VcsException {
final Ref<VcsException> exceptionRef = new Ref<>();
final Runnable runnable = () -> {
try {
- ref.set(AbstractShowPropertiesDiffAction.getPropertyList(myVcs, myUrl, ((SvnRevisionNumber)myNumber).getRevision()));
+ ref.set(getPropertyList(myVcs, myUrl, ((SvnRevisionNumber)myNumber).getRevision()));
}
catch (VcsException e) {
exceptionRef.set(e);