Function: vc-standard-log-outgoing

vc-standard-log-outgoing is a byte-compiled function defined in vc.el.gz.

Signature

(vc-standard-log-outgoing BACKEND BUFFER UPSTREAM-LOCATION &optional SKIP-MERGEBASE)

Documentation

VC log-outgoing in terms of incoming-revision and mergebase.

BACKEND is the VC backend, BUFFER is the buffer to log to, UPSTREAM-LOCATION is the place to which the changes are outgoing. Optional argument SKIP-MERGEBASE, if non-nil, skips calling mergebase and instead passes incoming-revision directly as the log limit. For some backends this is equivalent, and saves running one external command. Whether this equivalence holds depends on the details of the print-log implementation for BACKEND when vc-log-view-types contains log-outgoing.

Source Code

;; Defined in /usr/src/emacs/lisp/vc/vc.el.gz
(defun vc-standard-log-outgoing
    (backend buffer upstream-location &optional skip-mergebase)
  "VC `log-outgoing' in terms of `incoming-revision' and `mergebase'.
BACKEND is the VC backend, BUFFER is the buffer to log to,
UPSTREAM-LOCATION is the place to which the changes are outgoing.
Optional argument SKIP-MERGEBASE, if non-nil, skips calling `mergebase'
and instead passes `incoming-revision' directly as the log limit.
For some backends this is equivalent, and saves running one external
command.  Whether this equivalence holds depends on the details of the
`print-log' implementation for BACKEND when `vc-log-view-types' contains
`log-outgoing'."
  (let ((incoming (vc--incoming-revision backend upstream-location))
        (default-directory (vc-root-dir backend)))
    (vc-call-backend backend 'print-log (list default-directory)
                     buffer t ""
                     (if skip-mergebase incoming
                       (vc-call-backend backend 'mergebase incoming)))))