how to fetch only recent updates from a svn repository using bzr that already imported the repo

140 views Asked by At

I once did a repository fetch from google using bzr from a svn repo like this

bzr svn-import http://feedparser.googlecode.com/svn/ feedparser
cd feedparser
bzr branch trunk mybranch
cd mybranch
bzr checkout

now the repository svn repo ( http://feedparser.googlecode.com/svn/ ) has some new updates that i want to fetch but since I changed some files in my local repo ( i.e. the bzr repo on my local machine ) how can I fetch and merge the updates with my update using bzr without loosing the update and my changes?

3

There are 3 answers

0
bialix On BEST ANSWER

Use pull command:

cd trunk
bzr pull http://feedparser.googlecode.com/svn/

or even

cd trunk
bzr pull

The latter may not work first time, but will work next time you do pull after pull with explicit URL.

After pull finished you can simply merge the changes from trunk into mybranch:

cd ../mybranch
bzr merge ../trunk

Inspect changes after merge and commit the result.

0
Federico On

You can do a svn-import again to the imported repository, it will fetch only the new revisions.

0
ismail On

Did you try bzr update it will merge back changes from the upstream repository.