diff options
| author | André Spiegel | 2000-11-16 11:04:00 +0000 |
|---|---|---|
| committer | André Spiegel | 2000-11-16 11:04:00 +0000 |
| commit | 22933be894e62f74bc1f8702a986d29da6e6b0ef (patch) | |
| tree | 63cac4d391c5f45e44af0900bcf0622acf4a9444 | |
| parent | 1389a414e037c241c96bee50f3258c2b712981fe (diff) | |
| download | emacs-22933be894e62f74bc1f8702a986d29da6e6b0ef.tar.gz emacs-22933be894e62f74bc1f8702a986d29da6e6b0ef.zip | |
Updated VC news.
| -rw-r--r-- | etc/NEWS | 59 |
1 files changed, 58 insertions, 1 deletions
| @@ -1481,6 +1481,47 @@ operations. | |||
| 1481 | `vc-print-log' uses `log-view-mode'. | 1481 | `vc-print-log' uses `log-view-mode'. |
| 1482 | `vc-log-mode' (used for *VC-Log*) has been replaced by `log-edit-mode'. | 1482 | `vc-log-mode' (used for *VC-Log*) has been replaced by `log-edit-mode'. |
| 1483 | 1483 | ||
| 1484 | The command C-x v m (vc-merge) now accepts an empty argument as the | ||
| 1485 | first revision number. This means that any recent changes on the | ||
| 1486 | current branch should be picked up from the repository and merged into | ||
| 1487 | the working file (``merge news''). | ||
| 1488 | |||
| 1489 | The commands C-x v s (vc-create-snapshot) and C-x v r | ||
| 1490 | (vc-retrieve-snapshot) now ask for a directory name from which to work | ||
| 1491 | downwards. | ||
| 1492 | |||
| 1493 | *** Multiple Backends | ||
| 1494 | |||
| 1495 | VC now lets you register files in more than one backend. This is | ||
| 1496 | useful, for example, if you are working with a slow remote CVS | ||
| 1497 | repository. You can then use RCS for local editing, and occasionally | ||
| 1498 | commit your changes back to CVS, or pick up changes from CVS into your | ||
| 1499 | local RCS archives. | ||
| 1500 | |||
| 1501 | To make this work, the ``more local'' backend (RCS in our example) | ||
| 1502 | should come first in `vc-handled-backends', and the ``more remote'' | ||
| 1503 | backend (CVS) should come later. (The default value of | ||
| 1504 | `vc-handled-backends' already has it that way.) | ||
| 1505 | |||
| 1506 | If you have a file registered in one backend already, you can register | ||
| 1507 | it in a second one by using C-x v i (vc-register) again. | ||
| 1508 | Alternatively, you can commit changes to another backend (say, RCS), | ||
| 1509 | by typing C-u C-x v v RCS RET (i.e. vc-next-action now accepts a | ||
| 1510 | backend name as a revision number). When using the latter approach, | ||
| 1511 | VC registers the file in the more local backend if that hasn't already | ||
| 1512 | happened, and commits to a branch based on the current revision number | ||
| 1513 | from the more remote backend. | ||
| 1514 | |||
| 1515 | If a file is registered in multiple backends, you can switch to | ||
| 1516 | another one using C-x v b (vc-switch-backend). This does not change | ||
| 1517 | any files, it only changes VC's perspective on the file. Use this to | ||
| 1518 | pick up changes from CVS while working under RCS locally. | ||
| 1519 | |||
| 1520 | After you are done with your local RCS editing, you can commit your | ||
| 1521 | changes back to CVS using C-u C-x v v CVS RET. In this case, the | ||
| 1522 | local RCS archive is removed after the commit, and the log entry | ||
| 1523 | buffer is initialized to contain the entire RCS change log of the file. | ||
| 1524 | |||
| 1484 | *** Changes for CVS | 1525 | *** Changes for CVS |
| 1485 | 1526 | ||
| 1486 | There is a new user option, `vc-cvs-stay-local'. If it is `t' (the | 1527 | There is a new user option, `vc-cvs-stay-local'. If it is `t' (the |
| @@ -1491,10 +1532,21 @@ regexp to match against repository hostnames; only files from hosts | |||
| 1491 | that match it are treated locally. If the variable is nil, then VC | 1532 | that match it are treated locally. If the variable is nil, then VC |
| 1492 | queries the repository just as often as it does for local files. | 1533 | queries the repository just as often as it does for local files. |
| 1493 | 1534 | ||
| 1535 | If `vc-cvs-stay-local' is on, then VC also makes local backups of | ||
| 1536 | repository versions. This means that ordinary diffs (C-x v =) and | ||
| 1537 | revert operations (C-x v u) can be done completely locally, without | ||
| 1538 | any repository interactions at all. The name of a local version | ||
| 1539 | backup of FILE is FILE.~REV.~, where REV is the repository version | ||
| 1540 | number. This format is similar to that used by C-x v ~ | ||
| 1541 | (vc-version-other-window), except for the trailing dot. As a matter | ||
| 1542 | of fact, the two features can each use the files created by the other, | ||
| 1543 | the only difference being that files with a trailing `.' are deleted | ||
| 1544 | automatically after commit. | ||
| 1545 | |||
| 1494 | If `vc-cvs-stay-local' is on, and there have been changes in the | 1546 | If `vc-cvs-stay-local' is on, and there have been changes in the |
| 1495 | repository, VC notifies you about it when you actually try to commit. | 1547 | repository, VC notifies you about it when you actually try to commit. |
| 1496 | If you want to check for updates from the repository without trying to | 1548 | If you want to check for updates from the repository without trying to |
| 1497 | commit, you can either use C-u C-x v m to perform an update on the | 1549 | commit, you can either use C-x v m RET to perform an update on the |
| 1498 | current file, or you can use C-x v r RET to get an update for an | 1550 | current file, or you can use C-x v r RET to get an update for an |
| 1499 | entire directory tree. | 1551 | entire directory tree. |
| 1500 | 1552 | ||
| @@ -1503,6 +1555,11 @@ The new user option `vc-cvs-use-edit' indicates whether VC should call | |||
| 1503 | is only meaningful if the CVSREAD variable is set, or if files are | 1555 | is only meaningful if the CVSREAD variable is set, or if files are |
| 1504 | "watched" by other developers.) | 1556 | "watched" by other developers.) |
| 1505 | 1557 | ||
| 1558 | The commands C-x v s (vc-create-snapshot) and C-x v r | ||
| 1559 | (vc-retrieve-snapshot) are now also implemented for CVS. If you give | ||
| 1560 | an empty argument to the latter, that performs a `cvs update', | ||
| 1561 | starting at the given directory. | ||
| 1562 | |||
| 1506 | *** Lisp Changes in VC | 1563 | *** Lisp Changes in VC |
| 1507 | 1564 | ||
| 1508 | VC has been restructured internally to make it modular. You can now | 1565 | VC has been restructured internally to make it modular. You can now |