public abstract class AbstractVcs extends StartedActivated
ProjectLevelVcsManager| Modifier and Type | Class and Description |
|---|---|
static interface |
AbstractVcs.RootsConvertor |
| Modifier and Type | Field and Description |
|---|---|
protected Project |
myProject |
protected static java.lang.String |
ourIntegerPattern |
| Constructor and Description |
|---|
AbstractVcs(Project project,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate() |
boolean |
allowsNestedRoots() |
boolean |
allowsRemoteCalls(VirtualFile file) |
boolean |
areDirectoriesVersionedItems() |
boolean |
arePartialChangelistsSupported() |
protected CheckinEnvironment |
createCheckinEnvironment()
creates the object for performing checkin / commit / submit operations.
|
VcsRootSettings |
createEmptyVcsRootSettings() |
protected static VcsKey |
createKey(java.lang.String name) |
protected RollbackEnvironment |
createRollbackEnvironment()
Returns the interface for performing revert / rollback operations.
|
protected UpdateEnvironment |
createUpdateEnvironment()
Returns the interface for performing update/sync operations.
|
protected void |
deactivate() |
void |
enableIntegration()
This method is called when user invokes "Enable VCS Integration" and selects a particular VCS.
|
boolean |
equals(java.lang.Object o) |
boolean |
fileExistsInVcs(FilePath path)
Returns true if the specified file path represents a file which exists in the VCS repository (is neither
unversioned nor scheduled for addition).
|
static boolean |
fileInVcsByFileStatus(Project project,
FilePath path) |
static boolean |
fileInVcsByFileStatus(Project project,
VirtualFile file) |
boolean |
fileIsUnderVcs(FilePath filePath)
Deprecated.
Use
VcsRootChecker instead. |
boolean |
fileListenerIsSynchronous() |
<S> java.util.List<S> |
filterUniqueRoots(java.util.List<S> in,
java.util.function.Function<? super S,? extends VirtualFile> convertor)
Deprecated.
|
AnnotationProvider |
getAnnotationProvider() |
CachingCommittedChangesProvider |
getCachingCommittedChangesProvider() |
ChangeProvider |
getChangeProvider() |
CheckinEnvironment |
getCheckinEnvironment()
Returns the interface for performing checkin / commit / submit operations.
|
CheckoutProvider |
getCheckoutProvider() |
java.util.List<CommitExecutor> |
getCommitExecutors() |
CommittedChangesProvider |
getCommittedChangesProvider() |
abstract Configurable |
getConfigurable() |
VcsConfiguration |
getConfiguration() |
AbstractVcs.RootsConvertor |
getCustomConvertor() |
DiffProvider |
getDiffProvider() |
abstract java.lang.String |
getDisplayName()
Returns the name of the VCS as it should be displayed in the UI.
|
EditFileProvider |
getEditFileProvider()
Returns the interface for performing check out / edit file operations.
|
UpdateEnvironment |
getIntegrateEnvironment()
Returns the interface for performing integrate operations (merging changes made in another branch of
the project into the current working copy).
|
VcsKey |
getKeyInstanceMethod() |
java.lang.String |
getMenuItemText() |
MergeProvider |
getMergeProvider()
Returns the implementation of the merge provider which is used to load the revisions to be merged
for a particular file.
|
java.lang.String |
getName() |
VcsOutgoingChangesProvider<CommittedChangeList> |
getOutgoingChangesProvider() |
protected VcsOutgoingChangesProvider<CommittedChangeList> |
getOutgoingProviderImpl() |
Project |
getProject() |
FileStatus[] |
getProvidedStatuses() |
RemoteDifferenceStrategy |
getRemoteDifferenceStrategy() |
java.lang.String |
getRevisionPattern() |
RevisionSelector |
getRevisionSelector()
Returns the interface for selecting file version numbers.
|
RollbackEnvironment |
getRollbackEnvironment() |
UnnamedConfigurable |
getRootConfigurable(VcsDirectoryMapping mapping)
Returns the configurable to be shown in the VCS directory mapping dialog which should be displayed
for configuring VCS-specific settings for the specified root, or null if no such configuration is required.
|
java.lang.String |
getShortName()
Returns the short or abbreviated name of this VCS, which name can be used in those places in the UI where the space is limited.
|
UpdateEnvironment |
getStatusEnvironment()
Returns the interface for performing "check status" operations (operations which show the differences between
the local working copy state and the latest server state).
|
TransactionProvider |
getTransactionProvider() |
TreeDiffProvider |
getTreeDiffProvider() |
protected TreeDiffProvider |
getTreeDiffProviderImpl() |
VcsType |
getType() |
UpdateEnvironment |
getUpdateEnvironment() |
VcsHistoryProvider |
getVcsBlockHistoryProvider() |
VcsExceptionsHotFixer |
getVcsExceptionsHotFixer() |
VcsHistoryProvider |
getVcsHistoryProvider() |
int |
hashCode() |
boolean |
isTrackingUnchangedContent() |
boolean |
isVcsBackgroundOperationsAllowed(VirtualFile root)
Can be temporarily forbidden, for instance, when authorization credentials are wrong - to
don't repeat wrong credentials passing (in some cases it can produce user's account blocking)
|
boolean |
isVersionedDirectory(VirtualFile dir)
Deprecated.
Use
VcsRootChecker instead. |
CommittedChangeList |
loadRevisions(VirtualFile vf,
VcsRevisionNumber number) |
void |
loadSettings() |
boolean |
markExternalChangesAsUpToDate() |
ThreeState |
mayRemoveChangeList(LocalChangeList list,
boolean explicitly)
Invoked when a changelist is deleted explicitly by user or implicitly (e.g.
|
boolean |
needsCaseSensitiveDirtyScope() |
boolean |
needsLegacyDefaultMappings()
This switch disables platform support for "default mapping" aka "<Project>".
|
VcsRevisionNumber |
parseRevisionNumber(java.lang.String revisionNumberString) |
VcsRevisionNumber |
parseRevisionNumber(java.lang.String revisionNumberString,
FilePath path)
For some version controls (like Git) the revision parsing is dependent
on the the specific repository instance since the the revision number
returned from this method is later used for comparison information.
|
void |
setCheckinEnvironment(CheckinEnvironment checkinEnvironment) |
void |
setRollbackEnvironment(RollbackEnvironment rollbackEnvironment) |
void |
setUpdateEnvironment(UpdateEnvironment updateEnvironment) |
void |
setupEnvironments() |
protected void |
shutdown() |
protected void |
start() |
java.lang.String |
toString() |
doActivate, doDeactivate, doShutdown, doStartprotected static final java.lang.String ourIntegerPattern
protected final Project myProject
public AbstractVcs(Project project, java.lang.String name)
protected void start()
throws VcsException
start in class StartedActivatedVcsExceptionprotected void shutdown()
throws VcsException
shutdown in class StartedActivatedVcsExceptionprotected void activate()
activate in class StartedActivatedprotected void deactivate()
deactivate in class StartedActivatedpublic final java.lang.String getName()
public abstract java.lang.String getDisplayName()
getShortName()public java.lang.String getShortName()
getDisplayName().public abstract Configurable getConfigurable()
public TransactionProvider getTransactionProvider()
public ChangeProvider getChangeProvider()
public final VcsConfiguration getConfiguration()
public EditFileProvider getEditFileProvider()
public boolean markExternalChangesAsUpToDate()
protected CheckinEnvironment createCheckinEnvironment()
public CheckinEnvironment getCheckinEnvironment()
protected RollbackEnvironment createRollbackEnvironment()
public RollbackEnvironment getRollbackEnvironment()
public VcsHistoryProvider getVcsHistoryProvider()
public VcsHistoryProvider getVcsBlockHistoryProvider()
public java.lang.String getMenuItemText()
protected UpdateEnvironment createUpdateEnvironment()
public UpdateEnvironment getUpdateEnvironment()
@Deprecated public boolean fileIsUnderVcs(FilePath filePath)
VcsRootChecker instead.filePath - the path to check.public boolean fileExistsInVcs(FilePath path)
path - the path to check.public void enableIntegration()
<Project> -> selected VCS.public ThreeState mayRemoveChangeList(LocalChangeList list, boolean explicitly)
list - change list that's about to be removedexplicitly - whether it's a result of explicit Delete action, or just after switching the active changelist.public boolean isTrackingUnchangedContent()
public static boolean fileInVcsByFileStatus(Project project, VirtualFile file)
public UpdateEnvironment getStatusEnvironment()
public AnnotationProvider getAnnotationProvider()
public DiffProvider getDiffProvider()
public void loadSettings()
public FileStatus[] getProvidedStatuses()
public RevisionSelector getRevisionSelector()
public UpdateEnvironment getIntegrateEnvironment()
public CommittedChangesProvider getCommittedChangesProvider()
public final CachingCommittedChangesProvider getCachingCommittedChangesProvider()
public VcsRevisionNumber parseRevisionNumber(java.lang.String revisionNumberString, FilePath path) throws VcsException
parseRevisionNumber(String).
The client code should invoke this method, if it expect ordering information
from revision numbers.revisionNumberString - the string to be parsedpath - the path for which revision number is queriedVcsExceptionpublic VcsRevisionNumber parseRevisionNumber(java.lang.String revisionNumberString) throws VcsException
VcsExceptionpublic java.lang.String getRevisionPattern()
@Deprecated public boolean isVersionedDirectory(VirtualFile dir)
VcsRootChecker instead.dir - the directory to check.true if directory is managed by this VCSpublic UnnamedConfigurable getRootConfigurable(VcsDirectoryMapping mapping)
VcsDirectoryMapping.getRootSettings().mapping - the mapping being configuredpublic VcsRootSettings createEmptyVcsRootSettings()
public AbstractVcs.RootsConvertor getCustomConvertor()
public boolean needsLegacyDefaultMappings()
If enabled, platform will do nothing. All roots from DefaultVcsRootPolicy will be registered as vcs root.
Vcs can try using AbstractVcs.RootsConvertor to process roots itself.
If disabled, platform will use VcsRootChecker or VcsEP.administrativeAreaName to find actual vcs roots.
If vcs does not implement these EP, no vcs roots will be registered for "default mapping".
ProjectLevelVcsManager,
NewMappingspublic MergeProvider getMergeProvider()
public boolean allowsNestedRoots()
@Deprecated
public <S> java.util.List<S> filterUniqueRoots(java.util.List<S> in,
java.util.function.Function<? super S,? extends VirtualFile> convertor)
public VcsExceptionsHotFixer getVcsExceptionsHotFixer()
public Project getProject()
protected static VcsKey createKey(java.lang.String name)
public final VcsKey getKeyInstanceMethod()
public VcsType getType()
protected VcsOutgoingChangesProvider<CommittedChangeList> getOutgoingProviderImpl()
public final VcsOutgoingChangesProvider<CommittedChangeList> getOutgoingChangesProvider()
public RemoteDifferenceStrategy getRemoteDifferenceStrategy()
public boolean areDirectoriesVersionedItems()
protected TreeDiffProvider getTreeDiffProviderImpl()
public TreeDiffProvider getTreeDiffProvider()
public java.util.List<CommitExecutor> getCommitExecutors()
public boolean isVcsBackgroundOperationsAllowed(VirtualFile root)
public boolean allowsRemoteCalls(VirtualFile file)
public void setCheckinEnvironment(CheckinEnvironment checkinEnvironment)
public void setUpdateEnvironment(UpdateEnvironment updateEnvironment)
public void setRollbackEnvironment(RollbackEnvironment rollbackEnvironment)
public void setupEnvironments()
public CommittedChangeList loadRevisions(VirtualFile vf, VcsRevisionNumber number)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean fileListenerIsSynchronous()
public boolean arePartialChangelistsSupported()
public CheckoutProvider getCheckoutProvider()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean needsCaseSensitiveDirtyScope()