hg gives warnings due to hg-git "mercurial.py"

22 views
Skip to first unread message

Guy Pardon

unread,
Jan 23, 2024, 7:56:12 AMJan 23
to hg-git
Hi,

My local installation of hg fails with the following warning:

*** failed to import extension "hggit" from /Users/guy/Documents/Repositories/Checkouts/mercurial/hg-git/hggit: module 'mercurial.hg' has no attribute 'schemes'


Does anybody know what could be the problem?


Thanks

Guy

Guy Pardon

unread,
Feb 2, 2024, 2:25:07 PMFeb 2
to hg-git
Since the warning is mentioning hg-git I thought this group would have been the right place to ask?

If not, please let me know where to try instead?

Thanks

Op dinsdag 23 januari 2024 om 13:56:12 UTC+1 schreef Guy Pardon:

Uwe Brauer

unread,
Feb 2, 2024, 2:54:27 PMFeb 2
to Guy Pardon, hg-git
>>> "GP" == Guy Pardon <dr.guy...@gmail.com> writes:

> Since the warning is mentioning hg-git I thought this group would have been
> the right place to ask?

> If not, please let me know where to try instead?

I think this group is the only place to ask this sort of questions (well
besides the proper mercurial user list maybe) but it is quite deserted I
might say.

I use still hg 5.2 and a special changeset of hg-git (written by Manual
Jacob at least 3 years ago) that allows me to export topics (and named
branches) as git branches.

I lately pushed and pulled quite a bit to git repositories and did not
encounter any problem, but maybe I am also not doing fancy stuff, just
pulling/pushing and some merging, no rebasing or anything like this
sorry of not being more helpful

Uwe Brauer


--
I strongly condemn Hamas heinous despicable pogroms/atrocities on Israel
I strongly condemn Putin's war of aggression against Ukraine.
I support to deliver weapons to Ukraine's military.
I support the EU and NATO membership of Ukraine.

Guy Pardon

unread,
Feb 2, 2024, 3:04:30 PMFeb 2
to hg-git
Danke für' die Antwort Uwe!

Actually, I am not really trying anything at all, this is just the hg-git warning I get when using hg on a regular repository. I haven't even started using the functionality hg-git tries to offer.

Thanks!
Guy

Op vrijdag 2 februari 2024 om 20:54:27 UTC+1 schreef o...@ucm.es:

Uwe Brauer

unread,
Feb 3, 2024, 1:16:18 PMFeb 3
to Guy Pardon, hg-git
>>> "GP" == Guy Pardon <dr.guy...@gmail.com> writes:

> Danke für' die Antwort Uwe!

Gern geschehen


> Actually, I am not really trying anything at all, this is just the hg-git
> warning I get when using hg on a regular repository. I haven't even started
> using the functionality hg-git tries to offer.

Hm

What happens if you run


hg clone git://git.savannah.gnu.org/auctex.git

Or

hg clone git://git.code.sf.net/p/matlab-emacs/src

Pierre-Yves David

unread,
Feb 5, 2024, 3:36:57 AMFeb 5
to hg-...@googlegroups.com, Guy Pardon

Seems like you have the hg-git extension enabled, but that you use an older version that has issue with your newer Mercurial version.

--
You received this message because you are subscribed to the Google Groups "hg-git" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hg-git+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hg-git/ad93cc41-233c-4f77-9b6b-9569e81a4dben%40googlegroups.com.
-- 
Pierre-Yves David

Guy Pardon

unread,
Feb 28, 2024, 8:39:20 AMFeb 28
to hg-git
Thanks,

I reinstalled hg-git and now it works (after updating my .hgrc file accordingly to reflect the new installation folder).

BTW I downloaded hg-git from  https://pypi.org/project/hg-git/#files

Guy

Op maandag 5 februari 2024 om 09:36:57 UTC+1 schreef Pierre-Yves David:
Reply all
Reply to author
Forward
0 new messages