开发者

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

开发者 https://www.devze.com 2023-02-02 14:46 出处:网络
I once did a repository fetch from google using bzr fro开发者_开发知识库m a svn repo like this

I once did a repository fetch from google using bzr fro开发者_开发知识库m 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?


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.


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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号