Saturngod

What's on my mind

Converting from Git to Bitbucket - Bitbucket - Atlassian Documentation - Confluence

<div class="posterous_bookmarklet_entry">
  > <div>

Git is another Distributed Version Control System, not unlike Mercurial itself. There are times when converting is something you want to do.

For this example, we’re going to use the popular will_paginate plugin for Ruby on Rails, hosted by Github.

The repository URL is git:github.com/mislav/will_paginate.git.

Mercurial does not allow cloning remote Git repositories, so you first have to download it:

$ git clone git://github.com/mislav/will_paginate.git will_paginate
Initialized empty Git repository in /tmp/will_paginate/.git/
remote: Counting objects: 1670, done.
remote: Compressing objects: 100% (598/598), done.
Indexing 1670 objects…
remote: Total 1670 (delta 1021), reused 1670 (delta 1021)
 100% (1670/1670) done
Resolving 1021 deltas…
 100% (1021/1021) done

Now that we have the full Git repository locally, we can convert:

$ hg convert will_paginate will_paginate_hg
initializing destination will_paginate_hg repository
scanning source…
sorting…
converting…
216 Initial WillPaginate import
215 Extra css
[…]
1 added test for parent commit (removing :include from count in ActiveRecord 2.1)
0 CHANGELOG and bump up the tiny version number to 2.3.3
updating tags

You’re done! If you look in the newly created repository will_paginate_hg, you will see that the entire history, as well as branches and tags have been converted to Mercurial. As with our Subversion example you can go ahead and upload the repository to our servers.

    </div><div class="posterous_quote_citation">via [confluence.atlassian.com](http://confluence.atlassian.com/display/BITBUCKET/Converting+from+Git+to+Bitbucket)</div>
</div>

Apiwork

I gave my framework name is apiwork because it just design for api. I made api library for Google,Twitter, Facebook and I hope i will add more in my framework. It’s my private framework and it just use in my work. In the previous two week, I tooke a time for Google API with oAuth. Now, I totally understand and I made my own class for Google API and gxml_parser class. Gxml parser class for retrive the data from atom and xml for google api. 

My framework totally look like CodeIgniter because I’m cary on CI. haha… it true… let check this code.

$this->load->model(“mymodel”);

I got this idea from CodeIgniter and I’m making MVC and totally base on CI frarmework design. So, syntax look like CI. By the way, today I new codaset git hosting. I can use private hosting in there. Codaset still beta and it will be charge for host. I host my apiwork code in there. Github is nice for Git Hosting but private hosting price is not cheap. I just use for personal and not for business. So, I can give money to github and I use codaset :)

I also think about should I release my MV framework Draft ? No library. Just framework. So, some begineer may learn how to make MVC framework. Another thing, my framework’s library should use in native PHP like Zend. So, my co-worker can use in other project easily. Imm… need to do many things in my apiwork.