Copying index when a checkout or branch is done.

Bug #433392 reported by Craig Hewetson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bzr search plugin
Incomplete
Wishlist
Unassigned

Bug Description

When doing a branch or checkout of an indexed branch it would be great for the client to copy the index over to the new branch. The client should only copy the index over if he/she has bzr search plugin installed.
If an update is done and the client has only then installed the search plugin the index must be copied over too.
In other words it can get copied over on check, branch and update.

I know there is a bug:
https://bugs.launchpad.net/bzr-search/+bug/358286
but this has to do with shared repo and is a bit more complicated than this bug.

BTW: I've tested just coping the .bzr/bzr-search dir into a new checkout and this seems to work fine. But I'm not sure if this is all that needs to happen.

Tags: wishlist
tags: added: wishlist
Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 433392] [NEW] Coping index when a checkout or branch is done.

 importance wishlist
 tags -wishlist
 status incomplete

a search index is very big - it can be larger than the original branch
with 2a formats. I need to do something about that, but I don't think it
makes sense to copy them around. Can you expand on why you want to do
that?

In terms of what needs to be copied, yes the self contained folder is
sufficient.

Changed in bzr-search:
importance: Undecided → Wishlist
status: New → Incomplete
Revision history for this message
Craig Hewetson (craighewetson-deactivatedaccount) wrote : Re: Coping index when a checkout or branch is done.

It would mean that doing a checkout on an indexed branch would save others the effort/time of running bzr index.
One less thing to think about.

NOTE: My original problem is to run a quick bzr log <dir> command and I though that using the search plugin would be a good workaround. Also using 2a format isn't an option until bzr 2.0 is released and upgrading from pack-0.92 is possible without pain/bugs. (not that I'm aware of any bugs during bzr upgrade)

Samuel Bronson (naesten)
summary: - Coping index when a checkout or branch is done.
+ Copying index when a checkout or branch is done.
Revision history for this message
sabik (sabik) wrote :

Possibly a separate command to copy the index, then?

As for the use case, presumably copying the index will consume less resources (especially CPU time) than creating a new one from scratch.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.