Re: [Trac] Migrate a Trac Plugin to a GIT repository?
"'Rob Hills' via Trac Users" <trac-users-/[email protected]> Sun, 29 Jun 2025 16:30:17 +0800
| Newsgroups | gmane.comp.version-control.subversion.trac.general |
|---|---|
| Message-ID | <83a302f3406df64e40473237a3319cc011855744.camel@medimorphosis.com.au> |
Hi Jun Omae,
Thanks for your prompt reply
On Sun, 2025-06-29 at 04:32 +0900, Jun Omae wrote:
> On 2025/06/29 1:30, Rob Hills wrote:
> > I'm planning an upgrade of our Trac 1.4 instance to 1.6
> >
> > The first step is of course to check the plugins we are using.
> >
> > I have created a new environment for my trial upgrade using the UV
> > package manager <https://docs.astral.sh/uv/>. So far this has
> > worked well for me.
> >
> > UV is able to install from GIT repositories but not SVN
> > repositories. Unfortunately most of the Trac Plugins are in SVN
> > repositories only.
> >
> > What is involved in migrating a plugin from its SVN repository to a
> > GIT repository (eg the Trac-Hacks repository
> > <https://github.com/orgs/trac-hacks/repositories?type=all>). I'm
> > keen to do this for the plugins needed for my project if it's
> > possible.
> >
> > Rob
> > Waikiki, Western Australia
>
> No plans, and it would take a lot of time to do so. How about
> converting the necessary Subversion repositories to Git locally using
> git-svn?
I'd not used git-svn before so I spent some time with it today,
unfortunately without much success.
I started with a simple example: the TicketSidebarProviderPlugin [1].
I tried the following on my computer:
git svn clone -s https://trac-hacks.org/svn/ticketsidebarproviderplugin ticketsidebarproviderplugin.git
However, after this command completed I don't have a working
repository.
git branch -a
shows no branches at all.
git svn rebase
results in the following:
fatal: bad revision 'HEAD'
rev-list --first-parent --pretty=medium HEAD --: command returned error: 128
Any tips on how to create a Git repository from a Trac Hack Plugin in
their svn repository?
TIA,
--
Rob Hills
Waikiki, Western Australia
[1] TicketSidebarProviderPlugin
https://trac-hacks.org/wiki/TicketSidebarProviderPlugin
--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
To view this discussion visit https://groups.google.com/d/msgid/trac-users/83a302f3406df64e40473237a3319cc011855744.camel%40medimorphosis.com.au.