]>
git.argeo.org Git - gpl/argeo-slc.git/blob - org/argeo/slc/deploy/VersioningDriver.java
1 package org
.argeo
.slc
.deploy
;
4 import java
.io
.OutputStream
;
7 /** Abstracts common versioning operations */
8 public interface VersioningDriver
{
9 public void getFileFromRepository(String repositoryBaseUrl
,
10 String location
, OutputStream out
);
12 public List
<String
> getChangedPaths(File repositoryRoot
, Long revision
);
14 public String
getRepositoryRoot(String repositoryUrl
);
16 public String
getRelativePath(String repositoryUrl
);
18 public void updateToHead(File fileOrDir
);
20 public void importFileOrDir(String repositoryUrl
, File fileOrDir
);
23 * Checks out or update this versioned directory
25 * @return true if the content has changed, false otherwise
27 public Boolean
checkout(String repositoryUrl
, File destDir
,
30 public void createRepository(String filePath
);
32 public void commit(File fileOrDir
, String commitMessage
);