Viewing tags in hgweb

37 views
Skip to first unread message

Roy Marples

unread,
Jun 22, 2020, 4:13:23 PM6/22/20
to hg-...@googlegroups.com
Hi List

Thanks for providing this nice tool! It's nice to see my git repos in hg with a
reasonable timeline - all other conversion tools fail with the log!

I've packed the 0.9.0a1 release into pkgsrc-wip for wider testing, it works well
for me :)
The result is here:
https://roy.marples.name/hg/dhcpcd

I have a question though regarding tags. I can see the git tags using the `hg
tags` command, but I don't see the tags in the hgweb interface.
Is this something that is easily fixable?

Thanks

Roy

Dan Villiom Podlaski Christiansen

unread,
Oct 23, 2020, 11:21:40 AM10/23/20
to hg-...@googlegroups.com
On 18 Jun 2020, at 23.39, 'Roy Marples' via hg-git <hg-...@googlegroups.com> wrote:
> I have a question though regarding tags. I can see the git tags using the `hg tags` command, but I don't see the tags in the hgweb interface.
> Is this something that is easily fixable?

Unlike Git branches, which get converted into bookmarks, Git tags are never actually converted, but merely stored or cached within the repository. As a result, the only way to have them shown in a Mercurial repository is through hg-git; i.e. enable the extension, and pull from a Git remote re-convert the history. This shouldn’t actually create any new commits, as the conversion ought to result in the exact same changesets already there.

So, to sum up: enable hg-git on your server and pull.

(Apologies for the rather late response, but I haven’t been following this list all that much, and just saw your mail.)

--

Dan Villiom Podlaski Christiansen
dan...@gmail.com+45 2728 9771


Roy Marples

unread,
Jan 3, 2021, 5:16:29 PM1/3/21
to hg-git
Hi Dan

I've enabled hg-git-0.9.0 on my web server (for reference running under uwsgi + nginx).
Here's the full config

[paths]
/hg/ = /var/hg/*

[extensions]
highlight =
hgext.bookmarks =
hggit =

[web]
staticurl = /hg/static


I still don't see any tags via the web-ui
On the web server I can see the tags by running `hg tags` on the command line.


I've also been quite busy on other projects, but looking again at this now.

Thanks

Roy

Dan Villiom Podlaski Christiansen

unread,
Jan 5, 2021, 10:36:43 AM1/5/21
to hg-...@googlegroups.com
On 3 Jan 2021, at 23.16, Roy Marples <rsma...@gmail.com> wrote:

> Hi Dan
>
> I've enabled hg-git-0.9.0 on my web server (for reference running under uwsgi + nginx).
> Here's the full config
>
> [paths]
> /hg/ = /var/hg/*
>
> [extensions]
> highlight =
> hgext.bookmarks =
> hggit =
>
> [web]
> staticurl = /hg/static
>
>
> I still don't see any tags via the web-ui
> On the web server I can see the tags by running `hg tags` on the command line.
>
> https://roy.marples.name/hg/dhcpcd-hg-git/tags
>
> I've also been quite busy on other projects, but looking again at this now.

Erm, looking at <https://roy.marples.name/hg/dhcpcd-hg-git/tags>, I see plenty of them listed? Everything appears to work?
Reply all
Reply to author
Forward
0 new messages