Staging
v0.5.0
https://foss.heptapod.net/mercurial/hgview
Revision be670f46836846f4010b82ca4c2ad3e217ad24cf authored by Alain Leufroy on 11 June 2013, 16:58:04 UTC, committed by Alain Leufroy on 11 June 2013, 16:58:04 UTC
On some repo the tree graph was not full filled.

The problem comes from the selection of the working directory parent.

To select the wd parent we ensure it has already been built.
This action encreases the number of built nodes in revision tree
(see ``hggraph.Graph.build_nodes``: requested revision + nnodes)

But we ensure the wd parent is built the first time the model is
filled. It is performed after the first graph rendering but before the
timer event that refreshes the tree graph.

In some case the first rendering displays only a partial revisions
tree graph. Once displayed the wd parent selection complete the
revision tree in cache but not yet on the screen.

If the revision tree is full filled, the table row count is not
updated (see the diff) while a part of the revision tree graph is
still missing.


Introduced by `always select the working directory at startup <fb5ee4cf21dd>`_
due to `New implementation of the background graph building mecanism <e28a5e3dc5c4>`_.

.. note:: I will factorize code in the next commit.
1 parent 60548a5
History
Tip revision: be670f46836846f4010b82ca4c2ad3e217ad24cf authored by Alain Leufroy on 11 June 2013, 16:58:04 UTC
[qt4] Fix partial tree graph filling
Tip revision: be670f4
File Mode Size
bin
debian
debian.squeeze
doc
hgext
hgviewlib
.hgignore -rw-r--r-- 49 bytes
.hgtags -rw-r--r-- 2.1 KB
COPYING -rw-r--r-- 17.6 KB
ChangeLog -rw-r--r-- 5.7 KB
MANIFEST.in -rw-r--r-- 648 bytes
README -rw-r--r-- 1.8 KB
__pkginfo__.py l--------- 24 bytes
debian.maverick l--------- 14 bytes
debian.natty l--------- 14 bytes
setup.py -rw-r--r-- 13.7 KB

README

back to top