Wiki source code of VersionControl
Version 10.1 by Silvia Macovei on 2009/10/06
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
10.1 | 1 | = Version Control = |
![]() |
1.1 | 2 | |
![]() |
6.1 | 3 | Any change made to a document is saved under Version Control. You can see the version of a document by looking at the bottom of the document. For example, on the following document the version is 5.4 and has last been modified by "Sergiu": |
![]() |
5.3 | 4 | |
![]() |
10.1 | 5 | image:versioncontrol1.png |
![]() |
1.1 | 6 | |
![]() |
10.1 | 7 | As the image shows, the document version consists of two numbers, separated by a dot: {{html clean="false" wiki="true"}}<tt><Major>.<Minor></tt>{{/html}}. The XWiki versioning system allows the distinction between major and minor edits. When [[editing a page>>Features.PageEditing]], the user has the option to decide whether his edit brings major or minor changes to the document. Saving a major version will increase the first component and reset the second to "1", while a minor version will just increase the second component. |
![]() |
6.1 | 8 | |
![]() |
9.1 | 9 | Clicking on the "History" button when viewing a page displays all the versions that were previously saved: |
![]() |
1.1 | 10 | |
![]() |
10.1 | 11 | image:versioncontrol2.png |
![]() |
1.1 | 12 | |
![]() |
9.1 | 13 | Besides listing the document versions, the history page can be used to perform other actions as well: |
![]() |
1.1 | 14 | |
![]() |
10.1 | 15 | (% style="list-style-type: square" %) |
16 | * compare any two versions | ||
17 | * set an older version as the current version (restore); available only if the user has edit rights on the document | ||
18 | * delete a version completely from the history (useful for removing spam, for example); available only if the user has administration rights | ||
19 | |||
![]() |
9.1 | 20 | By default, minor edits do not appear in the document history. The option "Show minor edits" will list all the versions, including minor ones. |
![]() |
1.1 | 21 | |
![]() |
9.1 | 22 | Comparing 2 versions highlights the differences between them, grouped by what part of the document they affect: the content, metadata, attachments, comments, objects, class definition: |
![]() |
1.1 | 23 | |
![]() |
10.1 | 24 | image:versioncontrol3.png |