Interfacing BitKeeper to LXR
Malcolm Box <[email protected]> Sat, 08 Jan 2005 21:52:07 +0000
| Newsgroups | gmane.comp.version-control.bitkeeper.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, I'm trying to code up an interface between LXR (http://lxr.sf.net) and BitKeeper, to enable source browsing of the linux kernel trees. I've run into some problems with working out what commands to use to get the information I need out of BitKeeper, any hints or suggestions would be much appreciated: 1. Discovering the contents of a directory at a certain revision Currently I'm using "bk prs -r<rev>" from the root of the repository, parsing the output, building the full directory tree and then retrieving the contents of the directory I want. This works, but is much slower than I would like - I'm having to process the entire directory tree simply to e.g. read the contents of the root directory. 2. Finding the contents of a file at a certain revision - e.g. x/y/z @a.b.c The obvious command to use is "bk get -p [email protected] x/y/z", but this doesn't appear to work if x/y/z has been deleted after changelist a.b.c even if the file did exist at the specified changelist. "bk get" just reports that x/y/SCCS/s.z doesn't exist, which isn't that helpful! 3. Working out whether a file exists at a certain changelist It would be useful to be able to take a pathname, changelist combination and have a quick way to discover if that file exists at that revision. I can't work out what commands would work for that. Any help would be much appreciated. Cheers, Malcolm _______________________________________________ Bitkeeper-users mailing list [email protected] http://bitmover.com/mailman/listinfo/bitkeeper-users To unsubscribe from this list, go to the above URL, follow instruction at the bottom of the web page.