Applied against vc-cc :version 1.05, ChangeLog enclosed.
Actually use the vc-checkout-switches variable as intended. Clean up
comment at check out, to avoid spurious newlines when checking in
outside vc-cc.
--
pete
"..."
--- lisp/vc-cc/ChangeLog~ Sun Jul 19 00:03:08 1998
+++ lisp/vc-cc/ChangeLog Fri Jul 24 15:56:15 1998
@@ -1,3 +1,9 @@
+1998-07-24 Peter Windle <peterw(a)ugsolutions.com>
+
+ * vc.el (vc-backend-checkout): Use vc-checkout-switches when
+ checking out. Clean up comment with vc-cleanup-comment; this was
+ previously done on checkin only.
+
1998-07-18 SL Baur <steve(a)altair.xemacs.org>
* dumped-lisp.el: Removed.
--- lisp/vc-cc/vc.el~ Fri Jul 10 00:57:09 1998
+++ lisp/vc-cc/vc.el Fri Jul 24 16:00:59 1998
@@ -2518,7 +2518,9 @@
(let ((filename (or workfile file)))
(message "Checking out %s..." filename)
(save-excursion
- ;; Change buffers to get local value of vc-checkin-switches.
+ ;; Clean up comment prior to checkout (in case user ci's outside vc-cc)
+ (setq comment (vc-cleanup-comment comment nil))
+ ;; Change buffers to get local value of vc-checkout-switches.
(set-buffer (or (get-file-buffer file) (current-buffer)))
(vc-backend-dispatch
file
@@ -2611,7 +2613,8 @@
(vc-do-cleartool-command "co" file
comment
(and rev "-branch")
- rev))
+ rev
+ vc-checkout-switches))
))
(or workfile
(vc-file-setprop file