Function: vc-hg-trunk-or-topic-p
vc-hg-trunk-or-topic-p is a byte-compiled function defined in
vc-hg.el.gz.
Signature
(vc-hg-trunk-or-topic-p &optional BRANCH)
Documentation
Return topic or nil for BRANCH or the currently active bookmark.
If BRANCH names a bookmark, or BRANCH is nil but there is a currently
active bookmark, return topic. Otherwise return nil.
Source Code
;; Defined in /usr/src/emacs/lisp/vc/vc-hg.el.gz
(defun vc-hg-trunk-or-topic-p (&optional branch)
"Return `topic' or nil for BRANCH or the currently active bookmark.
If BRANCH names a bookmark, or BRANCH is nil but there is a currently
active bookmark, return `topic'. Otherwise return nil."
(and (if branch (member branch (vc-hg--bookmarks))
(assq 'bookmark (vc-hg--working-branch)))
'topic))