Книга: Learning GNU Emacs, 3rd Edition
12.8.3 Retrieving Old Revisions
12.8.3 Retrieving Old Revisions
You can use the command C-x v ~ (for vc-version-other-window) to retrieve any saved revision of a file. The revision is retrieved into a work file with the same name as your file, except for a suffix that identifies its revision number (the suffix is actually a dot, followed by a tilde, followed by the revision number, followed by another tilde). So you can retrieve several revisions, and they won't step on each other. This command is useful when you want to eyeball the entire old version of a file, as opposed to just its changes from previous versions or its differences from later ones.
The version suffix format is very close to what Emacs generates for saved versions if you set the global Emacs Lisp variable version-control (which VC has made pretty much obsolete). For example, if you're visiting a file named foo.html
and you retrieve version 1.3 by typing C-x v ~ 1 . 3 Enter, you will now be visiting a file named foo.html.~1.3~
(and because it ends with a tilde, Dired's command to flag backup files will mark it, as discussed in Chapter 5).
- 12.8.1 Working with Groups and Subtrees of Files
- 12.8.2 Difference Reports
- 12.8.3 Retrieving Old Revisions
- 12.8.4 Viewing Change Histories
- 12.8.5 Registering a File
- 12.8.6 Inserting Version Control Headers
- 12.8.7 Making and Retrieving Snapshots
- 12.8.8 Updating ChangeLog Files
- 12.8.9 Renaming Version-Controlled Files
- 12.8.10 When VC Gets Confused
- Oldest transaction
- Oldest active и Oldest snapshot
- 10. FUTURE REVISIONS OF THIS LICENSE
- BSP Folder Structure
- told
- Auditing files and folders
- Retrieving an Article Header Only
- Retrieving an Article Body Only
- Future Revisions of this License
- Working with encrypted files and folders
- Creating shared folders in Computer Management
- Creating shared folders in Server Manager