587
|
1 |
/*
|
628
|
2 |
* Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of the License "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
*
|
|
16 |
*/
|
587
|
17 |
|
|
18 |
package com.nokia.maven.scm.command.info;
|
|
19 |
|
|
20 |
import org.apache.maven.scm.ScmResult;
|
|
21 |
|
628
|
22 |
|
587
|
23 |
/**
|
|
24 |
* A result provided by the 'hg info' command.
|
|
25 |
*/
|
|
26 |
public class InfoScmResult extends ScmResult {
|
|
27 |
private String scmRevision = new String();
|
628
|
28 |
|
|
29 |
public InfoScmResult(String commandLine, String providerMessage, String commandOutput,
|
|
30 |
boolean success) {
|
587
|
31 |
super(commandLine, providerMessage, commandOutput, success);
|
|
32 |
}
|
|
33 |
|
628
|
34 |
public InfoScmResult(String commandLine, String providerMessage, String commandOutput,
|
|
35 |
boolean success, String scmRevision) {
|
|
36 |
super(commandLine, providerMessage, commandOutput, success);
|
587
|
37 |
this.scmRevision = scmRevision;
|
628
|
38 |
}
|
|
39 |
|
587
|
40 |
public String getRevision() {
|
|
41 |
return scmRevision;
|
|
42 |
}
|
|
43 |
|
|
44 |
}
|