Package fr.ifremer.isisfish.vcs
Class VCSNone
java.lang.Object
fr.ifremer.isisfish.vcs.AbstractVCS
fr.ifremer.isisfish.vcs.VCSNone
- All Implemented Interfaces:
VCS
,FileFilter
VCSNone (svn or vcs) must extends this class. This class can be used as dummy
VCSNone if not valid VCSNone found.
- Version:
- $Revision$ Last update : $Date$ By : $Author$
- Author:
- poussin
-
Nested Class Summary
Nested classes/interfaces inherited from interface fr.ifremer.isisfish.vcs.VCS
VCS.Status
-
Field Summary
Fields inherited from class fr.ifremer.isisfish.vcs.AbstractVCS
host, listeners, localRepository, login, password, path, protocol, sshKeyFile, writeable
Fields inherited from interface fr.ifremer.isisfish.vcs.VCS
TYPE_CVS, TYPE_NONE, TYPE_SVN, VCS_HOST_NAME, VCS_PATH, VCS_PROTOCOL, VCS_TYPE, VCS_USER_NAME, VCS_USER_PASSWORD
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add and commit file in server repositoryVerifie si tous les fichiers du repository local sont les dernieres version par rapport au serveur.void
checkout
(org.nuiton.version.Version tag, boolean b) Get repository module on server and put it in destDir.void
Verifie la connexion et si le protocole a change, switch le repository pour utiliser le nouveau protocole.void
Cleanup a directory, removing all lock.void
Commit specified files, if files is null, all files are committed.void
Delete and commit files in server repositorygetChanglog
(List<File> files) Return all changelog between local file version and remote repository file versionShow diff between local file and repository file.getFileList
(File directory) Return list of all file on directory on remote server.getLocalStatus
(File file) Get file local status.getTag()
Retourne le tag reellement utilise, par exemple si on a fait un setTag(3.2.0) cette methode retourne "/tags/3.2.0", pour setTag(null) on retourne "/trunk"get list of new or modified files on serverboolean
Ask if there are some new or modified files on serverboolean
Get connection state.boolean
isOnRemote
(File file) Check if file is available on serverboolean
isTag
(org.nuiton.version.Version version) look on server if version is tag repositoryboolean
isUpToDate
(File file) Check if file is uptodateboolean
Return true, if local repository is valid repository for actual vcs.boolean
Return true, if local repository is writable.setTag
(org.nuiton.version.Version version) Change repository tag, used when we use some tag and we want to go to trunk.Update fileMethods inherited from class fr.ifremer.isisfish.vcs.AbstractVCS
accept, addVetoableActionListener, fireAction, getHost, getLocalRepository, getLogin, getPassword, getPath, getProtocol, getSshKeyFile, isVersionnableFile, remoteVetoableActionListener, setHost, setLocalRepository, setLogin, setPassword, setPath, setProtocol, setSshKeyFile, setWriteable
-
Constructor Details
-
VCSNone
-
-
Method Details
-
isValidLocalRepository
public boolean isValidLocalRepository()Description copied from interface:VCS
Return true, if local repository is valid repository for actual vcs.- Returns:
- validity
-
isTag
look on server if version is tag repository- Parameters:
version
- version number like 3.2- Returns:
- true if tag found with this name
- Throws:
VCSException
-
haveUpdate
Ask if there are some new or modified files on server- Returns:
- true if new file available
- Throws:
VCSException
-
getUpdatedFile
get list of new or modified files on server- Returns:
- list of modified or new files
- Throws:
VCSException
-
getChanglog
Return all changelog between local file version and remote repository file version- Parameters:
files
-- Returns:
- changelog for each file
-
cleanup
Description copied from interface:VCS
Cleanup a directory, removing all lock.- Parameters:
path
- path to cleanup- Throws:
VCSException
-
commit
Description copied from interface:VCS
Commit specified files, if files is null, all files are committed.- Parameters:
files
- files to commitmsg
- message used to commit- Throws:
VCSException
-
add
Add and commit file in server repository- Parameters:
files
- list of file to addmsg
- message for commit- Throws:
VCSException
-
checkout
Get repository module on server and put it in destDir.- Parameters:
tag
- destination directoryb
-- Throws:
VCSException
-
delete
Delete and commit files in server repository- Parameters:
files
- file to deletemsg
- message for commit- Throws:
VCSException
-
getDiff
Show diff between local file and repository file.- Parameters:
file
-- Returns:
- diff
- Throws:
VCSException
-
getLocalStatus
Description copied from interface:VCS
Get file local status.- Parameters:
file
- file to get status- Returns:
- file status
- Throws:
VCSException
-
getFileList
Return list of all file on directory on remote server.- Parameters:
directory
-- Returns:
- files list
- Throws:
VCSException
-
isConnected
public boolean isConnected()Get connection state.- Returns:
- true if server is connected
-
isOnRemote
Check if file is available on server- Parameters:
file
- file to check- Returns:
- true if file available
- Throws:
VCSException
-
isUpToDate
Check if file is uptodate- Parameters:
file
- file to check- Returns:
- true if file is in last version
- Throws:
VCSException
-
update
Update file- Parameters:
file
- file to update- Returns:
- true if there are some merging conflict, false otherwise
- Throws:
VCSException
-
checkProtocol
Description copied from interface:VCS
Verifie la connexion et si le protocole a change, switch le repository pour utiliser le nouveau protocole. Si on est en mode interface (mode graphique) et que le switch se passe mal, demande a l'utilisateur de nouvelle valeur pour le protocole (+ identifiant, ...)- Throws:
VCSException
-
checkFileStatus
Description copied from interface:VCS
Verifie si tous les fichiers du repository local sont les dernieres version par rapport au serveur. Si ce n'est pas le cas et que l'on est en mode interactif (mode graphique), on lui propose de mettre a jour les fichiers, avec la possibilite de voir les changements sur les fichiers- Returns:
- list of file with unresolved conflict
- Throws:
VCSException
-
isWriteable
Description copied from interface:VCS
Return true, if local repository is writable. (use trunk and is not anonymous)- Returns:
- writable
- Throws:
VCSException
-
setTag
Description copied from interface:VCS
Change repository tag, used when we use some tag and we want to go to trunk.- Parameters:
version
- version to go, if null trunk is used, otherwize tags/version is used- Returns:
- a list of all file in conflict
- Throws:
VCSException
-
getTag
Description copied from interface:VCS
Retourne le tag reellement utilise, par exemple si on a fait un setTag(3.2.0) cette methode retourne "/tags/3.2.0", pour setTag(null) on retourne "/trunk"- Returns:
- tag
- Throws:
VCSException
-