windows support
John Arbash Meinel
john at arbash-meinel.com
Tue Dec 20 01:17:07 GMT 2005
Brett Calcott wrote:
> Hi,
>
> I've just started looking at bzr, and I like what I see. I use windows
> on my laptop, though I've worked on unix and linux. I'm a reasonably
> experienced python programmer. I write everything in python, plus a
> little boost-python for speed. I've used CVS, SVN, Clearcase (gag!) and
> and something I forget the name of (Code-??) on unix.
>
> I have a few questions, if people have the time to answer at this time
> of the year :)
>
> 1. Is there an official windows branch that is kept up to date with the
> mainline? A have downloaded the 0.6.2 version, and it works fine -- but
> I see there is lots of new stuff going on I'd like to get my hands on.
I have my win32 branch, but it is really designed to be integrated into
the mainline. In fact, my latest integration branch has my win32 changes
integrated, which means when Martin gets back (in a couple weeks), it
has a high probability of ending up in mainline.
For now, the branches are at:
http://bzr.arbash-meinel.com/branches/bzr/win32/
and
http://bzr.arbash-meinel.com/branches/bzr/jam-integration/
jam-integration contains things that I think are ready to be in bzr
mainline. win32 is where I do my win32 development work.
There is also Alexander Belchenko's site:
http://bzr.onembedding.com/
He has a setup program which should build a .exe that you can run. He
last posted a couple weeks ago, so he also seems pretty active.
>
> 2. Is there a faster way to get a branch that using http. Branching
> takes an awful long time (> 1hr). I'm in Australia, if that makes a
> difference.
All you have to do is copy the directory. So rsync/scp/etc works. If you
are trying to get bzr itself, you can download mainline with:
rsync -av bazaar-ng.org::bazaar-ng/bzr/bzr.dev .
That will download probably 90% of any branch that you would want. From
there, you can do:
cp -ar bzr.dev bzr-other-branch
cd bzr-other-branch
bzr pull --overwrite http://other/branch
That way "other branch" only has to download the differences, rather
than having to download everything.
I would have to double check what the commands would be for Windows, but
the above would work under cygwin.
As far as I know, there is no native port of rsync, though there are a
couple minimal installs which just provide rsync + cygwin.dll. The
easiest thing to do, though, would be to just install cygwin
(http://www.cygwin.com). Do a minimal install, and just make sure rsync
is included.
>
> 3. How do I simply check out an older version of a file(s) from a local
> branch?
What are you actually wanting to do? Are you wanting to see what has
changed, back up to an old version, what?
'bzr cat -r -1 filename' will output the old version a file to stdout.
You can redirect this to a file if you want.
'bzr revert -r -1 filename' will revert just filename to the previous
revision. (You can always do 'bzr revert -r 125' to revert the entire
tree to revision 125 if you want).
'bzr diff -r -1 filename' will show you just the changes for the given file.
There is a vimdiff plugin originally written by Martin, which I extended
with the --revision option
http://bzr.arbash-meinel.com/plugins/vimdiff/
Which lets you do 'bzr vimdiff -r a..b' To show you the differences
between 2 versions. (bzr vimdiff -r a will show the difference against
the working tree).
I think Erik de Castro was looking into modifying vimdiff to possibly
support any program that can do diffs.
Being on windows, your toolset is quite variable, so how do you actually
want to use the old version of the file?
>
> Cheers,
> Brett
>
>
>
I hope this helps,
John
=:->
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051219/17c345c3/attachment.pgp
More information about the bazaar
mailing list