Change history visualization tools?

filerz-ml at yahoo.com filerz-ml at yahoo.com
Mon Jul 28 01:15:11 UTC 2008


Hi,
 I was quite excited to use hgview, however it fails with the latest crew repo. I had to make some trivial changes (patch below) to get it working. It is real nice! Since I do not know the authors mail ID, I am sending to this list hoping he/she is on it.

diff -r 932366518d39 hgview/hgrepo.py
--- a/hgview/hgrepo.py  Fri Jun 27 18:21:36 2008 +0200
+++ b/hgview/hgrepo.py  Mon Jul 28 06:40:11 2008 +0530
@@ -142,7 +142,7 @@ class HgHLRepo(object):
     def read_nodes(self):
         """Read the nodes of the changelog"""
         changelog = self.repo.changelog
-        cnt = changelog.count()
+        cnt = len(self.repo)
         self.nodes = [ changelog.node(i) for i in xrange(cnt) ]
         self._cache = {}
         self.authors = []
@@ -195,7 +195,7 @@ class HgHLRepo(object):
     def single_diff( self, node1, node2, files ):
         out = StringIO()
         patch.diff( self.repo, node1=node1,
-                    node2=node2, files=files, fp=out )
+                    node2=node2, fp=out )
         return out.getvalue()

     def merge_diff( self, parents, node2, files ):
@@ -233,7 +233,7 @@ class HgHLRepo(object):
         return s

     def count( self ):
-        return self.repo.changelog.count()
+        return len(self.repo)

     def get_ops( self, udiff ):
         hunk = None

-dhruva



----- Original Message ----
> From: Hans Meine <meine at informatik.uni-hamburg.de>
> To: mercurial at selenic.com
> Sent: Sunday, 27 July, 2008 3:20:58 PM
> Subject: Re: Change history visualization tools?
> 
> Hi again,
> 
> Alexander Solovyov wrote to me off-list mentioning hgview (which seems to be a 
> really fast replacement of hgtk, also supporting PyQt), so let me summarize 
> the list of tools again (stand-alone tools first):
>
> - hgview http://www.logilab.org/project/hgview



      Explore your hobbies and interests. Go to http://in.promos.yahoo.com/groups/





More information about the Mercurial mailing list