Function: projectile--hg-repo-identity

projectile--hg-repo-identity is a byte-compiled function defined in projectile.el.

Signature

(projectile--hg-repo-identity ROOT)

Documentation

Return the repository identity plist for the Mercurial project at ROOT.

A working directory created by hg share keeps its store elsewhere and records where in .hg/sharedpath, which makes that path the Mercurial equivalent of git's common dir.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile--hg-repo-identity (root)
  "Return the repository identity plist for the Mercurial project at ROOT.

A working directory created by `hg share' keeps its store elsewhere and
records where in `.hg/sharedpath', which makes that path the Mercurial
equivalent of git\\='s common dir."
  (let* ((hg-dir (expand-file-name ".hg" root))
         (store (or (projectile--file-contents-trimmed
                     (expand-file-name "sharedpath" hg-dir))
                    hg-dir)))
    (list :repo (when (file-exists-p store) (file-truename store))
          :remote (projectile--normalize-repo-url
                   (projectile--hg-default-path root)))))