felipec / git-remote-hg

Transparent bidirectional bridge between Git and Mercurial for Git
GNU General Public License v2.0
369 stars 87 forks source link

Issue #72 is ok when using solution below, already mentionend by another user. #76

Closed lvandenb closed 5 years ago

lvandenb commented 5 years ago

Solution for me was; like

I just added:

if hasattr(a, 'rev'): a = a.rev() b = b.rev()

To the getrange function to check if there is a rev attribute/function that it can call. I am not 100% sure what was getting passed before or if that is sufficient to guard calling the rev method.

mnauw commented 5 years ago

As mentioned in #72, these issues are due to changes in recent Mercurial's internal API. They have also been reported as issues in this fork and are already fixed there (along with many other ones), see also generally #69.

felipec commented 5 years ago

As mentioned in #72 the fix is commit 00e95fd8df745db297eab035b31af8a518627bb1 which is released in v0.4.