Function: vc-hg--ignore-patterns-valid-p
vc-hg--ignore-patterns-valid-p is a byte-compiled function defined in
vc-hg.el.gz.
Signature
(vc-hg--ignore-patterns-valid-p HGIP)
Documentation
Return whether the cached ignore patterns in HGIP are still valid.
Source Code
;; Defined in /usr/src/emacs/lisp/vc/vc-hg.el.gz
(defun vc-hg--ignore-patterns-valid-p (hgip)
"Return whether the cached ignore patterns in HGIP are still valid."
(let ((valid t)
(file-sources (vc-hg--ignore-patterns-file-sources hgip)))
(while (and file-sources valid)
(let* ((fs (pop file-sources))
(saved-mtime (nth 1 fs))
(saved-size (nth 2 fs))
(attr (file-attributes (nth 0 fs)))
(current-mtime (file-attribute-modification-time attr))
(current-size (file-attribute-size attr)))
(unless (and (time-equal-p saved-mtime current-mtime)
(equal saved-size current-size))
(setf valid nil))))
valid))