# HG changeset patch # User Matt Harbison # Date 2021-04-27 20:58:59 # Node ID 03c73fc6f89a367135de78b6d08805a2fdbe7068 # Parent 8d733cbc27241603d66266f880fb00e92720b734 git: use the proper filenode for deleted files in changelog.changelogrevision Inline printing shows it still doesn't find the removed file in the test, but it is at least a str instead of bytes like the immediate query before it that does find files. Looking at the database, it doesn't look like the remove was recorded. Additionally, `hg log -r 'removes("re:.*")'` stacktraces. Differential Revision: https://phab.mercurial-scm.org/D10524 diff --git a/hgext/git/gitlog.py b/hgext/git/gitlog.py --- a/hgext/git/gitlog.py +++ b/hgext/git/gitlog.py @@ -238,7 +238,7 @@ class changelog(baselog): for r in self._db.execute( 'SELECT filename FROM changedfiles ' 'WHERE node = ? and filenode = ?', - (hn, nullhex), + (hn, gitutil.nullgit), ) ] c = self.gitrepo[hn]