Re: [Trac] Migrating from svn to hg or git with trac: will changeset wiki links break?
- Original Message - From: "Noah Kantrowitz" > You could make a plugin that handles r\d+ syntax and force > it to load before trac.versioncontrol. Anyone: any hints on how to make my plugin load before trac.versioncontrol? (Especially if it's a single-file plugin?) That's the only part I still need to work on on this project. -- -- Gary Oberbrunner -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
Re: [Trac] Migrating from svn to hg or git with trac: will changeset wiki links break?
On 5/13/2010 2:31 PM, Noah Kantrowitz wrote: > You could make a plugin that handles r\d+ syntax and force it to load > before trac.versioncontrol. That plugin could then handle looking up > rev->sha mappings in a table somewhere (depending on how fancy you > wanted to get). Thanks for the pointer! I have this implemented now but I don't think it's actually handling the links. How do I force it to load before trac.versioncontrol? We're running 0.12.1dev-r9968 on Ubuntu. -- Gary -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
Re: [Trac] Migrating from svn to hg or git with trac: will changeset wiki links break?
- Original Message - > > > > We're considering moving from svn to hg or git (who isn't?), > > Me! At least I have no worries with svn at the moment. Would you mind > elaborating on what is so bad with svn / so good with hg/git? Wow, where to start. :-) Faster/easier branching, merging, sensible tagging, speed, distributed development, rename support, speed, local commits (disconnected workflow), every repo is a backup, speed, disk space savings, ... Google around if you've been living under a source-control rock. :-) -- -- Gary Oberbrunner -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
RE: [Trac] Migrating from svn to hg or git with trac: will changeset wiki links break?
> > We're considering moving from svn to hg or git (who isn't?), Me! At least I have no worries with svn at the moment. Would you mind elaborating on what is so bad with svn / so good with hg/git? Many Thanks, ~ mark c > and I'm worried about all the trac wiki links that point to > rev numbers. I have a few questions: > > * If we switch to a dvcs, what does trac use after the "r" > or in the [123] to refer to a changeset? Shortened SHA-1? > * If I switch my repo from svn -> hg or svn -> git, is there > any way for trac to update all the rXYZ links (in tickets, > wiki pages, milestones, etc.) to point to the new changesets? > > Has anyone done this successfully? Have any pointers? > > Thanks, > > -- > -- Gary Oberbrunner > -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
RE: [Trac] Migrating from svn to hg or git with trac: will changeset wiki links break?
You could make a plugin that handles r\d+ syntax and force it to load before trac.versioncontrol. That plugin could then handle looking up rev->sha mappings in a table somewhere (depending on how fancy you wanted to get). --Noah From: trac-users@googlegroups.com [mailto:trac-us...@googlegroups.com] On Behalf Of Gary Oberbrunner Sent: Thursday, May 13, 2010 10:29 AM To: trac-users@googlegroups.com Subject: [Trac] Migrating from svn to hg or git with trac: will changeset wiki links break? We're considering moving from svn to hg or git (who isn't?), and I'm worried about all the trac wiki links that point to rev numbers. I have a few questions: * If we switch to a dvcs, what does trac use after the "r" or in the [123] to refer to a changeset? Shortened SHA-1? * If I switch my repo from svn -> hg or svn -> git, is there any way for trac to update all the rXYZ links (in tickets, wiki pages, milestones, etc.) to point to the new changesets? Has anyone done this successfully? Have any pointers? Thanks, -- -- Gary Oberbrunner -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
Re: [Trac] Migrating from svn to hg or git with trac: will changeset wiki links break?
Gary Oberbrunner wrote: > * If we switch to a dvcs, what does trac use after the "r" or in the > [123] to refer to a changeset? Shortened SHA-1? Yes, the changeset hash is used instead of the revision number. > * If I switch my repo from svn -> hg or svn -> git, is there any way > for trac to update all the rXYZ links (in tickets, wiki pages, > milestones, etc.) to point to the new changesets? Not that I know of. But you could keep your old SVN repository around, as a (possibly hidden) default repository, and add your new converted repository as a named repository. That way, links to pre-migration changesets remain valid. Of course, this requires multirepo support, that is, 0.12dev. -- Remy signature.asc Description: OpenPGP digital signature
[Trac] Migrating from svn to hg or git with trac: will changeset wiki links break?
We're considering moving from svn to hg or git (who isn't?), and I'm worried about all the trac wiki links that point to rev numbers. I have a few questions: * If we switch to a dvcs, what does trac use after the "r" or in the [123] to refer to a changeset? Shortened SHA-1? * If I switch my repo from svn -> hg or svn -> git, is there any way for trac to update all the rXYZ links (in tickets, wiki pages, milestones, etc.) to point to the new changesets? Has anyone done this successfully? Have any pointers? Thanks, -- -- Gary Oberbrunner -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.