src/mercurialserver/changes.py
branchdebian
changeset 248 107d28ce67f5
parent 242 03d8f07230b3
child 376 d503d5a786f3
equal deleted inserted replaced
240:97a8fe72a35e 248:107d28ce67f5
     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)