Skip to content

Commit

Permalink
Merge pull request #35 from pierre-rouleau/master
Browse files Browse the repository at this point in the history
Prevent byte-compiler warning when vc-darcs is not installed
  • Loading branch information
purcell authored Nov 6, 2024
2 parents 66d0226 + 6e9e0b5 commit 890c692
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ibuffer-vc.el
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,9 @@ If the file is not under version control, nil is returned instead."
(root-dir
(cond
((fboundp root-fn-name) (funcall root-fn-name file-name)) ; git, svn, hg, bzr (at least)
((memq backend '(darcs DARCS)) (vc-darcs-find-root file-name))
((and (fboundp 'vc-darcs-find-root) ; vc-darcs is an external package
(memq backend '(darcs DARCS)))
(vc-darcs-find-root file-name))
((memq backend '(cvs CVS)) (vc-find-root file-name "CVS"))
((memq backend '(rcs RCS)) (or (vc-find-root file-name "RCS")
(concat file-name ",v")))
Expand Down

0 comments on commit 890c692

Please sign in to comment.