Restores a version of an entity.
restore_ver [ connect-args | local-args ] version entity
<jag_restore_ver version=”version” entity=”entity” />
Option |
Description |
Required |
---|---|---|
connect-args | local-args |
Arguments to specify a connection to the server or to run in local mode. See “Local versus connected mode”. |
Yes |
version |
The version number of the version to restore. |
Yes |
entity |
The name of the entity for which a version is restored, in the form EntityType:EntityName. |
Yes |
Return value |
Indicates |
---|---|
0 |
The command ran successfully; the result is true/success. |
1 |
The command ran successfully; the result is false/failure. |
2 |
The command did not run successfully; an exception was thrown. |
This example restores version 1.0 of Package:SVU.
Command line:
jagtool restore_ver 1.0 Package:SVU
Ant build file:
<jag_restore_ver version="1.0" entity="Package:SVU" />
list_ver, save_major_ver, save_minor_ver, Chapter 10, “Using Repository Versioning”
Copyright © 2005. Sybase Inc. All rights reserved. |