Bazaar Version Control System

Are there any plans for a portable (flash drive) version of Bazaar?

Asked by RichardJFoster on 2009-11-20

I have a flash-drive which I use to transport some personal project source code so I can make modifications to those utilities at any time.

Currently, I am using git (which is quite happy operating as "portable" software like that distributed by PortableApps.com), but I am unhappy about the way it handles rename operations.

Bazaar, as far as I can tell, would need to be installed on every machine where I want to run it. Are there any plans to make a portable version (I understand that some parts of a standard installation - e.g like TortoiseBzr - would not be available)? Are there any settings which can be made in the current version to make it portable (i.e all files written on the flash drive, no settings stored in user's registry)?

Regards,
Richard

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Solved by:
Dirk Räder
Solved:
2010-03-17
Last query:
2010-03-17
Last reply:
2010-03-16
John A Meinel (jameinel) said : #1

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

RichardJFoster wrote:
> New question #91004 on Bazaar:
> https://answers.launchpad.net/bzr/+question/91004
>
> I have a flash-drive which I use to transport some personal project source code so I can make modifications to those utilities at any time.
>
> Currently, I am using git (which is quite happy operating as "portable" software like that distributed by PortableApps.com), but I am unhappy about the way it handles rename operations.
>
> Bazaar, as far as I can tell, would need to be installed on every machine where I want to run it. Are there any plans to make a portable version (I understand that some parts of a standard installation - e.g like TortoiseBzr - would not be available)? Are there any settings which can be made in the current version to make it portable (i.e all files written on the flash drive, no settings stored in user's registry)?
>
> Regards,
> Richard
>

I'm pretty sure that if you installed the "setup.exe" installer to a
flash drive, that you should be able to just run it from there. I
haven't tried, but we generally don't depend on things being "installed".

(I always run bzr directly from the source tree anyway...)

Have you tried it, and found that it didn't work?

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAksGr+cACgkQJdeBCYSNAAOyhQCgmtV+FheUNNnSiL+OlFgAaSiA
9rwAnAj8YpoX03qbZcErDlK3f86Mzbat
=j2Fp
-----END PGP SIGNATURE-----

I haven't tried it (in portable mode) yet, mostly because the comment about the plugins needing to be in the "Application Data/bazaar/2.0/plugins" folder (yes, sadly I'm working in Windows). Comments like that are typically a give-away that applications are using the standard Windows folders and to not offer a way to change it.

Since I don't *need* any of the plugins (although some like automirror would be nice), I'll give it a try as-is and report back.

Thanks for the information.

Regards,
Richard

Dirk Räder (db6edr) said : #3

Hi,

I tried the following:
install Bazaar on a Windows machine, copy the whole installation directory to a USB stick and then uninstall Bazaar again.

Well, you CAN run bzr with this configuration. Plugins are loaded from the correct directory on the USB stick.

BUT: Configuration is stored locally on the machine you are running it from in %AppData%\bazaar. So you can't just carry your portable bazaar around with you :-(

Regards,
Dirk

Martin Pool (mbp) said : #4

dirk, I think if you set BZR_HOME to point to a directory on the stick, it will work ok. If not, please file a bug.

Is there any standard Windows convention we should be following that would automatically put the configuration onto the stick?

Best Dirk Räder (db6edr) said : #5

Hi all,

thanks to Martin's suggestion with setting BZR_HOME to a directory on the stick, I got an installation of Bazaar fully operational on a USB-stick. All configuration data is stored on the stick, thus it's really portable now :)

Here's a complete how-to:
1. Install any flavor of PortableApps http://www.portableapps.com to your USB-stick.
2. Install the app "Command Prompt Portable" to your USB-stick.
3. Start the app and exit the command prompt again - this creates the necessary configuration file.

4. Install Bazaar on your machine, if not already done.
5. Copy the contents of your Bazaar installation to a directory "portable_bzr" on the USB-stick.
6. If you don't want to keep Bazaar installed locally, uninstall it.

7. Edit Command Prompt Portable's configuration file; you find it at $PortableAppsDirectory\CommandPromptPortable\data\Batch\commandprompt.bat
Append the following two lines:

set BZR_HOME=%~d0\portable_bzr
set path=%BZR_HOME%

and you're done.
When launching Command Prompt Portable, you have all bzr commands available. On any (Windows) machine.

John A Meinel (jameinel) said : #6

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dirk Räder wrote:
> Question #91004 on Bazaar changed:
> https://answers.edge.launchpad.net/bzr/+question/91004
>
> Dirk Räder posted a new comment:
> Hi,
>
> I tried the following:
> install Bazaar on a Windows machine, copy the whole installation directory to a USB stick and then uninstall Bazaar again.
>
> Well, you CAN run bzr with this configuration. Plugins are loaded from
> the correct directory on the USB stick.
>
> BUT: Configuration is stored locally on the machine you are running it
> from in %AppData%\bazaar. So you can't just carry your portable bazaar
> around with you :-(
>
> Regards,
> Dirk
>

You can set the environment variable "BZR_HOME" if you want it to point
outside of %AppData%.

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkuf7PwACgkQJdeBCYSNAAPOvwCfWhmUdL1yW7uhwQqpqdIIVaoT
DQkAn2MJ0QKHe2W+zq1aI6yzOV37Jj5J
=fclH
-----END PGP SIGNATURE-----

Nice comprehensive solution. Thanks for posting it. (FWIW, I had already switched to Fossil instead of Bazaar - see http://fossil-scm.org - as it more closely matched with what I wanted / needed.)