Class PersonalPatchUtil
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.personal.PersonalPatchUtil
-
public class PersonalPatchUtil extends Object
Created by IntelliJ IDEA. User: Eugene.Petrenko Date: 17.07.2007 Time: 15:44:44
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PersonalPatchUtil
createWithLogging(VcsManager vcsManager, Collection<VcsRootInstanceEntry> entries, PatchMapLogger logger)
static PersonalPatchUtil
createWithoutLogging(VcsManager vcsManager, Collection<VcsRootInstanceEntry> entries)
Use this constructor if PatchMapLogger is not required.Collection<VcsRootInstanceEntry>
findApplicable(Collection<String> personalChangeFilePaths, boolean considerVcsRootParents)
static Set<String>
getVcsNames(Collection<String> paths)
boolean
isApplicable(Collection<String> personalChangeFilePaths, boolean considerVcsRootParents)
static boolean
isApplyChangeWhenVCSUnknown()
String
mapPath(String fullPath)
PathMapping
mapPathEx(String fullPath)
-
-
-
Method Detail
-
createWithLogging
public static PersonalPatchUtil createWithLogging(@NotNull VcsManager vcsManager, @NotNull Collection<VcsRootInstanceEntry> entries, @NotNull PatchMapLogger logger)
-
createWithoutLogging
public static PersonalPatchUtil createWithoutLogging(@NotNull VcsManager vcsManager, @NotNull Collection<VcsRootInstanceEntry> entries)
Use this constructor if PatchMapLogger is not required. In this case mapping will be done faster, see implementation for details.- Parameters:
vcsManager
-entries
-
-
findApplicable
@NotNull public Collection<VcsRootInstanceEntry> findApplicable(@NotNull Collection<String> personalChangeFilePaths, boolean considerVcsRootParents)
- Returns:
- only those VcsRootInstanceEntries (see constructor), which are affected by at least one of personalChangeFilePaths
-
isApplicable
public boolean isApplicable(Collection<String> personalChangeFilePaths, boolean considerVcsRootParents)
- Returns:
- true if at least one path from personalChangeFilePaths can affect at least one VcsEntry associated with this object
-
isApplyChangeWhenVCSUnknown
public static boolean isApplyChangeWhenVCSUnknown()
-
mapPath
@Nullable public String mapPath(String fullPath) throws PersonalPatchFullPathParseException
- Parameters:
fullPath
-- Returns:
- mapped path or null if that path should not exists in the resulting patch
- Throws:
PersonalPatchFullPathParseException
-
mapPathEx
@Nullable public PathMapping mapPathEx(String fullPath) throws PersonalPatchFullPathParseException
- Parameters:
fullPath
-- Returns:
- mapped path or null if that path should not exists in the resulting patch
- Throws:
PersonalPatchFullPathParseException
-
getVcsNames
@NotNull public static Set<String> getVcsNames(@NotNull Collection<String> paths)
-
-