]> git.eshelyaron.com Git - emacs.git/commitdiff
* vc.el (vc-update): Resolve conflicts if necessary instead of
authorDan Nicolaescu <dann@ics.uci.edu>
Sun, 13 Jan 2008 20:03:35 +0000 (20:03 +0000)
committerDan Nicolaescu <dann@ics.uci.edu>
Sun, 13 Jan 2008 20:03:35 +0000 (20:03 +0000)
just updating the buffer.

* vc-cvs.el (vc-cvs-merge-news): Ignore the error status of the
update command so that we can parse the output.

lisp/ChangeLog
lisp/vc-cvs.el
lisp/vc.el

index f30ec291583d1c34c548594123fb370fe397e3f8..3e9da0593db77307bd9a9986d2d6e2ed41408f1b 100644 (file)
@@ -1,3 +1,11 @@
+2008-01-13  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       * vc.el (vc-update): Resolve conflicts if necessary instead of
+       just updating the buffer.
+
+       * vc-cvs.el (vc-cvs-merge-news): Ignore the error status of the
+       update command so that we can parse the output.
+
 2008-01-13  Martin Rudalics  <rudalics@gmx.at>
 
        * mail/rmail.el (rmail-convert-to-babyl-format): Remove
index d84c2839573e02eb9011d1b150d9d0ec9bc07b54..cc4cd47cfe74b7b6c7fc6d7571a9583ec0e62dd7 100644 (file)
@@ -453,7 +453,7 @@ The changes are between FIRST-REVISION and SECOND-REVISION."
   (message "Merging changes into %s..." file)
   ;; (vc-file-setprop file 'vc-working-revision nil)
   (vc-file-setprop file 'vc-checkout-time 0)
-  (vc-cvs-command nil 0 file "update")
+  (vc-cvs-command nil nil file "update")
   ;; Analyze the merge result reported by CVS, and set
   ;; file properties accordingly.
   (with-current-buffer (get-buffer "*vc*")
index 88915f3715f8e3a946bd0998da85ec7742676ec6..5006af37ec52e3ab80eb15066cb5673a86540472 100644 (file)
@@ -2899,8 +2899,7 @@ changes from the current branch are merged into the working file."
        (if (not (vc-find-backend-function (vc-backend file) 'merge-news))
            (error "Sorry, merging news is not implemented for %s"
                   (vc-backend file))
-         (vc-call merge-news file)
-         (vc-resynch-buffer file t t))))))
+         (vc-maybe-resolve-conflicts file (vc-call merge-news file)))))))
 
 (defun vc-version-backup-file (file &optional rev)
   "Return name of backup file for revision REV of FILE.