{"id":16672769,"url":"https://github.com/kktsvetkov/haremasu","last_synced_at":"2026-04-27T14:05:01.673Z","repository":{"id":111488179,"uuid":"217899282","full_name":"kktsvetkov/Haremasu","owner":"kktsvetkov","description":"Quick and dirty PHP script for export subversion history into git","archived":false,"fork":false,"pushed_at":"2019-12-21T13:06:53.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-19T18:43:27.934Z","etag":null,"topics":["git","git-svn","history","migration","php","subversion","svn","svn-to-git","svn2git"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kktsvetkov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-27T18:38:48.000Z","updated_at":"2019-12-21T13:06:55.000Z","dependencies_parsed_at":"2023-03-13T13:40:02.520Z","dependency_job_id":null,"html_url":"https://github.com/kktsvetkov/Haremasu","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kktsvetkov%2FHaremasu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kktsvetkov%2FHaremasu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kktsvetkov%2FHaremasu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kktsvetkov%2FHaremasu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kktsvetkov","download_url":"https://codeload.github.com/kktsvetkov/Haremasu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243324266,"owners_count":20273098,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git","git-svn","history","migration","php","subversion","svn","svn-to-git","svn2git"],"created_at":"2024-10-12T12:07:14.602Z","updated_at":"2025-12-27T18:33:49.959Z","avatar_url":"https://github.com/kktsvetkov.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Haremasu\n\nQuick and dirty PHP svn-to-git script: it exports subversion history into git\n\n![Haremasu](https://repository-images.githubusercontent.com/217899282/2b2c5580-ffb5-11e9-9b23-e975fde7cb96)\n\n# What it does ?\n\nThe `haremasu.php` script is simply a shortcut between `svn` and `git` commands.\nIt exports the subversion history from `svn log` into a temporary file, and then\nimports it into the locally cloned git repo.\n\nVery quick and dirty ;-)\n\n# How to use it ?\n\n1. The script uses the `svn` and `git` binaries, so make sure both are available.\nYou can check by doing a simple `which svn` and `which git` checks.\n\n2. Start with cloning a git repo. This is where the subversion/svn revisions\nwill be imported.\n```\ngit clone git@github.com:kktsvetkov/wp-hefo.git\n```\n\n3. Find the subversion/svn repo URL. I advice that you get a local copy of the\nrepo instead of using a remote one, because it will work faster.\n```\nsvn checkout https://plugins.svn.wordpress.org/wp-hefo/\n```\n\n4. The arguments for the script are the svn url and the folder of the locally\ncloned git repo. If the subversion/svn project has a local copy, use its folder\nas the svn url.\n```\nphp haremasu.php svn-url local-git-repo-folder\n```\n\n5. Here is what the output should look like:\n```\nphp haremasu.php ~/svn.wp-hefo/ ~/github.wp-hefo/\n\nHAREMASU: export svn to git\n \u003c Source Folder: /Users/kt/svn.wp-hefo/\n \u003c Source SVN URL: \u003c https://plugins.svn.wordpress.org/wp-hefo\n\n \u003e Target Folder: /Users/kt/github.wp-hefo/\n \u003e Target Git URL: \u003e git@github.com:kktsvetkov/wp-hefo.git\n\n \u003c Extracting SVN History...\n \u003c Done.\n \u003c SVN History: 5 revisions\n\n \u003c [1/5] r40918 | Mrasnika | Wed, 16 Apr 2008 10:45:06 +0000\n \u003c [2/5] r40926 | Mrasnika | Wed, 16 Apr 2008 10:55:58 +0000\n \u003c [3/5] r40927 | Mrasnika | Wed, 16 Apr 2008 10:56:35 +0000\n \u003c [4/5] r105060 | Mrasnika | Wed, 25 Mar 2009 11:53:07 +0000\n \u003c [5/5] r105071 | Mrasnika | Wed, 25 Mar 2009 12:50:53 +0000\n```\nYou can see the result at https://github.com/kktsvetkov/wp-hefo/commits/master\n\n# Partial History Exports\n\nYou can export only a file or a folder from subversion/svn. You just need to\nuse the svn source URL to point to that file or folder. Here are few examples:\n```\nphp haremasu.php ~/svn.wp-hefo/trunk/hefo.php ~/github.wp-hefo/\nphp haremasu.php http://plugins.svn.wordpress.org/wp-hefo/tags/0.2/hefo.php ~/github.wp-hefo/\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkktsvetkov%2Fharemasu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkktsvetkov%2Fharemasu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkktsvetkov%2Fharemasu/lists"}