<< GetResourceString | GetRevisions >> |
Top: Documentation Library | Up: G Commands |
GetRevision Document Query Command
Gets the attributes of a revision log entry. New in 5.0.3.4.
GetRevision [DESCRIPTION &description] [VERSION &version.major.minor] [TYPE &type{CREATED | MODIFIED}] [USER &username] [REVISION revh]
Parameters:
Results:
Notes:
See Also:
DeleteRevision, GetRevisions, InsertRevision, LogRevision, SetRevision, and SetRevisionTracking
Examples:
Python:
ARexx:
Applescript:
GetRevision Command Definition url:PGScmd/getrevision
created:2006-09-06 11:57:28 last updated:2006-09-06 12:04:44
Copyright © 1985-2024 GrasshopperLLC. All Rights Reserved.
User Contributed Comments For GetRevision | sign in to add a comment |
Tim Doty wrote... | 2009-06-24 15:46:26 |
For the function to work you must pass it at least one "handle" (e.g., 'Description') -- otherwise as there is no default behavior/variable naming there is nothing for it to do. Omitting the "revision" argument is possible, but due to a bug in versions up to at least 5.0.5.1 RC2 it will return the last selected revision number. If no revision number was previously specified then it will claim there are no revisions. Code: >>> print GetRevision('Description', 'desc')
{'.error': 1, '.result': 0, 'desc': 'Corrected prerequisite list scores'} >>> print GetRevision('Description', 'desc', 'Revision', '429499412') {'.error': 1, '.result': 0, 'desc': 'added spell head to offensive protection list spells'} >>> print GetRevision('Description', 'desc') {'.error': 1, '.result': 0, 'desc': 'added spell head to offensive protection list spells'} | |
User Contributed Comments For GetRevision | sign in to add a comment |
<< GetResourceString | GetRevisions >> |
Top: Documentation Library | Up: G Commands |