Skip to content

Commit d4fb584

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 33c5b0e + 04c31c9 commit d4fb584

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
scm4j-vcs-api is set of base classes and interfaces to build VCS support (Git, SVN, etc) libraries which exposes basic vcs-related operations: merge, branch create etc.
77
scm4j-vcs-api provides:
88
- A simple interface to implement basic VCS-related operations
9-
- Set of functional tests which are common to each VCS implementation. Functional tests for a certain VCS implementation are done by implementing few abstract methods of base test class. Implemented in [scm4j-vcs-test](https://github.com/scm4j/scm4j-vcs-test)
9+
- Set of functional tests wchich are common to each VCS implementation. Functional tests for a certain VCS implementation are done by implementing few abstract methods of base test class. Implemented in [scm4j-vcs-test](https://github.com/scm4j/scm4j-vcs-test)
1010
- Working copy management for operations which must be executed on local file system
1111

1212
# Terms
@@ -71,16 +71,15 @@ Note: null passed as a branch name is considered as Master Branch. Any non-null
7171
- Creates the file and its parent folders if doesn't exists
7272
- `List<VCSDiffEntry> getBranchesDiff(String srcBranchName, String destBranchName)`
7373
- Returns list of `VCSDiffEntry` showing what was made within branch `srcBranchName` relative to branch `destBranchName`
74-
- Note: result is a commit which would be made on merging the branch `srcBranchName` into `destBranchName`
74+
- Note: result could be considered as a commit which would be made on merging the branch `srcBranchName` into `destBranchName`
7575
- `Set<String> getBranches()`
7676
- Returns list of names of all branches. Branches here are considered as user-created branches and Master Branch. I.e. any branch for Git, "Trunk" and any branch within "Branches" branch (not "Tags" branches) for SVN etc
7777
- `List<String> getCommitMessages(Sting branchName, Integer limit)`
7878
- Returns list of commit messages of branch `branchName` limited by `limit` in descending order
7979
- `String getVCSTypeString`
8080
- Returns short name of current IVCS implementation: "git", "svn" etc
8181
- `VCSCommit removeFile(String branchName, String filePath, String commitMessage)`
82-
- Removes the file located by `filePath` within branch `branchName`. Operation is executed as separate commit with `commitMessage` message attached. Note: filePath = "folder\file.txt" -> file.txt is removed, folder is kept
83-
- Returns commit id (hash, revision number etc)
82+
- Removes the file with path `filePath` within branch `branchName`. Operation is executed as separate commit with `commitMessage` message attached. Note: filePath = "folder\file.txt" -> file.txt is removed, folder is kept
8483
- `List<VCSCommit> getCommitsRange(String branchName, String firstCommitId, String untilCommitId)`
8584
- Returns ordered list of all commits located between commits specified by `firstCommitId` and `untilCommitId` inclusively within branch `branchName`
8685
- If `firstCommitId` is null then all commits until commit specified by `untilCommitId` inclusively are fetched
@@ -89,9 +88,9 @@ Note: null passed as a branch name is considered as Master Branch. Any non-null
8988
- Returns ordered list of `limit` commits (0 is unlimited) starting from commit specified by `firstCommitId` in direction specified by `direction`
9089
- If `firstCommitId` is null then commits are starting at branch `branchName` first commit (for ASC direction) or at head of branch (for DESC direction)
9190
- `VCSCommit getHeadCommit(String branchName)`
92-
- Returns `VCSCommit` instance which points to the head (last) commit of the branch `branchName`
91+
- Returns `VCSCommit` instance pointing to the head (last) commit of the branch `branchName`
9392
- `Boolean fileExists(String branchName, String filePath)`
94-
- Returns true if file with path `filePath` exist in repository in branch `branchName`, false otherwise
93+
- Returns true if the file with path `filePath` exists in repository in branch `branchName`, false otherwise
9594

9695
# Using Locked Working Copy
9796
Let's assume we developing a multiuser server which has ability to merge branches of user's repositories. So few users could request to merge theirs branches of different repositories simultaneously. For example, Git merge operation consists of few underlying operations (check in\out, merge itself, push) which must be executed on a local file system in a certain folder. So we have following requirements:
@@ -194,7 +193,7 @@ Lock way: `new FileOutputStream(lockFile, false).getChannel.lock()`
194193
- Throw exceptions from scm4j.vcs.api.exceptions package. Abstract Test checks throwning of these exceptions.
195194
- Implement functional tests
196195
- Create VCSAbstractTest subclass within test package, implement all abstract methods
197-
- Normally test class should not include any test, just @After\@Before methods. All necessary functional testing is implemented within VCSAbstractTest
196+
- Normally test class should not include any test, just @After and @Before methods. All necessary functional testing is implemented within VCSAbstractTest
198197
- See [scm4j-vcs-test](https://github.com/scm4j/scm4j-vcs-test) for details
199198
- Example of gradle usage to export IVCS implementation, its sources and javadoc as separate single JARs:
200199
```gradle

0 commit comments

Comments
 (0)