changeset 47048:03c73fc6f89a stable

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
author Matt Harbison <matt_harbison@yahoo.com>
date Tue, 27 Apr 2021 16:58:59 -0400
parents 8d733cbc2724
children 2a77c817d451
files hgext/git/gitlog.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/git/gitlog.py	Tue Apr 27 12:59:17 2021 -0400
+++ b/hgext/git/gitlog.py	Tue Apr 27 16:58:59 2021 -0400
@@ -238,7 +238,7 @@
             for r in self._db.execute(
                 'SELECT filename FROM changedfiles '
                 'WHERE node = ? and filenode = ?',
-                (hn, nullhex),
+                (hn, gitutil.nullgit),
             )
         ]
         c = self.gitrepo[hn]