Download as a PDF

Transcript
necessary additions are dened by the combination supplement type %versionedit-doc which is automatically added to any combination of the types versiondoc and edit-doc.
6.3.2 Operations for Document Versions
The type version-doc denes the new method display-versions. The method
simply shows the version list in a separate buer.
The single main interface to access document versions is constructed using
the export operation. The method export-doc is enhanced to take a reference
to a version interval (a time point) as additional argument. If a version interval
is dened at that time point, the corresponding content is exported instead of the
current content. In this case the arguments Changes-system and Changesaddress of method export-doc are ignored. However, it would be possible to
dene a specialization of type version-doc which exports the changes between
two versions in an appropriate way, e.g., by using the UNIX1 di command.
The version interface via the export operation is very exible. It makes content versions usable for any export system dened for the document. In particular, if the corresponding export systems are provided, any version of the document
may be previewed, printed, or processed in some other way.
For any document the version mechanism can be used in combination with the
export system \document" (see Section 6.1.1). It allows to copy any version of a
document to another document object. Note that the version history for a single
object is linear. However, by copying versions to other objects, it is possible to
construct version trees for a document. In this case every branch of the tree is
represented by a separate document object with an own linear version history.
6.3.3 Named Versions
The type version-doc uses time points to reference versions. In other systems,
like RCS, SCCS, etc., versions are usually referenced by arbitrary numbers like
\1.4" or \5.23.2". TACTS provides this version naming scheme in a more general
way: any version interval may be named by an arbitrary string.
This feature is implemented by the type named-version-doc. It is a specialization of type version-doc. It uses an additional attribute Versionnames
to store a mapping from names to version intervals and denes two new methods dene-version-name and delete-version-name to alter this mapping.
The method export-doc is enhanced to accept version references by name as
default. The method display-versions is enhanced to additionally display all
dened version names in the list of version intervals.
1
UNIX is a registered trademark of AT&T
45