hgview #65241 support mercurial 1.8 [deprecated]
I tried creating a small project with mercurial 1.8
$ hg --version
Copyright (C) 2005-2011 Matt Mackall and others
Starts a visual hg repository navigator.
- With no options, starts the main repository navigator.
- If a filename is given, starts in filelog diff mode (or in
- With -r option, starts in manifest viewer mode for given
hgview: error: You are not in a repo, are you? | |
priority | important |
---|---|
type | bug |
done in | <not specified> |
load | 0.000 |
load left | 0.000 |
closed by | <not specified> |
Comments
-
2011/04/13 10:03, written by ddouard
-
2011/05/10 01:17, written by kgk
-
2011/05/10 09:03, written by acampeas
-
2011/06/25 07:42, written by andrden
-
2011/06/25 07:59, written by andrden
-
2011/07/04 14:32, written by pydavid
add commentI believe this is due ti the fact, according to the description you give, you have no commit in your repo. You have not commited anything.
Try to hg ci -m "intial import" before running hg qv
That was an example.. I have several 8.X projects that do not seem to be parsed with the same error.
Looks like it fails because of the dotencode change in Mercurial 1.7
stat("/home/kgk/work/hgtest/.hg", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/home/kgk/work/hgtest/.hg/requires", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=33, ...}) = 0
fstat(3, {st_mode=S_IFREG|0644, st_size=33, ...}) = 0
lseek(3, 0, SEEK_CUR) = 0
fstat(3, {st_mode=S_IFREG|0644, st_size=33, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc3fd61f000
lseek(3, 0, SEEK_CUR) = 0
read(3, "revlogv1\nstore\nfncache\ndotencode"..., 4096) = 33
read(3, "", 4096) = 0
close(3) = 0
munmap(0x7fc3fd61f000, 4096) = 0
stat("/usr/share/locale/en_US.UTF8/LC_MESSAGES/messages.mo", 0x7fffabbe7810) = -1 ENOENT (No such file or directory)
stat("/usr/share/locale/en_US/LC_MESSAGES/messages.mo", 0x7fffabbe7810) = -1 ENOENT (No such file or directory)
stat("/usr/share/locale/en.UTF8/LC_MESSAGES/messages.mo", 0x7fffabbe7810) = -1 ENOENT (No such file or directory)
stat("/usr/share/locale/en/LC_MESSAGES/messages.mo", 0x7fffabbe7810) = -1 ENOENT (No such file or directory)
write(2, "Usage: hgview [options] [filenam"..., 346Usage: hgview [options] [filename]
Starts a visual hg repository navigator.
- With no options, starts the main repository navigator.
- If a filename is given, starts in filelog diff mode (or in
filelog navigation mode if -n option is set).
- With -r option, starts in manifest viewer mode for given
revision.
) = 346
write(2, "\n", 1
) = 1
write(2, "hgview: error: You are not in a "..., 47hgview: error: You are not in a repo, are you?
Would it be possible for you to edit hgviewlib/qt4/hgrepoviewer.py and apply:
Then, relaunch and post the traceback.
I have a similar error (though my hg is 1.7.3),
I cloned a local repo, never committed yet, and
the traceback after suggested patch is:
denny@ubuntu:/opt/project/4sharedClone/4shared$ hgview
Traceback (most recent call last):
File "/usr/bin/hgview", line 26, in <module>
main()
File "/usr/lib/pymodules/python2.6/hgviewlib/qt4/hgrepoviewer.py", line 470, in main
repo = hg.repository(u, dir_)
File "/usr/lib/pymodules/python2.6/mercurial/hg.py", line 63, in repository
repo = _lookup(path).instance(ui, path, create)
File "/usr/lib/pymodules/python2.6/mercurial/localrepo.py", line 2151, in instance
return localrepository(ui, util.drop_scheme('file', path), create)
File "/usr/lib/pymodules/python2.6/mercurial/localrepo.py", line 74, in __init__
raise error.RepoError(_("requirement '%s' not supported") % r)
mercurial.error.RepoError: requirement 'dotencode' not supported
even after commit and push the problem persists
Last release seems to works fine with 1.9.0