pombreda / gource

Automatically exported from code.google.com/p/gource
0 stars 0 forks source link

Treat directories as leaves #137

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. An option that would change the treatment of directories from branches to 
leaves.
2. An option that would allow manually to create a legend.

What is the expected output? What do you see instead?
I would like to see directories as leaves, not only as branches. I'm 
visualizing a forum topic conversation data with Gource (obviously not the main 
purpose of Gource) where the custom log format is something like following:

1314256909|Teacher_91|A|/forum_name/|0000FF
1314256910|Teacher_91|A|/forum_name/forum_topic_1/|0000FF
1314256911|Teacher_91|A|/forum_name/forum_topic_1/comment_1|0000FF
1314256912|Teacher_91|A|/forum_name/forum_topic_1/comment_2|0000FF
1314256913|Teacher_91|A|/forum_name/forum_topic_1/comment_1/comment_3|0000FF
1314256914|Teacher_91|A|/forum_name/forum_topic_1/comment_1/comment_4|0000FF
1314256915|Teacher_91|A|/forum_name/forum_topic_2/comment_5|0000FF

As a result I would like to see a root leaf, two forum_topic leaves which are 
connected to root leaf and the comments connected to the forum_topic leaves or 
to the associated comment leaf. Currently the directories are treated as a 
branches which is not that clear with my example data where the data structure 
does not contain actual directories.

Also the data can contain other content types other than forum topics such as 
blog messages that can also contain comments. These content types would be 
distinguish with different colors so it would be nice if it would be able write 
the meaning of these colors as a legend to the visualization.

What version of the product are you using? On what operating system?
0.32 - 0.37 Win32

Please provide any additional information below.
I'm working with Gource at the Tampere University of Technology as a researcher 
and Gource has proved to be a great tool for showing data on timeline. 

Original issue reported on code.google.com by teemo.te...@gmail.com on 27 Sep 2011 at 1:15

GoogleCodeExporter commented 9 years ago
Hmmm.. how about re formatting your log like this:

test.log:
1314256909|Teacher_91|A|/forum_name/node.forum|FFFFFF
1314256910|Teacher_91|A|/forum_name/forum_topic_1/node.topic|FFF00
1314256911|Teacher_91|A|/forum_name/forum_topic_1/comment_1/node.comment|0000FF
1314256912|Teacher_91|A|/forum_name/forum_topic_1/comment_2/node.comment|0000FF
1314256913|Teacher_91|A|/forum_name/forum_topic_1/comment_1/comment_3/node.reply
|00FFFF
1314256914|Teacher_91|A|/forum_name/forum_topic_1/comment_1/comment_4/node.reply
|00FFFF
1314256915|Teacher_91|A|/forum_name/forum_topic_2/node.topic|FFF00
1314256915|Teacher_91|A|/forum_name/forum_topic_2/comment_5/node.comment|0000FF

then run with:

gource.exe --key --highlight-dirs --hide filenames test.log

This gives you a node for each forum/topic/comment/reply and you also have 
control over the file key :)

Original comment by acaudw...@gmail.com on 28 Sep 2011 at 1:36

GoogleCodeExporter commented 9 years ago
Or use '--file-extensions --hide dirnames --key'. To only label the nodes.

Original comment by acaudw...@gmail.com on 28 Sep 2011 at 2:01

GoogleCodeExporter commented 9 years ago
Yeah, that did it. For every content I created a "folder" and a "file" with an 
associated file extension with the same into to that folder like this:

1314256911|Teacher_91|A|/forum_name/forum_topic_1/|0000FF
1314256911|Teacher_91|A|/forum_name/forum_topic_1/forum_topic_1.forum|0000FF
1314256911|Teacher_91|A|/forum_name/forum_topic_1/comment_1/|0000FF
1314256911|Teacher_91|A|/forum_name/forum_topic_1/comment_1/comment_1.forum|0000
FF

This way every folder has one file and so the data works better for the Gource 
point of view. 

Thanks a million.

In the attachments you can see the difference which is quite huge :) The data 
is about the same in both of the pictures. _v1 is the older one and _v2 the 
newer one. 

_teemo_

Original comment by teemo.te...@gmail.com on 30 Sep 2011 at 9:05

Attachments:

GoogleCodeExporter commented 9 years ago
Cool. Glad to help.

Original comment by acaudw...@gmail.com on 2 Oct 2011 at 9:08

GoogleCodeExporter commented 9 years ago

Original comment by acaudw...@gmail.com on 13 Oct 2011 at 8:05