Re: [Trac] Migrate a Trac Plugin to a GIT repository?

Jun Omae <[email protected]> Mon, 30 Jun 2025 00:24:07 +0900
Newsgroups gmane.comp.version-control.subversion.trac.general
Message-ID <[email protected]>
On 2025/06/29 17:30, 'Rob Hills' via Trac Users wrote:
> I started with a simple example: the TicketSidebarProviderPlugin <https://trac-hacks.org/wiki/TicketSidebarProviderPlugin>.  I tried the following on my computer:
> 
> git svn clone -s https://trac-hacks.org/svn/ticketsidebarproviderplugin <https://trac-hacks.org/svn/ticketsidebarproviderplugin> ticketsidebarproviderplugin.git
> 

The Subversion URL of the plugin doesn't have trunk, branches, tags.
Therefore, -s (--stdlayout) shouldn't be used.

Instead, try the following:
$ git svn clone --prefix=svn/ --trunk=0.11 -r5528:HEAD https://trac-hacks.org/svn/ticketsidebarproviderplugin

$ git branch -a
* master
  remotes/svn/trunk
$ $ git log --all --oneline --decorate --graph
* ed7ba266d (HEAD -> master, svn/trunk) TicketSidebarProvider 0.1: Bump version
* 9635b16fc TicketSidebarProviderPlugin: Another non-maintainer commit to fix display issues, refs #7428.
* 844bc6b13 TicketSidebarProviderPlugin: Non-maintainer change applying old patch, refs #7428.
* 9d8043bbd Show plugin's svn revision on webadmin plugin panel.
* 862d272f2 use better CSS rule
* c7d83c9f1 better positioning/formatting
* 0dea6474f resize the ticket box sensibly
* 855aa0164 clear after for vertical alignment
* ed8d93008 try to get all of the files, again
* 9ed918efd try to get all of the files
* cc8341ad9 initial version of TicketSidebarProviderPlugin
* 319abe3dc New hack TicketSidebarProviderPlugin, created by k0s

-- 
Jun Omae <[email protected]> (大前 潤)

-- 
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/9c52014e-a4df-4dec-9aef-bf372f70fdc4%40gmail.com.