Bazaar - pull the last revision only (and not the whole branch)
- by Sandman4
Shortly: How can I take the latest revision (only) from a remote bazaar repository and add it as a new revision to a local repository.
Background: I have a development system and a production system. On a development system there's a bazaar repository having branch with lots of development revisions. Once in a while I want to incorporate the latest developments into production system. I want to do so by some sort of "pulling" (development system can not connect to production for security reasons, but production can initiate connection to development).
On the production, I don't want the whole development revision history, only those revisions which actually go into production (normally it's the branch tip). Yet I want version control on the production system to keep track of what actually goes into production each time.
bzr pull pulls the whole branch. bzr pull --revision=last:1 also pulls the whole branch, up to the specified revision.
bzr merge --pull --revision=last:1 also pulls the whole branch. bzr merge --pull --revision=last:2..last:1 and bzr merge --pull --change=last:1 both pull only the new changes introduced in the latest revision, but not changes introduced in the older revisions.
With lightweight checkout I have no track of revisions which are pulled into production - local working tree remains part of the remote repository
The only way I see so far is importing the working tree using some rsync or scp and committing them to a local branch afterwards. Any better ideas ?