-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate source code from SVN to GitHub repository #2
Comments
During the discussion that happened on IRC today, @omshinde has pointed out this relevant link. I tried using the svn2git command line tool and get some kind of result. The command used was the following:
The authors.txt file used in the command line was created bu using the informations provided on developper name and email. The result is the following:
From my understanding it looks like a starting point. Obviously, all the referenced trac issues cannot be pointed automatically. But this may come later on I guess. What do other think of trying to now create a repository named "ZOO-Project" within the "ZOO-Project" organization to see how it looks like? Indeed, from now on, I am not sure how the published result will look like. I mean, for instance I don't know if all the user like mine, where djay (SVN user) was translated to an existing GitHub handle (Gérald Fenoy gerald.fenoy@geolabs.fr, will get the corresponding GitHub account shown online. I would be in for trying to create the new repository. Waiting for your feedbacks. |
I think we should create a new repository "ZOO-Project" here, to try the svn2git process. By the way, the GRASS team did really well to document and record all of their scripts (https://courses.neteler.org/remarks-on-svn-trac-to-github-migration/), including:
|
That is an amazing beginning. |
Looks good, +1 |
Can you please provide a link to the authors.txt file so I can add my info? |
The authors.txt file can now be edited from the repo (authors.txt). |
Thanks, my info is correct. |
As a first tentative, I have tried to push the GIT repository built using the svn2git tool on ZOO-Project-svn2git repository. It looks almost fine, there seems to be an issue in the authors.txt for Markus Neteler, I probably do not set the proper email address causing the user account not to be set properly. If you look at https://github.com/ZOO-Project/ZOO-Project-svn2git/commits/main?before=42a90aebb847c7500da79449fa38f824340eba56+490&branch=main and search for "Commits on Dec 7, 2011" you will see that the Markus Neteler is written in the same way as if no GitHub account was corresponding. Anyway, for a first try, I think the result is promising. |
From my last test with the ZOO-Project-svn2git repository, I can confirm that we can preserve link between SVN users and GitHub accounts. Now we should know if we should wait for the trac issues to be ported to GitHub issues to get the link between the trac issue and the commit message, in case it is referring any. There is another option, we may link to the current trac issue for every issue mentioned in commit messages. Ideas are welcome. |
Hi Gerald, Jeff and Rajat,
Thanks for all the hard work with the migration to github.
Let me know if I can help in anyway.
My knowledge about github migration is rudimentary
and I may not be able to come up with ideas to
make your task easier.
Best
Venka
…On 3/30/2021 1:04 AM, Gérald FENOY wrote:
From my last test with the ZOO-Project-svn2git repository, I can confirm that we can preserve link between SVN users and GitHub accounts.
Now we should know if we should wait for the trac issues to be ported to GitHub issues to get the link between the trac issue and the commit message, in case it is referring any. There is another option, we may link to the current trac issue for every issue mentioned in commit messages.
Ideas are welcome.
|
To clarify the situation. In the SVN commit message we can reference a Trac ticket by using the So for me, we have two options to solve this link issue between commit messages and Trac tickets that should become GitHub issue. The first option is to update the commit messages to replace the The second option is to wait for the Trac tickets to be moved to GitHub issues and replace the references to Trac tickets with references to GitHub issues. I would personally prefer the first option. |
I decided to create the ZOO-Project GitHub repository. Currently, there is still the issue with ticket link. Maybe we can simply specify somewhere (wiki or anywhere else) that the reference in commit message containing "#XXX" prior to 9fb0a48dd5a95d6b6ac0c0a8367192e888b50cc5 are referring to https://zoo-project/trac/ticket/XXX . In any case, commit messages can be updated afterward. Should we consider that from now, we consider this new ZOO-Project GitHub repository as our official source code location? |
@venka-foss4g thanks for your support! Note: similar to my "good question" response, to acknowledge the question but to give a response for things that I have no idea about, ha, you/we can use the Github emoji (click the smiley icon above each of these comments here on the github page) to give a +1 to show that you're following, you support it, and, it shows that you/we are being active ha. win-win ha.) |
@gfenoy I think the in-line ticket references in comments (for others reading who are new to Github, I'm referring to https://docs.github.com/en/github/writing-on-github/autolinked-references-and-urls ) must be rewritten to point to the associated Github ticket (goal is to not have any references remaining to Trac). To be more clear: when I mentioned to keep Trac tickets as read-only, I meant that only for archival purposes, I don't think any of our new infrastructure should point to any Trac page anymore, that's the goal. To discuss together tomorrow in meeting. (this could also likely be where we 'earn our money', meaning it may be a custom script) |
Yes, as the sooner we do this, the sooner Google search bots archive our repository, making it easier for users to find our code. Again, should discuss this as PSC tomorrow, together. PS. hope we can use our Github wiki for the meeting agenda tomorrow ;) hint. |
The commit messages referring any ticket were fixed by using the following command and the rewrite.py file available on this repo (ref. https://lists.osgeo.org/pipermail/gdal-dev/2018-March/048246.html):
Now for every ticket referred from a commit message, the link corresponding to the current ticket on the trac system is properly provided. Once tickets will be migrated, we may consider changing the commit messages again to update the reference. |
As discussed during today PSC meeting, we can now close this ticket as SVN history is now in good shape on the ZOO-Project/ZOO-Project repository. Also, I would like to inform every @ZOO-Project/developer that from now on, we should consider the ZOO-Project/ZOO-Project repository as our current source versioning system. The SVN will not be used anymore. |
The text was updated successfully, but these errors were encountered: