Commit fea895b1 authored by Glenn Morris's avatar Glenn Morris
Browse files

Tweak previous emacs-bzr-get-version change

parent f40a9709
......@@ -113,7 +113,7 @@ of the sources, which may not correspond to the running Emacs.
Optional argument DIR is a directory to use instead of `source-directory'."
(or dir (setq dir source-directory))
(when (file-directory-p dir)
(when (file-directory-p (expand-file-name ".bzr/branch" dir))
(let (file loc rev)
(cond ((file-readable-p
(setq file (expand-file-name ".bzr/branch/last-revision" dir)))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment