# HG changeset patch # User Dan Nicolaescu # Date 1200254615 0 # Node ID 28dc34f6a246700a10d65c367520e40ae42da4c3 # Parent 8da4f8bf7244f9fc54268d6d1d943d7d4ff77646 * 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. diff -r 8da4f8bf7244 -r 28dc34f6a246 lisp/ChangeLog --- a/lisp/ChangeLog Sun Jan 13 18:29:53 2008 +0000 +++ b/lisp/ChangeLog Sun Jan 13 20:03:35 2008 +0000 @@ -1,3 +1,11 @@ +2008-01-13 Dan Nicolaescu + + * 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 * mail/rmail.el (rmail-convert-to-babyl-format): Remove diff -r 8da4f8bf7244 -r 28dc34f6a246 lisp/vc-cvs.el --- a/lisp/vc-cvs.el Sun Jan 13 18:29:53 2008 +0000 +++ b/lisp/vc-cvs.el Sun Jan 13 20:03:35 2008 +0000 @@ -453,7 +453,7 @@ (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*") diff -r 8da4f8bf7244 -r 28dc34f6a246 lisp/vc.el --- a/lisp/vc.el Sun Jan 13 18:29:53 2008 +0000 +++ b/lisp/vc.el Sun Jan 13 20:03:35 2008 +0000 @@ -2899,8 +2899,7 @@ (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.