[ https://issues.apache.org/jira/browse/SIS-422?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16529821#comment-16529821 ]
Martin Desruisseaux commented on SIS-422: ----------------------------------------- Last steps [proposed on the mailing list|https://lists.apache.org/thread.html/6adfb76225b195ff05474c786a3286217b5f2e1a7a10a0f372a07a6f@%3Cdev.sis.apache.org%3E]: * [Tags|https://svn.apache.org/repos/asf/sis/tags/] cleanup: ** Rename {{0.2-incubating-rc4}} as {{0.2-incubating}}. ** Delete the other {{0.2-incubation-foo}} tags. * [Branches|https://svn.apache.org/repos/asf/sis/branches/] cleanup: ** Delete branches 0.1 to 0.8 (development should use the tags if needed). ** Delete {{JDK9}} (work on this branch never really started). ** Delete the content of {{JDK8}} directory. Replace by a single {{README}} file giving the last revision number (so people can easily browse in the history) and a note saying that development moved to the {{geoapi-4.0}} branch on Git. * [Trunk|https://svn.apache.org/repos/asf/sis/trunk/] termination: ** Delete the content of trunk directory. Replace by a single {{README}} file giving the last revision number (so people can easily browse in the history) and a note saying that development moved to the {{master}} branch on Git. {panel:title=Proposed README content on trunk} As of June 2018, Apache Spatial Information System (SIS) source code repository migrated from Subversion to Git. The new repository for SIS development is now https://gitbox.apache.org/repos/asf/sis - see http://sis.apache.org/source.html for more information. Revision 1833333 contains the last commit on trunk. To see the last source code before migration to Git, use any of the following links: * https://svn.apache.org/repos/asf/sis/trunk/?p=1833333 * http://svn.apache.org/viewvc/sis/trunk/?pathrev=1833333 {panel} > Migrate from SVN to Git as the main SIS code repository > ------------------------------------------------------- > > Key: SIS-422 > URL: https://issues.apache.org/jira/browse/SIS-422 > Project: Spatial Information Systems > Issue Type: Improvement > Reporter: Martin Desruisseaux > Assignee: Martin Desruisseaux > Priority: Major > Fix For: 1.0 > > > Migrate to git as the main source code repository. After this work: > * The source code repository will become > https://gitbox.apache.org/repos/asf/sis. > * The https://svn.apache.org/repos/asf/sis/trunk/ repository will become > read-only. > We will continue to use Subversion for the {{site}}, {{sis-data}} and > {{non-free}}. Before to make the new git repository ready for use, we will > try to cleanup its history by removing large files, especially: > * {{California_Restaurants.csv}} (19 Mb) > * {{DEPARTEMENT.SHP}} (3 Mb) > * {{ANC90Ply_4326.shp}} (0.7 Mb) > Those large files were identified as below (source: > [stackoverflow|https://stackoverflow.com/questions/10622179/how-to-find-identify-large-files-commits-in-git-history]): > {code:Bash} > git rev-list --objects --all | sort -k 2 > allfileshas.txt > git gc && git verify-pack -v .git/objects/pack/pack-*.idx | egrep "^\w+ > blob\W+[0-9]+ [0-9]+ [0-9]+$" | sort -k 3 -n -r > bigobjects.txt > for SHA in `cut -f 1 -d\ < bigobjects.txt`; do > echo $(grep $SHA bigobjects.txt) $(grep $SHA allfileshas.txt) | awk '{print > $1,$3,$7}' >> bigtosmall.txt > done; > {code} > Commands executed for removing them: > {code:Bash} > git filter-branch --tree-filter 'find . -name "California_Restaurants.csv" > -delete' -- --all > git filter-branch --tree-filter 'find . -name "DEPARTEMENT.*" -delete' -- > --all > git filter-branch --tree-filter 'find . -name "ANC90Ply_4326*" -delete' -- > --all > git filter-branch --tree-filter 'find . -name "*~" -delete' -- --all > git filter-branch --tree-filter 'rm -rf "sis-data"' -- --all > git update-ref -d refs/original/refs/heads/master > git reflog expire --expire=now --all > git gc --prune=now > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)