Alexander Benz
Alexander Benz

Reputation: 31

Problem with loading hggit extension in TortoiseHG

I'm trying to get the hggit extension to work under Windows 7 (64bit) using TortoiseHG (2.1.2). I followed the official setup instructions, i.e. cloning the hg-git repository and adding the "hggit = ..." line to the extensions section in my mercurial.ini file.

However the extension doesn't seem to be loaded. When trying to clone a repository I get the following error :

abort: repository git://... not found!

running

hg help hggit

results in

hg: unknown command 'hggit'

I also don't get any errors at all, no matter what I put in the extensions section of the mercurial.ini file.

Any ideas on what the problem might be ? Are there any log files at all that show me whether there are problems loading the extensions ?

Upvotes: 3

Views: 908

Answers (2)

Bart Verkoeijen
Bart Verkoeijen

Reputation: 17723

Had the same problem, and in my case I forgot to specify the [extensions] line in the INI file.

Not working:

[ui]
username = My name <[email protected]>
hgsubversion=D:\Repotools\hg-svn\hgsubversion
hggit=D:\Repotools\hg-git\hggit

Working:

[ui]
username = My name <[email protected]>

[extensions]
hgsubversion=D:\Repotools\hg-svn\hgsubversion
hggit=D:\Repotools\hg-git\hggit

When you run the command hg help hggit it will report if the directory path is incorrect.

Upvotes: 1

sylvanaar
sylvanaar

Reputation: 8216

You should include what you have after hggit =

It should be pointing to the hggit subdirectory in the directory you cloned the repository into.

e.g. hggit=C:\hg-extensions\hg-git\hggit

Upvotes: 0

Related Questions