Sync. Subversion and Mercurial by hgsvn

Import
hgimportsvn https://repos.svn.sourceforge.net/svnroot/repos
cd repos
hgpullsvn
hg update

Custom repos/.hg/hgrc
[ui]
username = Your Name
ediotr = vim

[paths]
default = https://your_name@bitbucket.org/your_name/your_repos

After the import, there is a local .hgignore file, just add it:
hg add .hgignore
hg ci -m “add .hgignore file generated by hgimportsvn”

If you have Bitbucket repos just push to it, you can push to any mercurial repos, and default hgrc I use Bitbucket:
hg push https://your_name@bitbucket.org/your_name/your_repos

Pulling new changes from SVN
hgpullsvn
hg merge
hg ci -m “merge from svn”
hg push https://your_name@bitbucket.org/your_name/your_repos

Advertisements

About xlcwu

Self-employed (One-man Company), Developer/Chief Designer/Consultant, Embedded Linux/NAS/Storage/Platform/Devices, Xcode/Cocos2D/Cocoa/Objective-C, at Joe’s Lab – Newland ESP (TM).
This entry was posted in Coding, Computer and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s