If I run tla-changes, then hit "e" (tla-changes-ediff) on a modified
file in a subdirectory that has *not* already been loaded into an
emacs buffer, then tla-changes-ediff does not work. If the modified
file is (for example) /home/ath/proj/bin/foo/foo.c, it fails trying to
open the original file
"/home/ath/proj/bin/foo/./{arch}/++pristine-trees/...". It should be
trying to open /home/ath/proj/{arch}/++pristine-trees/...".
To be more specific, imagine I have a working tree /home/ath/proj that
contains:
Makefile
bin/foo/foo.c
where bin/foo/foo.c has been modified.
Works: C-x f bin/foo/foo.c, M-x tla-changes, hit "e" on the "M
bin/foo/foo.c" line.
Does not work: C-x f Makefile, M-x tla-changes, hit "e" on the "M
bin/foo/foo.c" line.
The following patch fixes it for me, though I do not know if it is The
Right Thing.
andrew
* looking for [EMAIL PROTECTED] to compare with
* comparing to [EMAIL PROTECTED]
M xtla.el
* modified files
--- orig/xtla.el
+++ mod/xtla.el
@@ -1712,6 +1712,7 @@
(concat (file-name-nondirectory file)
"<" (or revision
"original") ">"))))
+ (setq original (concat (tla-tree-root) "/" original))
(with-current-buffer buffer-orig
(erase-buffer)
(insert-file-contents original)