You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@yetus.apache.org by "Sean Busbey (JIRA)" <ji...@apache.org> on 2015/09/21 21:56:04 UTC

[jira] [Updated] (YETUS-1) Migration of repo history from Hadoop

     [ https://issues.apache.org/jira/browse/YETUS-1?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean Busbey updated YETUS-1:
----------------------------
    Attachment: YETUS-1.1.sh

attaching a script that goes through several git filter-branch calls to scrub out everything we don't need.

here's a repo that's gone through applying this filter and then grafted onto the empty repo commit:

https://github.com/busbey/yetus/commits/HADOOP-12111

presuming remotes for hadoop and yetus, it's effectively:

{code}
$ git checkout hadoop/HADOOP-12111
$ git checkout -b move-to-yetus
# This call is destructive for the current branch
$ ./YETUS-1.1.sh
# Now use a graft to place this history after the empty commit.
$ git log | grep "commit" | tail -n 1
commit 6bd6912d742c51d5656d7afe7e0a7663fc086388
$ git log yetus/master | grep "commit" | head -n 1
commit 8cf07f20f6336c7d7906dc81446448bacd00c036
$ echo "6bd6912d742c51d5656d7afe7e0a7663fc086388 8cf07f20f6336c7d7906dc81446448bacd00c036" > .git/info/grafts
# git log, etc, should show one additional parent commit now.
# finalize the graft before pushing remote
# when doing this for real, you should do the hadoop filtering in a different
# repo, then remove all other branches and tags,
# then git gc --aggressive --prune=now, then finally add that repo
# as a remote for yetus, so you can avoid
# the baggage of prior Hadoop work
$ git filter-branch --tag-name-filter cat -d /Volumes/RAM\ Disk/git-tmp -- --all
# presumes master is yetus/master
$ git checkout master
$ git rebase move-to-yetus
{code}

> Migration of repo history from Hadoop
> -------------------------------------
>
>                 Key: YETUS-1
>                 URL: https://issues.apache.org/jira/browse/YETUS-1
>             Project: Yetus
>          Issue Type: Task
>            Reporter: Sean Busbey
>            Assignee: Sean Busbey
>            Priority: Blocker
>         Attachments: YETUS-1.1.sh
>
>
> filter out the unrelated parts of the code base from the hadoop HADOOP-12111 branch and import into our repo maintaining history.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)