(defun vc-bzr-log-incoming (buffer remote-location)
(apply #'vc-bzr-command "missing" buffer 'async nil
- (list "--theirs-only" (unless (string= remote-location "") remote-location))))
+ (list "--theirs-only" (and (not (string-empty-p remote-location))
+ remote-location))))
+
+(defun vc-bzr-incoming-revision (remote-location)
+ (let* ((output
+ (with-output-to-string
+ (vc-bzr-command "missing" standard-output 1 nil
+ "--log-format=long" "--show-ids"
+ "--theirs-only" "-r-1.."
+ (and (not (string-empty-p remote-location))
+ remote-location)))))
+ (and (string-match "^revision-id: \\(.+\\)$" output)
+ (concat "revid:" (match-string 1 output)))))
(defun vc-bzr-log-outgoing (buffer remote-location)
(apply #'vc-bzr-command "missing" buffer 'async nil
- (list "--mine-only" (unless (string= remote-location "") remote-location))))
+ (list "--mine-only" (and (not (string-empty-p remote-location))
+ remote-location))))
(defun vc-bzr-show-log-entry (revision)
"Find entry for patch name REVISION in bzr change log buffer."