/srv/irclogs.ubuntu.com/2011/04/23/#bzr.txt

KombuchaKipI'd like to get the last date of revision in my current working copy to be used in a Makefile. What is the recommended way to do that?02:28
fullermdLook at version-info02:33
KombuchaKipfullermd: Is that a bzr command?02:51
KombuchaKipfullermd: It's pretty slow to run. Thanks though. I'll look into it.02:53
nealmcbHow do I get the logs for a file that is no longer visible?  bzr log password.c21:04
nealmcbgives me : bzr: ERROR: Path unknown at end or start of revision range: libmysql/password.c21:04
jelmerhi nealmcb21:04
jelmerhave you tried specifying a revision in which the file still exists ?21:04
nealmcbjelmer: Howdy!21:04
nealmcbwell the first issue is figuring out when that would be21:05
nealmcbjelmer: And I did try bzr log -r tag:mysql-4.0.1 password.c  which should have it, but got no result21:07
jelmernealmcb: shouldn't that be bzr log -r tag:mysql-4.0.1  libmysql/password.c ?21:08
nealmcbwell, I'm in that directory now, thought that was enough21:08
jelmeryeah, it should be21:08
=== tomaw_ is now known as tomaw
* jelmer tries to remember how the per file log logic works21:09
nealmcbI also tried looking at a revision and later: bzr log -r tag:mysql-4.0.1.. password.c21:12
nealmcband got bzr: ERROR: Start revision not found in left-hand history of end revision21:12
nealmcbjelmer: but this helps find where it still existed:  bzr ls -r tag:mysql-4.0.121:13
nealmcb....if I do that for previous revisions with boolean search....21:15
jelmernealmcb: alternatively, it should be possible to just do "bzr log -v | less" and search for libmysql/password.c21:17
nealmcbjelmer: useful trick - I thought about that before with just a grep, but then I wouldn't necessarily get all the context I wanted, which could be very big...21:20
nealmcbit's also pretty slow to go thru the whole log....21:20
jelmerYeah; we should improve log to do the right thing.21:21
jelmerIt's not entirely trivial as there may have been multiple different files that have had that particular name over the course of history21:21
nealmcbodd - the first hit was on revno 2 - so no log of the deletion??21:23
jelmernealmcb: there should be21:23
jelmernealmcb: perhaps its parent directory was renamed at some point before it was deleted?21:24
nealmcbAhh - https://bugs.launchpad.net/bzr/+bug/18152021:25
ubot5Ubuntu bug 181520 in Bazaar "bzr log FILE don't show revisions where file was removed" [High,Confirmed]21:25
nealmcb3 years old....21:25
nealmcbGot any handy scripts to do binary search on the "ls" command?  I can't think of anything better right now....21:26
jelmernealmcb: you're not using "bzr log FILE" now though are you?21:26
nealmcbjelmer: Nope - bzr log -v |less21:27
jelmeranother thing you might try is "bzr log -r2.. libmysql/password.c"21:27
nealmcbusing Bazaar (bzr) 2.2.421:28
nealmcbI get bzr: ERROR: Path unknown at end or start of revision range: libmysql/libmysql/password.c21:28
nealmcbOh - removing libmysql/ since I'm in the directory -- and I get nothing21:29
nealmcb(no error message, no log beyond what I see in revno 2)21:30
jelmerthis is in a standard mysql tree?21:31
nealmcboops - I had switched to look in a branch of an old revision....  now I'm getting logs21:31
nealmcbjelmer: Ahh - good - this even shows me the removal:  bzr log -v -r2.. password.c21:34
nealmcbwhen I use the right tree....21:34
nealmcbbut it sure would be nice to be able to find out the last time the file was removed.21:34
nealmcbjelmer: thanks!21:34
jelmernealmcb: np21:38
jelmernealmcb: It would indeed be nice to have some way to refer to removed files, not just to files in the start or end tree.21:38
lifelessbzr search can do some of that FWIW21:41
jelmerah, that's good to know21:42
nealmcblifeless:  No help could be found for 'search'21:43
jelmernealmcb: it's a separate plugin - lp:bzr-search21:44
nealmcblifeless: after install, bzr help search refers to a mysterious "QUERY" argument - where does one find more?21:47
lifelessnealmcb: run bzr index22:04
lifelessnealmcb: then bzr search libmysql/libmysql/password.c22:04
lifelesshmm, I may not have wired it up; it certainly knows the path22:06
lifelessnealmcb: I was mainly mentioning it to jelmer, in case he is looking at ways to address finding deleted files in core22:06
nealmcblifeless: Re: 'This locates documents in bzr at a given url and creates a search index for that url'22:16
nealmcbI'm still puzzled - are documents just any sort of file?  url would typically be a local path (needs to be a file:// url or not?)22:17
nealmcbis it a full-text index?  of all previous revisions?  If it is too big is there a way to delete the index?22:17
lifelessits a full text index22:18
lifelesspaths, deltas to files etc22:18
lifelessits stored in .bzr/bzr-search22:18
lifelessyou can just rm that dir22:18
lifelessby url it means any location you can pass to bzr for e.g. info/log etc22:19
nealmcbcan I just index a directory?  I try   bzr index .   and it says that isn't a branch.22:20
nealmcbwould it return a hit for every revision, or summarize them somehow?22:20
nealmcb(sorry to pester you with questions....)22:20
lifelessnealmcb: you can only index a branch, though indexing a subdir of a branch is an interesting question its not been implemented22:23
lifelessbzr index $(bzr root)22:23
lifelesswill find the root of your branch for you22:23
lifelessI just did22:25
lifelessbzr search socket timeout22:25
lifelessin bzr22:25
lifelesshttp://pastebin.com/NtsULbNn22:25
lifelessis the output22:25
lifelessits a little geekish22:25
lifelessthe revisions can be passed to other commands like log though - via '-r revid:$therevision'22:26
lifelessor show in annotate with --show-ids, that sort of thing22:26
nealmcblifeless: Thanks for the tips, and the code!22:40
lifelessmy pleasure22:42
lifelessif you wanted to file a bug on including/excluding paths to index, that would be cool.22:42
* lifeless afks22:43

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!