equal
deleted
inserted
replaced
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) |