mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-01 11:05:56 +01:00
Fix concurrent modification in SVN modify command (#1849)
This commit is contained in:
@@ -82,7 +82,7 @@ public class SvnModifyCommand implements ModifyCommand {
|
||||
|
||||
private String getCurrentRevision(SVNClientManager clientManager, WorkingCopy<File, File> workingCopy) {
|
||||
try {
|
||||
return Integer.toString(clientManager.getStatusClient().doStatus(workingCopy.getWorkingRepository(), false).getRevision().getID());
|
||||
return Long.toString(clientManager.getStatusClient().doStatus(workingCopy.getWorkingRepository(), false).getRevision().getNumber());
|
||||
} catch (SVNException e) {
|
||||
throw new InternalRepositoryException(entity(repository), "Could not read status of working repository", e);
|
||||
}
|
||||
|
||||
@@ -185,7 +185,7 @@ public class SvnModifyCommandTest extends AbstractSvnCommandTestBase {
|
||||
request.addRequest(new ModifyCommandRequest.CreateFileRequest("Test123", testfile, false));
|
||||
request.setCommitMessage("this should not pass");
|
||||
request.setAuthor(new Person("Arthur Dent", "dent@hitchhiker.com"));
|
||||
request.setExpectedRevision("10");
|
||||
request.setExpectedRevision("5");
|
||||
|
||||
svnModifyCommand.execute(request);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user