Uncategorized

SVN to Mercurial

SVN + branching + renaming directories (in eclipse) has been killing me so I decided to move to Mercurial, why not Git? Most comparisons break down the differences to Mercurial is simple and doesn’t have some the weird parts of Git, but Git is cool.

I want simple.

The conversion from SVN to Mercurial process was complicated and annoying, then it was very simple.

Using StackOverflow I got the gist of the solution.
My attempt path:

  • Spend ages trying to get my remote repository to convert straight to Mercurial to no avail, not sure why…
  • Set up a VisualSVN server on my local box, clone my SVN repo using svnsync then spend ages trying to get Mercurial convert to accept the invalid cert – lack of experience/knowledge failure
  • Use hg (Mercurial) to convert straight from the subversion repo files to Mercurial – minor success, Mercurial doesn’t like tree based repositories with lots of projects in them without the use of an extension
  • Use hg to convert each project from SVN to individual repositories – Winrar!

Path to success:

  1. Download Mercurial and TortoiseHg
  2. Set up a local SVN server (I used Visual SVN Server
    for this because it was there from my previous attempt and I don’t know how to work svnserve. Also make a repo (e.g. temp-repo)
  3. Sync your SVN repo to your local machine (if it isn’t already there):
     svnsync init https://local-svn-server/svn/temp-repo/ svn://old-svn-path
  4. For every project in your repository, make a new directory (project-name) and run the following command:
    hg  convert file:///c:/path/to/local/repository/and/project-name project-name/

The only other complication I ran into was importing the new repository into eclipse threw an error, something about dotnetcode (abort: requirement ‘dotencode’ not supported!. Command line: etc). Just go into Preferences->Team-Mercurial and override the Hg executable to use TortoiseHg rather than the built-in one.

Good luck!

VN:F [1.9.1_1087]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.1_1087]
Rating: +3 (from 3 votes)
Friday, January 7th, 2011 Uncategorized 1 Comment

Collaboratively translate Android apps with “String”

Its taken me aaaaaaaaaaggggggggggeeeeeeees to find a solution for the localization (translation) with version control problem so I’m happy to announce that the (Google) search is finally over!

String (still in beta, Google style) by my gengo resolves all of the nagging problems that were stopping Android Agenda Widget from getting localized:

  • Change control
  • Collaboration
  • Simplicity

Of course it’s possible to get change control and collaboration with subversion/git etc but this requires technical translators who are probably going to be busy with their own apps. The alternative, sending rar/zip files full of xml to every generous translator, is cumbersome along with causing unnecessary overheads in time.

All you need to do is upload your values xml files to their server and you too can enjoy on the fly progress, history and private or public projects. String makes the translation process a breeze for anyone, not just the technical users.

At the moment Android Agenda Widget translation is still in initial stages. Once I understand all the ins and outs of String I’ll make the project public as an example!

VN:F [1.9.1_1087]
Rating: 10.0/10 (2 votes cast)
VN:F [1.9.1_1087]
Rating: +2 (from 2 votes)

Tags: , , , , ,

Sunday, August 15th, 2010 Android, Development, Uncategorized 1 Comment

Posting tweet...

Powered by Twitter Tools