summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-11-29 01:22:27 (GMT)
committerWerner Almesberger <werner@almesberger.net>2016-11-29 01:22:27 (GMT)
commit536e38b0b4bd02e63281f3044b768b24a3cbe7bb (patch)
treeae7471468ffa699de26f3a66fc93e6ab737df06c
parent904ae01cbffeec04c400eb82e60f64ce64c3837c (diff)
downloadeeshow-536e38b0b4bd02e63281f3044b768b24a3cbe7bb.zip
eeshow-536e38b0b4bd02e63281f3044b768b24a3cbe7bb.tar.gz
eeshow-536e38b0b4bd02e63281f3044b768b24a3cbe7bb.tar.bz2
file/file.c (file_open), git-file.c (try_related): more diagnostics
-rw-r--r--file/file.c11
-rw-r--r--file/git-file.c2
2 files changed, 12 insertions, 1 deletions
diff --git a/file/file.c b/file/file.c
index e810e20..4690ebc 100644
--- a/file/file.c
+++ b/file/file.c
@@ -197,7 +197,16 @@ bool file_open(struct file *file, const char *name, const struct file *related)
{
file_init(file, name, related);
- progress(2, "file_open: trying %s", name);
+ if (related) {
+ if (related->vcs)
+ progress(2, "file_open: trying %s (related %s, vcs)",
+ name, related->name);
+ else
+ progress(2, "file_open: trying %s (related %s)",
+ name, related->name);
+ } else {
+ progress(2, "file_open: trying %s", name);
+ }
if (related && related->vcs) {
file->vcs = open_vcs(file);
diff --git a/file/git-file.c b/file/git-file.c
index daf1aec..570c72b 100644
--- a/file/git-file.c
+++ b/file/git-file.c
@@ -440,6 +440,8 @@ static bool try_related(struct vcs_git *vcs_git)
if (vcs_git->revision)
return 0;
+ progress(3, "try_related: %s %s",
+ vcs_git->related->name, vcs_git->related->revision);
vcs_git->repo = select_repo(vcs_git->name);
if (vcs_git->repo) {
if (!strcmp(git_repository_path(vcs_git->related->repo),