Lurker News

Comments (306) 34 threads

Earlier comments
sspiff1 reply#
I'm wondering: how does it handle large binary files? Any better than git or hg without extensions?
luckydude1 reply#
Yes. Binaries are handled by one or more servers, we call them BAM servers. The servers hold the data and your repo holds the meta data, binaries are fetched on demand.

You can have a cloud of servers so the binaries are "close" (think China, India, US).

Jare2 replies#
Two questions:

It is unclear to me if the BAM server is part of this opensourcing or not. The page talks about a 90-day trial.
Also, it is common in other (usually non-D)VCS workflows to lock binary files while working on them, since concurrent changes can't be merged the way text files allow. Does BK support anything like this?

ob#
The BAM server is part of the open source version. The 90-day trial is for the enterprise version (which is the same version, only with commercial support).

BitKeeper doesn't support locking binary files.

luckydude1 reply#
We open sourced everything. So yes, it's there. The commercial site is out of date.

We have not done the centralized lock manager, we didn't get commercial demand for that (yeah, surprised me too). We could do it though, it's not that hard.

Continue this thread — 1 reply

devnonymous1 reply#
Great news! Better late than never! I hope they (or a client of theirs) create a BK backed service soon. I for one, think we need more than just github and altassian in the market if only to ensure the businesses don't take their users for granted (hint: sourceforge)
jeremycole1 reply#
Huh. Thanks for doing this. As a MySQL employee in the early days I used BitKeeper and fell in love with it and kept using it as long as I could. I mainly use Git these days, but frequently miss BitKeeper -- BK felt a lot more natural to me than Git ever has.
luckydude#
Hey Jeremy, long time no talk. We have the MySQL 6.x tree in BK, we can put up on bkbits if you like.
PuercoPop2 replies#
Something I'm wondering and the man page doesn't clear, does it track files across renames or does it only track content like git?
wscott#
Yes, files are tracked as first class objects as they are renamed.
luckydude2 replies#
It tracks renames, it's not like git. Every file has an internal identifier, that's the actual file id, the name is a versioned attribute of the file.
hansihe1 reply#
How does it detect renamed files in the filesystem?

Thank you for open sourcing by the way, I can definitely see how some features (binary file handling, submodule handling) could be useful for large-scale projects like games.

luckydude5 replies#
Each history file contains it's internal name, much like a file system has an inode # that is the internal name for that file. We call the names "keys" and you can dig out the inode key like so (every delta has a key, the first delta is called the rootkey):

    $ bk log -nd:ROOTKEY: -r+ slib.c
    lm@bitmover.com|src/slib.c|19970518232928|52808|f3733b2c327712e5
The key is user@host|relative path|UTC|checksum|64 bits of /dev/random and they are guaranteed to be unique if your DNS config is correct (we don't create duplicate keys, look for the uniq db in the code).

The way we version the entire tree is simple, it's logically (implemented differently for performance):



    ...
where each rootkey uniquely identifies a file and each delta key identifies the tip as of that commit.

Not sure if that is clear enough or not, ask away if not.

Continue this thread — 5 replies

glandium1 reply#
What's not clear from your replies is whether it tracks renames like mercurial, by having users run a manual command to ensure the VCS know about the rename. Except if bk has a file system monitor, I'll assume that's what it does. Unfortunately, data on a few Mercurial repositories I looked at (Mozilla's and Mercurial's) shows that people don't mark all file renames.
neandrake#
The only way I'm familiar with instructing mercurial to do this is with

    hg addremove -s
Is there another way to indicate a rename?

Load more comments