How to use... (This would be a good FAQ topic)

Asked by drewkeller

It is not entirely obvious how to use this plugin and I don't see any documentation about actual usage. These notes are the result of a significant amount of trial and error.

These instructions are for TortoiseBzr on Windows. If you're using the command line, I trust you can translate these steps to the appropriate command line syntax. If you're on Linux, perhaps RabbitVCS is a good alternative that can handle both bzr and git already (seemed a bit buggy to me).

INSTALLATION ===========================

Install the bzr-git plugin in the Bazaar plugins folder (e.g. C:\Program Files\Bazaar\plugins\git). You must rename this folder to 'git'; if you leave it as 'bzr-git' you will get an error.

Install the Dulwich module into the git folder....
 * http://launchpad.net/dulwich
 * Create a folder named _lib (e.g. C:\Program Files\Bazaar\plugins\git\_lib)
 * Extract the dulwich module into that folder so that setup.py, etcetera end up in the _lib folder itself (.e.g. C:\Program Files\Bazaar\plugins\git\_lib\setup.py). If you leave them in the dulwich-0.7.1 folder, you will get an error.

You don't need any installation of git itself.

USAGE ==================================

Create folder 'myproject' somewhere (we're doing this in Windows Explorer, right?).

Right click, select 'Bazaar Init...'

Right click, select 'Tortoise Bazaar' > 'Run command'

Select the git-import command and enter the URL of git project.
  Note: The URL should be git://, not http://. Do not include anything for a branch.
  Example: If the clone command is
    git clone --branch branchname http://git.mydomain.com/myproject.git
  you should enter
    git://git.mydomain.com/myproject.git

You'll get a message that says, "Use bzr checkout to create a working tree in the newly created branches."
If you explore the folders that were created, you'll see a folder 'myproject/myproject.git', where 'myproject.git' is a bzr repository with various subfolders for the git branches where each branch is also a bzr repository. In other words, none of these will contain any actual files. You'll need to perform a checkout into a separate folder in order to get some files to work with. So...

Back on 'myproject', right click and select 'Bazaar Checkout/Brach'.
For the source, enter 'myproject/myproject.git/branchname'
Change the destination if you want your working folder somewhere other than the automatic one.

That's it!

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Git Plugin Edit question
Assignee:
No assignee Edit question
Solved by:
drewkeller
Solved:
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
drewkeller (drew-drewkeller) said :
#2

Came back to refer to my notes and apparently this topic had expired, so it doesn't show up on the default search. Perhaps it can be added to the FAQs? Or at least marked as Answered/Solved?

Revision history for this message
drewkeller (drew-drewkeller) said :
#3

I suppose I can mark it solved myself. Duh :/

Revision history for this message
Jelmer Vernooij (jelmer) said :
#4

Sorry, I hadn't noticed this question -

Thanks for documenting the installation of bzr-git on Windows. Hopefully we can get it included in the standard installer at some point, too. I think we should at least include this information in the plugin guide.

Would you perhaps be interested in submitting a patch to the migration docs ? The docs are here (plain text with some basic formatting): https://launchpad.net/bzr-migration-docs and the current output is here: http://doc.bazaar.canonical.com/migration/en/foreign/bzr-on-git-projects.html

The bit about translating http:// to git:// is usually true, but not in all cases - it happens to be true for e.g. github because it supports the same paths for both protocols, but a lot of smaller sites only run either one, or have different paths.

Revision history for this message
drewkeller (drew-drewkeller) said :
#5

I finally got around to this.
I don't know where to put the patch so I uploaded it to my web server. You can download it from
http://www.drewkeller.com/downloads/bzr-on-git-projects.txt.patch

I'm not familiar with the ins and outs of that documentation format, and I don't have a way to check it, so hopefully it works ok.

Revision history for this message
drewkeller (drew-drewkeller) said :
#6
Revision history for this message
Jelmer Vernooij (jelmer) said :
#7

On 08/28/2011 05:25 AM, drewkeller wrote:
> Question #157255 on Bazaar Git Plugin changed:
> https://answers.launchpad.net/bzr-git/+question/157255
>
> drewkeller posted a new comment:
> oops...
> http://www.drewkeller.com/download/bzr-on-git-projects.txt.patch
Thanks for working on that. The formatting looks reasonable. If there
are any issues, I'm sure we can fix them up when merging.

Can you perhaps propose this for merging in the bzr-migration-docs
project on launchpad ?

Cheers,

Jelmer

Revision history for this message
drewkeller (drew-drewkeller) said :
#8

The only action available to me there is "Submit code" which looks like it would make me an owner of a branch. Is that really what I want?

Revision history for this message
drewkeller (drew-drewkeller) said :
#9

Nevermind, I submitted it as a bug.

Revision history for this message
Jelmer Vernooij (jelmer) said :
#10

Hmm, that is the correct link but I agree it leads to a confusing page. I've filed a bug in Launchpad about it.

The bug works fine too, we should be able to get this merged. Thanks!

Revision history for this message
nancy jane (nancyjane7) said :
#12

Thanks for sharing this guide it really helped me a lot also check : https://haniastyle.com/how-to-choose-the-most-appropriate-nail-color-for-your-skin-tone/