diff options
| author | Dan Nicolaescu | 2010-01-05 13:19:34 -0800 |
|---|---|---|
| committer | Dan Nicolaescu | 2010-01-05 13:19:34 -0800 |
| commit | 37860cafd5acdc2348675f2e9bc1a0934a55f30d (patch) | |
| tree | ebd1c59730453dc12e9f7189f4cbc669d0d9aead | |
| parent | 7b47345b7c9a06033c51cdd6ed5a966de9e37c7c (diff) | |
| download | emacs-37860cafd5acdc2348675f2e9bc1a0934a55f30d.tar.gz emacs-37860cafd5acdc2348675f2e9bc1a0934a55f30d.zip | |
(vc-bzr-working-revision): Fix looking for a revision
in a lightweight checkout.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/vc-bzr.el | 16 |
2 files changed, 18 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1b493440367..2dc2a1270bd 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-01-05 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 2 | |||
| 3 | * vc-bzr.el (vc-bzr-working-revision): Fix looking for a revision | ||
| 4 | in a lightweight checkout. | ||
| 5 | |||
| 1 | 2010-01-05 Kenichi Handa <handa@m17n.org> | 6 | 2010-01-05 Kenichi Handa <handa@m17n.org> |
| 2 | 7 | ||
| 3 | * language/indian.el (malayalam-composable-pattern): Fix ZWNJ and | 8 | * language/indian.el (malayalam-composable-pattern): Fix ZWNJ and |
diff --git a/lisp/vc-bzr.el b/lisp/vc-bzr.el index fc62696af1d..d0b8ec8ff6a 100644 --- a/lisp/vc-bzr.el +++ b/lisp/vc-bzr.el | |||
| @@ -356,9 +356,19 @@ If any error occurred in running `bzr status', then return nil." | |||
| 356 | (if (file-exists-p location-fname) | 356 | (if (file-exists-p location-fname) |
| 357 | (with-temp-buffer | 357 | (with-temp-buffer |
| 358 | (insert-file-contents location-fname) | 358 | (insert-file-contents location-fname) |
| 359 | (when (re-search-forward "file://\(.+\)" nil t) | 359 | ;; If the lightweight checkout points to a |
| 360 | (setq branch-format-file (match-string 1)) | 360 | ;; location in the local file system, then we can |
| 361 | (file-exists-p branch-format-file))) | 361 | ;; look there for the version information. |
| 362 | (when (re-search-forward "file://\\(.+\\)" nil t) | ||
| 363 | (let ((l-c-parent-dir (match-string 1))) | ||
| 364 | (setq branch-format-file | ||
| 365 | (expand-file-name vc-bzr-admin-branch-format-file | ||
| 366 | l-c-parent-dir)) | ||
| 367 | (setq lastrev-file | ||
| 368 | (expand-file-name vc-bzr-admin-lastrev l-c-parent-dir)) | ||
| 369 | ;; FIXME: maybe it's overkill to check if both these files exist. | ||
| 370 | (and (file-exists-p branch-format-file) | ||
| 371 | (file-exists-p lastrev-file))))) | ||
| 362 | t))) | 372 | t))) |
| 363 | (with-temp-buffer | 373 | (with-temp-buffer |
| 364 | (insert-file-contents branch-format-file) | 374 | (insert-file-contents branch-format-file) |