/srv/irclogs.ubuntu.com/2012/05/28/#bzr.txt

sarcasticCatDoes bazaar have some equivalence functionality as GIT Blame?05:22
spivsarcasticCat: have you tried 'bzr blame'? :)05:50
sarcasticCatlol that's that first thing I tried :P05:50
spivWhat does it lack that you're looking for?05:51
sarcasticCatspiv: Uhm, there's this source file (that has been worked on by multiple people), I'd like to know who've made what changes05:55
sarcasticCatspiv: git blame would do just that. But at my place, the cvs is bazaar, and I'd like to know if bzr is capable of this05:56
spivsarcasticCat: bzr blame should tell you that.05:58
spivsarcasticCat: is it not doing that for y ou?05:58
spiv(you may also find GUI implementations nice, like 'bzr qannotate' from the qbzr plug, or 'bzr gannotate' from the bzr-gtk plugin)05:59
sarcasticCatspiv: Oh, ok. Yeh, it worked. (It didn't work the first time because I was at the wrong directory)05:59
sarcasticCatthanks05:59
spivYou're welcome.05:59
sarcasticCatspiv: Uhm, now I get <filename> is not versioned sometimes.06:02
sarcasticCatWhat might be the reason for ths? (i'm pretty sure people have made a lot of changes gradually in these files)06:03
sarcasticCat*this06:03
spivsarcasticCat: hmm, when you try "bzr blame <filename>"?  what does "bzr status <filename>" report?06:05
bob2how sure are you that it is versioned06:05
sarcasticCatbob2: almost 100%. (This file has different blocks of code written in different styles, so it must've been written by multiple people, obviously not at the same time. So it must be versioned)06:07
bob2:/06:08
bob2er, use bzr status or bzr log to find out06:08
sarcasticCatwell, bzr log would give me > 2000 lines (from 2009 till now) :(06:09
bob2bpaste.net shell session of 'bzr log somefile | head ; bzr blame somefile | head'06:09
sarcasticCatOooh, bzr status <filename> gave me "nonexistent", which doesnt make anysense06:10
sarcasticCatI'm staring at the file right now. o_O06:10
sarcasticCatthe syntax is [bzr status <path to file>] , right?06:11
bob2== not in bzr06:11
bob2(this is all the same as git btw)06:12
sarcasticCatbob2: Sorry, i'm not quite following. What do you mean by "not in bzr"06:12
sarcasticCat?06:12
bob2the file isn't in bzr06:13
bob2or your path is screwed up somehow06:13
sarcasticCatuhm, yeah. there's a typo in it! Sorry for the noise!06:14
sarcasticCatbtw, is there a way to check who first added a particular file?06:16
bob2bzr log --help06:16
bob2-> reverse -> | head06:16
sarcasticCatbob2: uhm...? reverse what?06:17
bob2?06:17
bob2the output of log06:17
bob2prety sure it's the exact same answer as in git, just with the word 'bzr' instead of the word 'git'06:18
sarcasticCatWell, I know what the output of log looks like. But I dont see how that relates to my question.06:20
bob2? the first commit is the one that added it06:20
sarcasticCatoh, I see what you're saying. I thought you said to do a [bzr log] (w/o the filename)06:21
mgzmorning08:11
fullermdHumbug.08:15
=== jml` is now known as jml
* jelmer waits for the 2.5.1 SRU tests to pass..12:35
mgzhow parallel are you going?12:36
jelmermgz: 4 I think12:36
jelmerthunderbird is also keeping one of my CPU cores busy though12:36
mgzehehe12:37
mgzthunderbird is the antivirus of nix.12:37
jelmerwhat it's doing, I have no clue..12:37
fullermdSome things man isn't meant to know.12:41
frathgeberhi, all. i've been googling for an answer to this question for quite a while but can't seem to find an answer14:05
frathgeberis it possible to configure which shared repository a branch uses?14:06
frathgebersituation as follows: i have a co-located workspace in /path/to/colo and a legacy shared repo in /path/to14:06
mgzyes, but depends what you mean by 'configure'14:06
frathgeberi want to choose the shared repo location14:07
frathgebere.g. with bzr reconfigure14:07
frathgeberor by editing .bzr/branch/branch.conf or any other configuration14:07
mgzit will just use the one closest as it climbs the directories14:07
frathgeberwhich break my co-located workspace14:07
frathgeberbecause i want my branches to use /path/to/colo/.bzr/branches14:08
mgzthere's no problem having a repo in colo14:08
* jelmer luncheons14:08
jelmerfsvo lunch14:09
frathgeberyes, but for some reason the branch suddenly picks up the shared repo in the parent14:09
frathgeberwhich obviously doesn't contain its history14:09
frathgeberso as a consequence my co-located workspace is now broken14:09
mgzjelmer, not quite yet! is there some command that will make a colo branch init a repo where it lies?14:09
frathgeber:)14:09
jelmermgz: a bzr-colo branch or a bzr-core colocated branch?14:10
frathgeberi'm using bzr-colo14:10
frathgeberbut i don't think it matters14:10
frathgeberit's related to the bug i just reported: https://bugs.launchpad.net/bzr/+bug/100553214:10
ubot5Ubuntu bug 1005532 in Bazaar "bzr reconfigure --standalone has no effect on lightweight checkouts" [Undecided,New]14:10
jelmerfrathgeber: that does matter14:11
frathgeberok14:11
jelmerthe way in which bzr-colo stores it branches is confusing bzr14:11
mgzfrathgeber: so, in theory there's no problem with the layout you want, just some of the conversion commands are likely too zealous about sqiushing things together14:11
frathgeberjelmer: yes, i realised it's confusing bzr14:12
frathgeberand now i'm looking for a way to un-confuse bzr14:12
jelmerI would be inclined to reassign this to bzr-colo14:12
frathgeberi.e. make it use .bzr/branches as the shared repo again14:12
frathgeberinstead of ..14:12
frathgeberi think what i'm really asking is: how does bzr-colo make a branch use a shared repo in a subdirectory14:13
frathgeberand how can i restore this configuration if it's broken?14:13
jelmerfrathgeber: if a branch itself doesn't have a repository bzr will look upwards14:14
jelmerso if you remove .bzr/branches/foo/.bzr/repository it will start using .bzr/repository again14:14
frathgeberthere seems not to be a .bzr/branches/foo/.bzr/repository14:16
jelmerif .bzr/branches/foo is a standalone branch there would be14:16
frathgeberok14:17
frathgeberso i need to bzr reconfigure --standalone .bzr/branches/foo14:17
frathgeberoh bugger, i see what has happened14:18
jelmerfrathgeber: I don't think bzr-colo branches would ever want to be standalone?14:18
jelmershouldn't they use the repository in .bzr/branches ?14:19
frathgebermy failed attempt to reconfigure did actually delete the shared repository in .bzr/branches/.bzr/repository14:19
frathgeberthey should, yes14:19
mgzright, go and eat some things jelmer :)14:20
frathgeberbut my failed attempt to reconfigure it as per bug #1005532 seemed to have killed that shared repository14:20
ubot5Launchpad bug 1005532 in bzr-colo "bzr reconfigure --standalone has no effect on lightweight checkouts" [Undecided,New] https://launchpad.net/bugs/100553214:20
jelmeranyway, "lunch" first.. back in 45 min :)14:20
frathgeberthanks, enjoy your lunch14:20
* frathgeber just had 'lunch' a few min ago14:20
mgzfrathgeber: the interesting thing for that bug is probably the steps to get into that situation14:21
mgzif you can reproduce from scratch, that would be usefulful to include steps for14:21
frathgeberyes, it actually started earlier, but i hadn't expected that that would be relevant14:21
frathgebersituation was as follows (and i think will be subject of another bug report):14:22
frathgeberco-located workspace in /path/to/colo14:22
frathgebernow i did bzr colo-checkout ../mybranch as described in the bug report14:23
frathgebersubsequently however, i rebased /path/to/colo (which in fact is also a lightweight checkout of mybranch)14:23
frathgeberactually, that should be legal, shouldn't it? rebasing a branch that has 2 lightweight checkouts shouldn't break either of them?14:26
mgzshouldn't have any impact, indeed14:28
frathgeberanyway, i noticed that bzr info in ../mybranch gave me the 'wrong' shared repo and indeed all bzr operations were broken14:30
frathgeberbzr: ERROR: Revision ... not present in ...14:30
frathgeberso i was looking for a way to point it back to the 'right' shared repo14:31
mgzright, but you're not sure which command actually broke the repo, correct?14:31
mgzfor the bug report, that's what we need14:31
frathgebercorrect14:31
mgzfor recovery, it sounds like you want to make a fresh branch from another copy of the repo, as at some point the current one got deleted14:32
frathgeberindeed14:32
mgzpossibly during recovery attempts after the layout got confused rather than at the same time14:33
frathgeberi think i had pushed everything upstream before14:33
frathgeberi've repeatedly done bzr reconfigure --standalone followed by bzr reconfigure --use-shared to figure out what actually happened14:34
mgzremember .bzr.log also records your past commands and might be useful in working out what happened when14:35
frathgebervery good point indeed14:35
frathgeberi'll have a look at that and see if it tells me sth14:36
frathgeberah, there we go. i think i remember now what caused me to try those weird experiments14:38
frathgeberbzr reported ../mybranch was out of date, so i tried bzr up, which failed14:38
frathgebersaying 'branch has no revision ...'14:38
frathgebermgz: i can attach .bzr.log to the bug report?14:39
mgzyup, you may want to trim it a little, but keeping a few commands before that update would likely be useful too14:40
frathgeberyeah, i found the but from where it's potentially relevant14:41
frathgeberodd, https://bugs.launchpad.net/bzr/+bug/1005532/+addcomment is broken for me, i get the generic 404 'Lost something?'14:43
ubot5Ubuntu bug 1005532 in bzr-colo "bzr reconfigure --standalone has no effect on lightweight checkouts" [Undecided,New]14:43
frathgeberrefreshing helped14:44
mgzodd, on post or get?14:45
frathgeberget14:46
frathgeberi think it was because jelmer had made a status change in the meantime14:46
mgzah, I know what it is14:46
mgzproject changed from bzr to bzr-colo and there's no redirect14:47
frathgeberah, right14:48
frathgeberthat's fair enough14:48
frathgeberi'll try to rescue my shared repo and maybe someone can make some sense from my bzr.log14:49
mgzcreating a fresh branch from the bits you pushed upstream is probably easiest14:50
frathgeberyep14:51
frathgebermid-term i'll probably switch to colo-core14:53
frathgeberwhen is that going to make it into the release?14:53
mgzit's in 2.5, with a few ui polish issues14:54
mgzneil was talking about making bzr-colo use the new core colo support where available14:54
frathgeberok. where can i find documentation on core colo?15:00
frathgebercanonical.com is really slow today...15:02
mgznot sure what we have on the user-facing side15:02
frathgebernothing obious at least :)15:02
frathgeberit seems i've lost the 2 most recent commits17:12
frathgebernow the branch is in some weird limbo and appears unusable17:13
frathgebere.g. bzr: ERROR: Could not determine revno for ... because its ancestry shows a ghost at ...17:14
jelmerfrathgeber: did you perhaps remove any of the repository directories?17:23
jelmerone repository probably has/had mroe revisions than the other17:23
frathgeberi didn't conciously remove any of the repository directories17:24
frathgeberbut quite possibly one of the commands i ran did (see https://bugs.launchpad.net/bzr-colo/+bug/1005532/+attachment/3166962/+files/bzr.log)17:24
ubot5Ubuntu bug 1005532 in bzr-colo "bzr reconfigure --standalone has no effect on lightweight checkouts" [Undecided,New]17:24
frathgeberis there anything i can do to rescue that branch? i still have the working tree and also the dirstate, so i could branch from upstream and diff to see the changes and try to re-create those 2 missing commits17:29
frathgeberis there an easier/safer way to do that?17:29
jelmerfrathgeber: it's probably easiest to talk to somebody familiar with bzr-colo, I'm not entirely sure what all the colo- commands do17:31
frathgeberok. but assuming the repository is lost (which is what i'm assuming now), do i have better options to ressurect those 2 lost commits than what i described above?17:35
vilafrathgeber: yup. On the other hand, 'find . -name pack-names -print' should tell you where some repository may be hidden and hopefully recoverable (I'm here for less than ~5 minutes)17:37
frathgeberok, will run that17:38
frathgeberalas it's gone17:39
frathgeberi'll go the manual route then17:40
frathgeberthanks for your help jelmer, mgz, vila17:40
fullermdOh look, 2.5.1 takes lplibrarian into the hundred millions.  Yeesh.19:47
jelmerfullermd: whu?19:53
* fullermd shrugs19:54
fullermdDoesn't mean anything.  Just cute.19:55
dodgerbluehello all21:33
dodgerbluedo you have any idea how can i commit so i can get a partial version like <version>.1.1 ?21:34
dodgerblueor <version>.1.2?21:34
bob2why?21:41
dodgerbluebob2: i just wanna know how21:42
bob2ok!21:42
wgzdodgerblue: that happens when you commit a merge of another commit22:06
dodgerbluewgz: thanks :)22:07
javedo I need to install the "colo" plugin if I want to try colocated branches in bzr 2.5?22:11
wgzjave: nope, that's a different thing22:17
javeokay. were can I find proper docs on colocated branches?22:23
jelmerjave: there aren't any at the moment, colocated branches are still experimental in 2.522:24
javeah well.22:25
jelmerI think the main documentation is some emails to the mailing list at this point.22:25
javeis colo branches usable at all in 2.5?22:25
javeor should I wait?22:26
jelmerjave: I wouldn't recommend it for production use22:26
javeokay thanks,22:26
jelmerif you're working on plugins etc and want to make them ready for colocated branches then it might be worth to have a look at them22:26
javeno I just wanted to try out colo branches on the emacs repo22:27
vadi2bzr viz's UI is very broken for me in 2.5.0. I can't scroll all the way to the top of the revisions history. Does anyone else have this?22:51
jelmervadi2: it's fine here22:53
jelmervadi2: what version of bzr-gtk is that?22:53
vadi20.103.0+bzr792-1ubuntu122:54
vadi2This is what I can scroll up to: http://i.imgur.com/i7mBv.png you can tell it's not the latest one because the arrow button is still pressable. The only way I can get to the top is via the keyboard up/down buttons - and when I switch that way, it fails to scroll, but does select the revision properly/22:56
jelmervadi2: I would recommend filing a bug, I haven't seen any bugs about this issue before23:00
vadi2alright23:01

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