Wed 12 Nov 2003 04:53:17 AM UTC, comment #1:
This should be fixed the same way as in #5554. Related to this, "library-file --this" didn't seem to work for untagged source files, when called in a different directory than the tree root. "larch library-file --help" suggests:
"--this find the tag of FILE relative to the current directory, then find the corresponding file in the library"
This is similar to how file-diffs and file-find behave, but library-file currently does not (for untagged files). It would have to derive the project root from the specified file, and get a path of the file relative to that root. Otherwise arch_inventory_id will give the wrong id. I tried to fix this in the patches below. A function arch_tree_file_relpath has been added to project-tree.c (patch-26), that does the steps described above, and gets used by all three files, cmd-file-diffs.c, cmd-file-find.c, and cmd-library-file.c (patch-27, for the first two functions this reduces some code).
Archive Location:
http://wmipf.in-berlin.de/{archives}/devel-2003
mt@wmipf.in-berlin.de--devel-2003/tla--wmipf--1.1--patch-24
merge with lord
mt@wmipf.in-berlin.de--devel-2003/tla--wmipf--1.1--patch-25
fix library-file and file-{find,diffs} for untagged files
mt@wmipf.in-berlin.de--devel-2003/tla--wmipf--1.1--patch-26
add function arch_tree_file_relpath
mt@wmipf.in-berlin.de--devel-2003/tla--wmipf--1.1--patch-27
use arch_tree_file_relpath
|