changeset 39895 | 1a184b727aff |
parent 28562 | 2b585677220e |
child 43076 | 2372284d9457 |
--- a/contrib/python-hook-examples.py Wed Sep 26 22:17:34 2018 -0700 +++ b/contrib/python-hook-examples.py Wed Sep 26 10:38:37 2018 -0700 @@ -19,7 +19,7 @@ node = kwargs['node'] first = repo[node].p1().node() if 'url' in kwargs: - last = repo['tip'].node() + last = repo.changelog.tip() else: last = node diff = patch.diff(repo, first, last)