Generate a tree structure
<p>I want to generate a Tree structure from the output I get from a query. The output I get is the revisions of a particular file. The aim is not to present it in UI but to compare the corresponding versions. The output from the query looks like the following and I need to populate this information on a tree and then compare between the consecutive versions(all directly connected branches) like test.c 1.2 and test.c 1.1 and test.c 1.5.1.1 and test.c 1.5  and similiarly. Can you please help me how to proceed with this. </p>

<pre><code>test.c 1.7
test.c 1.6
test.c 1.5.2.1
test.c 1.5.1.1
test.c 1.5
test.c 1.4.1.1
test.c 1.4
test.c 1.3
test.c 1.2
test.c 1.1
</code></pre>
