# HG changeset patch # User Peer Sommerlund <p...@users.sourceforge.net> # Date 1252933105 -7200 # Node ID ecaf116b279d6a8e80be667253c0d14f93c4310d # Parent f0be49afe1ab5f979b7a56ddeb20c5dfb32f6eea logview: Allow compact graph branches outside covered range
It was previously not possible to create a new branch outside the covered range. This happens if a changeset inside the range has parents outside the range. Fixes bug in compact graph diff -r f0be49afe1ab -r ecaf116b279d tortoisehg/hgtk/logview/revgraph.py --- a/tortoisehg/hgtk/logview/revgraph.py Sun Sep 13 23:06:47 2009 -0500 +++ b/tortoisehg/hgtk/logview/revgraph.py Mon Sep 14 14:58:25 2009 +0200 @@ -223,14 +223,14 @@ branch_name = self._branch_name(branch_head) rev = branch_head while not rev in self.branch4rev: - # Determine if rev should be used + # Add rev to branch + self.branch4rev[rev] = branch_head + self.branch_tail[branch_head] = rev + # Exit if rev is outside visible range if not self._covered_rev(rev): # rev is outside visible range, so we don't know tail location self.branch_tail[branch_head] = 0 # Prev revs wasn't tail return - # Add rev to branch - self.branch4rev[rev] = branch_head - self.branch_tail[branch_head] = rev # Find next revision in branch self.parent_of[rev] = None for parent in self._get_parents(rev): ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Tortoisehg-develop mailing list Tortoisehg-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop