# HG changeset patch # User Christian Ebert # Date 1212320112 -7200 # Node ID 47bbe7c2fa7d9770971b94aff12e8c3da4ba54a7 # Parent 10ebb9f44b99ea166ac33e1cfa039575f802c564 keyword: use dirstate.parents to obtain current first parent This should be quicker than changectx().node() diff -r 10ebb9f44b99 -r 47bbe7c2fa7d hgkw/keyword.py --- a/hgkw/keyword.py Sun Jun 01 23:47:32 2008 +0200 +++ b/hgkw/keyword.py Sun Jun 01 13:35:12 2008 +0200 @@ -509,7 +509,7 @@ comparing against working dir.''' if node2 is not None: kwt.matcher = util.never - elif node1 is not None and node1 != repo.changectx().node(): + elif node1 is not None and node1 != repo.dirstate.parents()[0]: kwt.restrict = True patch_diff(repo, node1, node2, match, fp, changes, opts)