src/mercurialserver/changes.py
changeset 242 03d8f07230b3
parent 67 fd16d9a1234b
child 376 d503d5a786f3
equal deleted inserted replaced
241:4af1e1ccf75b 242:03d8f07230b3
     1 # Copyright 2008-2009 LShift Ltd
     1 """
     2 # Copyright 2006 Vadim Gelfer <vadim.gelfer@gmail.com>
     2 Find all the changes in a node in a way portable across Mercurial versions
     3 #
     3 """
     4 # Authors:
       
     5 # Paul Crowley <paul@lshift.net>
       
     6 # Vadim Gelfer <vadim.gelfer@gmail.com>
       
     7 #
       
     8 # This software may be used and distributed according to the terms
       
     9 # of the GNU General Public License, incorporated herein by reference.
       
    10 
     4 
    11 def changes(repo, node):
     5 def changes(repo, node):
    12     start = repo.changectx(node).rev()
     6     start = repo.changectx(node).rev()
    13     try:
     7     try:
    14         end = len(repo.changelog)
     8         end = len(repo.changelog)