Scenarios for Bazaar and SVN interaction

Posted by Adam Badura on Super User See other posts from Super User or by Adam Badura
Published on 2012-03-26T13:37:11Z Indexed on 2012/06/02 4:43 UTC
Read the original article Hit count: 513

Filed under:
|

At our company we are using SVN repository. I'm doing programming from both work (main place) and home (mostly experiments and refactoring). Those are two different machines, in different networks and almost never turned on at the same time (after all I'm either at work or at home...)

I wanted to give a chance to some distributed version control system and solve some of the issues associated with SVN based process and having two machines. From git, Mercurial and Bazaar I chose to start with Bazaar since it claims that it is designed do be used by human beings. Its my first time with distributed system and having nice and easy user interface was important for me.


Features I wanted to achieve were:

  1. Being able to update from SVN repository and commit to it.
  2. Being able to commit locally steps of my work on a task.
  3. Being able to have few separate tasks at the same time in their own local branches.
  4. Being able to share those branches between my work and home computer.

As a means of transport between work and home computer I wanted to use a pen-drive. Company server will not work since I may not instal there anything. Neither will work a web service repository as I may not upload source code to web (especially if it would be public which seems to be a common case in free web services).

This transport should be Bazaar-based (or what ever else I will end with) so it can be done more or less automatically but manual copying and pasting some folders or generating patch files (providing they would work - I have bad experience with patch files in SVN) would work as well if there is no better solution.

Yet the pen-drive should only be used for transportation. I do not want to edit or build there.


I tried following Bazaar guidelines for integration with SVN. But I failed. I tried both

bzr svn-import

and

bzr checkout

providing URL from my repository as both https://... and svn+https://.... In some cases it had some issues with certificates but the output specified argument to ignore them so I did that. Sometimes it asked me to log in (in other cases maybe it remembered... I don't know) which I did.

All were running very slow (this could be our server issue) and at some point were interrupted due to connection interruption (this almost for sure is our server issue: it truncates the connection after some time). But since (as opposed to SVN) restarting starts a new rather than from point where it was interrupted I was unable to reach all the ~19000 revisions (ending usually somewhere around 150).


What and how should I do with Bazaar? Is is possible to somehow import SVN repository from the local checkout (so that I do not suffer the connection truncation)? I was told that a colleague that used to work with us has done something similar (importing SVN repository with full history) with Mercurial like in no time. So I'm seriously considering now trying Mercurial even if only to see if that will work.

But also what are your general guidelines to achieve the listed features?

© Super User or respective owner

Related posts about svn

Related posts about bazaar