Hi, Jiří: >> I need to rename 100,448 files in bzr, but running "bzr mv" 100,448 >> times is taking too long. Anybody know if there's some sort of >> multi-move?
Zenaan: > I only know git sorry. If there is any similarity, then some > assumptions needs to be provided by you, eg how are the files > structured (one directory, or multiple?), what depth of directories?, Various directories in a tree structure. > and how are you doing a single rename? Well, I have a list of old-new filename pairs (and a script to produce them, if they need to be in a different format). The first idea was just to make a shell script that runs "bzr mv" for each pair, but that takes too long. I think the problem is that bzr does a lock and sanity check each time it starts up. Hence the request for a multi-move... > If export-to-git (eg apt-cache show git-bzr bzr-git) and back to bzr > is quick enough (probably not) that might be a way. Probably not, and it would probably also change all the commit IDs so all the other copies of the repo would have to be fixed up. > Perhaps figure a quick way in bash (with find or some such) and > perhaps bzr can then auto-delete the "old" files and auto-add the > "new" (renamed) files (ie, with a single bzr command).. Yeah, I'd prefer a rename rather than re-adding all the files. With 100000 files adding up to 2G, it's worth doing it right. I may try "bzr mv --auto", though; Depending on what algorithm it uses, it may either be perfect, or completely useless. > PS: you might try stackoverflow dot com or whatever it's called > (google site search may be useful etc). Hmm, I tried general search but not site-specific; I'll give it a go. Jiri -- Jiří Baum <[email protected]> Sabik Software Solutions Pty Ltd 0413 183 117 http://www.baum.com.au/sabik -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
