emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r106686: * lisp/vc/vc.el (vc-next-act


From: Chong Yidong
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r106686: * lisp/vc/vc.el (vc-next-action): Doc fix; remove CVS-isms.
Date: Fri, 16 Dec 2011 23:55:00 +0800
User-agent: Bazaar (2.3.1)

------------------------------------------------------------
revno: 106686
committer: Chong Yidong <address@hidden>
branch nick: trunk
timestamp: Fri 2011-12-16 23:55:00 +0800
message:
  * lisp/vc/vc.el (vc-next-action): Doc fix; remove CVS-isms.
modified:
  lisp/ChangeLog
  lisp/vc/vc.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2011-12-16 13:32:35 +0000
+++ b/lisp/ChangeLog    2011-12-16 15:55:00 +0000
@@ -1,3 +1,7 @@
+2011-12-16  Chong Yidong  <address@hidden>
+
+       * vc/vc.el (vc-next-action): Doc fix; remove CVS-isms.
+
 2011-12-16  Andreas Schwab  <address@hidden>
 
        * calc/calc-misc.el (calc-help): Avoid wrapping help message.

=== modified file 'lisp/vc/vc.el'
--- a/lisp/vc/vc.el     2011-11-23 07:03:56 +0000
+++ b/lisp/vc/vc.el     2011-12-16 15:55:00 +0000
@@ -1048,34 +1048,27 @@
 ;;;###autoload
 (defun vc-next-action (verbose)
   "Do the next logical version control operation on the current fileset.
-This requires that all files in the fileset be in the same state.
-
-For locking systems:
-   If every file is not already registered, this registers each for version
-control.
-   If every file is registered and not locked by anyone, this checks out
-a writable and locked file of each ready for editing.
-   If every file is checked out and locked by the calling user, this
-first checks to see if each file has changed since checkout.  If not,
-it performs a revert on that file.
-   If every file has been changed, this pops up a buffer for entry
-of a log message; when the message has been entered, it checks in the
-resulting changes along with the log message as change commentary.  If
-the variable `vc-keep-workfiles' is non-nil (which is its default), a
-read-only copy of each changed file is left in place afterwards.
-   If the affected file is registered and locked by someone else, you are
-given the option to steal the lock(s).
-
-For merging systems:
-   If every file is not already registered, this registers each one for version
-control.  This does an add, but not a commit.
-   If every file is added but not committed, each one is committed.
-   If every working file is changed, but the corresponding repository file is
-unchanged, this pops up a buffer for entry of a log message; when the
-message has been entered, it checks in the resulting changes along
-with the logmessage as change commentary.  A writable file is retained.
-   If the repository file is changed, you are asked if you want to
-merge in the changes into your working copy."
+This requires that all files in the current VC fileset be in the
+same state.  If not, signal an error.
+
+For merging-based version control systems:
+  If every file in the VC fileset is not registered for version
+   control, register the fileset (but don't commit).
+  If every work file in the VC fileset is added or changed, pop
+   up a *vc-log* buffer to commit the fileset.
+  For a centralized version control system, if any work file in
+   the VC fileset is out of date, offer to update the fileset.
+
+For old-style locking-based version control systems, like RCS:
+  If every file is not registered, register the file(s).
+  If every file is registered and unlocked, check out (lock)
+   the file(s) for editing.
+  If every file is locked by you and has changes, pop up a
+   *vc-log* buffer to check in the changes.  If the variable
+   `vc-keep-workfiles' is non-nil (the default), leave a
+   read-only copy of each changed file after checking in.
+  If every file is locked by you and unchanged, unlock them.
+  If every file is locked by someone else, offer to steal the lock."
   (interactive "P")
   (let* ((vc-fileset (vc-deduce-fileset nil t 'state-model-only-files))
          (backend (car vc-fileset))


reply via email to

[Prev in Thread] Current Thread [Next in Thread]