[ANNOUNCE] bzrtools-54 [PATCH] allow tracking a baz project
John A Meinel
john at arbash-meinel.com
Fri Jun 3 14:25:49 BST 2005
Aaron Bentley wrote:
> John A Meinel wrote:
> | Since you did all of the nice work to make this use a nice revision ID,
> | I figured I'd create a patch which allows you to run baz2bzr a second
> | time to update it from an earlier revision.
>
> Thanks, John!
>
> | It basically just works by reading the output directory and determining
> | what the latest patch is. Then it truncates the ancestry at that point.
>
> I'm inclined to do it slightly differently. I'd rather not use the
> output directory. The user may have changed it, so that it no longer
> reflects the latest revision. That would falsify the import
> information. And if the update goes wrong, it could leave the output
> directory in a bad state. So I'm planning to:
>
> 1. Use the temp dir, but copy the .bzr from the output dir, instead of
> initializing the branch
> 2. Import every revision
> 3. Instead of renaming the temp dir to the output dir, replace the
> output dir's .bzr and do a merge.
>
> That would also make it safe to delete {arch} and all the other
> unversioned files, again.
>
But it requires you to re-import the entire history. Which is a big deal
for me. On my machine it takes about 30min to import 50 revisions of a
big project. Right now, there are about 300+ revisions for the entire
history.
So having to wait 3hours just to update to the latest 2 entries is a
little bit much.
Now, I could see using pybaz to make sure that it thinks the tree is in
the same state that bzr thinks it is, and that both of them feel the
tree is unmodified.
Or you could copy .bzr to a temp directory, and then do a checkout of
the latest revision, and just patch up from there. That would be okay.
And if that is what you mean by "every" then I think its fine.
John
=:->
> Aaron
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 253 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20050603/769a9c9e/attachment.pgp
More information about the bazaar
mailing list