[00:20] hi, I restored a backup and am not able to issue `bzr log` for example [00:20] I get bzr: "ERROR: Not a branch:..." [00:21] Everything I tried didn't work, what can I do? [00:21] This working tree directory has a .bzr directory and the parent directory has the repo with its .bzr directory as well [00:32] Does 'bzr info' report anything helpful? [00:32] Do you have a .bzr/branch directory? What files and directories does it contain? [00:33] libertas, maybe the permissions are wrong? [00:38] poolie: they're fine... [00:39] bzr check [00:39] No working tree found at specified location. [00:39] No branch found at specified location. [00:39] No repository found at specified location. [00:39] what does 'ls -o .bzr' show [00:42] repo$ ls -o .bzr [00:42] shows repository [00:43] main$ ls -o .bzr [00:43] shows branch & checkout [00:45] all with owner my user [00:54] what does 'find .bzr -type f' show? (pastebin it) [00:54] In short, bzr expects a branch to have .bzr/branch-format and .bzr/branch/format and a few other files/dirs, similar for repositories and checkouts. [00:55] But rather than guess one-by-one which part might be missing or unreadable or whatever it's probably quickest to just show us exactly which files are present. [00:57] http://pastebin.com/vmb79skT [00:58] and inside main: http://pastebin.com/VTbTYFgM [00:59] Lots of stuff seems to be missing there [00:59] Notably the .bzr/branch-format and .bzr/branch/format files [00:59] And I didn't see .bzr/repository/format in the first one either [00:59] no, it's not there [01:00] Compare what you'd see from a fresh 'bzr init-repo' or 'bzr init' [01:01] So your restored backup appears to be missing a fair few things. Fortunately it looks like you *might* have all the revision history still [01:02] in another backup (older) I get http://pastebin.com/0a2kRsNp [01:02] If you make a fresh repository with init-repo, and copy the pack-names and packs/* contents into it, you may have a functioning repo with the key data, try browsing it with 'bzr qlog' or similar. [01:02] spiv: thank you very much, I'll try that [01:03] Right, that older backup looks like it may have a valid (but empty?) repository [01:03] And still a completely broken branch/checkout [01:03] Once you get running again I'd be very worried about your backup system [01:05] :-) I messed up a bit with dropbox, that's why I'm running into problems now. [01:05] But thank you again! [01:06] You're welcome, glad I could help. [01:06] libertas, what did you use for the backups? [01:06] thanks spiv [01:06] Oh! I should also say, the .bzr/branch/last-revision file from the older backup may be helpful [01:07] In reconstructing a reasonably current branch — again, 'bzr init' a branch and copy the last-revision from the backup into place [01:08] Or just 'bzr pull -r REVID' if you find the right revision via 'bzr qlog' or similar [01:08] poolie: the problem was that during the restoring I messed with dropbox, it's not the backup tool I used: rdiff-backup [01:09] spiv: next time I'll let you know if I could manage save history. [01:09] have to go now. Bye! [03:54] hello everyone - thumper asked me to ask here if / how it is possible to merge several bzr repos into one repo while keeping all the history [03:54] soooo ... how would I do that :) [03:54] hi smspillaz [03:54] tell me more about your case? [03:54] hello :) [03:55] right so [03:55] I have a whole bunch of repos in launchpad for all the individual compiz plugins (don't ask why, complicated git/bzr import sync stuff), which I now want to move into one big repo, so compiz-plugins [03:56] I'd like to avoid just copypasting them into a repo and starting from there and preferably try and keep all the history for the individual plugins [03:56] so when you view the history, it will be in linear order for every single commit made across each branch [03:57] do you want to put them into subdirectories of that tree? [03:57] or should they mesh together at the top? [04:00] poolie: subdirectories, preferably [04:04] Hmm, I think the merge_into plugin is out-of-date, unfortunately (which would have made doing this pretty convenient) [04:05] (It wouldn't be hard to update it to use the MergeIntoMerger that was added for use by bzr-builder though) [04:06] well, it should also be possible to use some bzr foo to collect all the revisions and then apply them bottom to top [04:06] It wouldn't interleave the commits the way you want [04:06] i was going to suggest merge-into too [04:06] But then you would have the original commit history intact, and could reconstruct that view (by e.g. forcing a log sorted by date, or something) [04:07] it will still look like they merged [04:07] In lieu of merge-into being current, you could use a bzr-builder recipe... [04:07] haha probably ;-) [04:09] spiv do you know if merge-into is very out of date or just trivially? [04:09] you could install an old bzr somewhere so you could use merge-into? [04:09] should I give bzr builder a try ? [04:10] smspillaz, i think you should try bzr-merge-into and see if it fails [04:10] and file a bug if so [04:10] ok :) [04:10] perhaps we can easily update it [04:10] poolie: IIRC very; relies on inventory mutation stuff that fails with CHKs [04:11] poolie: but the tricky bits are all implemented in bzrlib now [04:11] poolie: failing that, what do you think of a pythong script to collect all the revisions and then apply them? [04:11] poolie: so, it's both very out of date and trivially broken :) [04:11] since I can do that (limited experience with bzr) [04:12] poolie: I *think* if you look in the history of my MergeIntoMerger work you'll actually find a working merge-into command that we decided against adding to core [04:12] poolie: but you could probably extract it back into the plugin cheaply [04:12] poolie: (or maybe the plugin did get updated since I last looked!) [04:13] poolie: basically, if you have bzr-search working, I'd see if searching for cmd_merge_into finds anything :) [04:13] smspillaz, if you want to try that script it would be good [04:13] you could do it inside bzr-rewrite [04:13] which should give you some framework [04:13] it would be useful to have in general [04:14] poolie: incidentally, I'm kind of in favor of using recipies to do this, although I guess it wouldn't sort the history [04:15] smspillaz: to be honest, I'd be inclined to just take the merge-into style combining rather than rewriting. Partly because it'll probably be much easier, but also because it'll ease merging any branches that people made off the old branches. [04:15] +1 [04:15] indeed [04:15] will make bisection a bit annoying, but meh [04:20] mm [04:20] hmm, fun bzr-builder doesn't seem to keep the history, looks like the python script is the way to go [04:20] yes, i thought it only built trees [04:53] so smspillaz, are you reasonably unblocked? [05:02] poolie: have you tried switch -f ? [05:02] poolie: its meant to ignore NBE [05:24] lifeless, ok, thanks [05:27] yes that does fix it [05:32] poolie: yeah :) [07:59] morning all [08:00] hi all [08:01] hi all [08:02] vila i see there was a pristine-tar failure on glade [08:02] mgz, hi? [08:02] 'morning [08:03] suggests the upgrade may have been bad [08:03] hi jelmer [08:03] hey poolie [08:03] poolie: me too ;) I suspect packagers changed the way they use xz and now requires a more recent version [08:04] poolie: i.e. the pristine-tar upgrade addressed some issues but not all [08:04] ok [08:05] i filed https://bugs.launchpad.net/udd/+bug/937555 [08:05] Ubuntu bug 937555 in Ubuntu Distributed Development "pristine-tar error" [Undecided,New] [08:19] mgz, wgz: around? [08:19] bialix: yup [08:20] hi [08:20] I'm going to release bzr-explorer today [08:20] this morning I simply disabled filesystemwatcher in explorer for windows [08:21] I have no resources to find and fix underlying issue [08:21] yeah, I've got a similar branch here [08:21] which one? [08:21] but haven't yet got a polished version which will do what the watcher intends [08:22] I just made a Fake watcher class which does nothing [08:23] ok, I hope my fake won't make things worse at least [08:23] bialix, (like i said on the list) i think disabling it is good [08:23] there are a few bugs about different impacts of it [08:23] hi poolie [08:24] hi :) [08:24] maybe I haven't read your message yet [08:25] poolie: actually I'm very sad about the current status of bzr-explorer [08:26] it just stand still after Ian [08:27] (sigh) [08:34] bialix: yes, I agree === mthaddon` is now known as mthaddon === lool- is now known as lool [09:22] mgz, hi, can i call you? [09:23] poolie, sure, mumble though? I have more audio luck up here [09:23] that's ok, sure [09:27] ...and mumble forgot the settings atfer upgrade, but am on now === yofel_ is now known as yofel [10:36] hi [10:36] again I have merge problem: http://pastebin.com/8GLTQw9L [10:37] hrw: the two branches are unrelated it seems? [10:38] I pulled branch long time ago, did one change and forgot about it. today I did 2 more commits and I am unable to merge it according to bzr. fun is that there should not be even file conflicts in merge [10:38] hrw: you can forcibly merge them with "bzr merge -r0..-1" [10:38] jelmer: they are same branch [10:38] push branch: bzr+ssh://bazaar.launchpad.net/~hrw/linaro-toolchain-recipes/backport-ppa-and-generic-tarball/ [10:38] parent branch: bzr+ssh://bazaar.launchpad.net/%2Bbranch/linaro-toolchain-recipes/ [10:38] submit branch: bzr+ssh://bazaar.launchpad.net/~linaro-maintainers/linaro/cross-toolchain-scripts/ [10:39] hrw: note that "bzr missing" and "bzr merge" seem to use different locations [10:40] jelmer: I wonder why each time when I have merge problems with bzr it looks like 'who has the right (me or bzr)' question [10:40] jelmer: why? [10:42] jelmer: why different I meant [10:46] hrw: there is a difference between the parent and merge locations - the parent is supposed to the branch your branch was created from, the merge location is where you submit to [10:46] hrw: usually they're the same - you can always specify ":parent" as the location if you want to be sure you use one [10:48] "bzr merge :parent" merged with conflicts in just removed dir ;D [10:51] eh. but did in reverse - merged upstream into mine. [10:51] screw it, will erase and apply changes one by one instead [10:51] hrw: right, that's what merge does - it merges the specified branch into the current one. That's the same in all VCSes I think ? [10:53] jelmer: you know, I am used to git more then to bzr. and 'bzr log' which hides merged commits by default scaries me ;) [10:54] or: I wanted rather rebase then merge my changes [10:55] hrw: fwiw 'bzr log -n0' shows all revisions [10:55] I know [11:38] mgz: ? [11:38] hey [11:40] what, you're not working ? :P [11:40] * jelmer had a query open with the other mgz :) [11:43] bye [11:49] jelmer: trying to do installers for 2.5b6 quickly [11:49] and realised doing the notes... I'd completely forgotten to write code to bundle the certs [11:50] so there goes 'quickly' [11:53] mgz: get back quickly by disabling cert checks ;) [11:54] mgz: the patch has landed on 2.5.0 anyway [11:56] vila: okay, will apply that on top === mathrick__ is now known as mathrick [13:05] hi, got a problem with bzr rebase, can someone help please? [13:06] the branch is diverged after the rebase and I cannot push anything [13:07] (this was a freshly clone feature branch I want to rebase with the main dev branch) [13:22] hi mgz [13:22] sorry mgz [13:22] hi mlischke1 [13:22] mlischke1: what are you trying to do exactly? [13:23] jelmer, quite simple, I have a feature branch I want to rebase [13:24] the feature branch was cloned from the main branch [13:24] now I pushed everything so the feature branch was clean, then bzr rebase main-branch-url [13:24] got a conflict, fixed it, bzr rebase-continue, all done [13:25] now I cannot push because the branch is diverged [13:25] I cannot pull, I cannot commit (as there isn't anything to commit) [13:25] what else can I do now? [13:26] mlischke1: why can you not pull ? pull should be reporting there is nothing to pull [13:28] no it says the branches have diverged, I should use missing to see what is missing and merge to reconcile [13:28] but what shall I merge? I have nothing to merge [13:28] mlischke1: in that case it sounds like rebase hasn't finished succesfully [13:29] mlischke1: what does 'bzr missing' say the difference between the branches is? [13:29] hmm, there wasn't any error message, all the csets have been committed (+ commit mail sent) and that#s it [13:30] it's a lot, but it looks as if anything is missing that I pushed to the feature branch + what was pushed in the meantime to the main branch [13:31] mlischke1: there were changes to the main branch after the rebase? [13:32] no [13:32] there where changes while I worked in the feature branch [13:32] but today there haven't been any changes there [13:33] mlischke1: where are those revisions from the mainline showing up in the bzr missing output? [13:36] mlischke1: can you perhaps try running 'bzr rebase' again? If it was successful earlier it should be a no-op === Quintasan_ is now known as Quintasan [13:36] jelmer, they are mixed, the first 6 are from the feature branch, then a lot from main and at the end again feature branch csets [13:36] sure, let me try [13:36] mlischke1: so some of the revisions are appearing twice? [13:37] right, redoing the rebase is a noop [13:37] yes, seem to be duplicated [13:38] actually it says I have 47 extra revisions and 6 missing revisions [13:38] the 6 missing are part of the 47 [13:38] (so these are duplicated) [13:39] the list of extra revisions (whatever that means) seems to be what the branch should look like after the rebase [13:45] jelmer, just in case it matters, the feature branch was cloned on our server from the mainline and then I cloned both to my local disc [13:46] the rebase was done against the server, not the local clone === yofel_ is now known as yofel [13:46] mlischke1: it sounds as if you have the original copy of the feature branch revisions in one branch and also rebased elsewhere [13:46] (so I rebase a clone of a clone if you want so) [13:47] hmm, that brings me to a thought [13:47] are you pushing to the same locatin as you're pulling from/rebasing against? [13:47] because when I wanna push I push to the clone on the server, which is not rebased [13:48] yes, that must be it, I need to rebase the clone on the server instead [13:52] grr, can't test on the server as the rewrite plugin is not installed there [13:56] jelmer, I'm just wondering if that scenario is something I can use rebase at all? [13:57] because when I rebase the repo on the server and then try to pull it will like give conflicts with my local copy as the revsions are reordered [13:57] s/like/likely [13:58] mlischke1: a good rule of thumb for rebasing in general is that you should never rebase anything that has been shared [14:00] yes, I know, but actually this rule should be: you cannot rebase a shared repo :-) [14:00] this was the first time I tried that, 3 hours wasted, but something new learned [14:00] thanks for your help jelmer, much appreciated [14:01] mlischke1: the fact that it's a shared repository shouldn't matter [14:01] mlischke1: but perhaps I'm not entirely following what you're trying to do ? [14:02] To me it appears clear now, as I tried to rebase a clone of a clone and then tried to push the changes to the original clone (which is not rebased) [14:02] no wonder this gives problems [14:03] mlischke1: ah, you mean a branch that was shared rather than a "shared repository" (which has a different meaning in bzr terminology) [14:03] I cannot rebase the original clone either (mostly because the necessary plugin is missing) but I think it would also produce problems when I pull after that, as the order of the revisions have changed then and the local cannot do relative changes to previous revisions [14:04] oh [14:04] for me a repository and a branch are the same, sorry :-) === deryck is now known as deryck[lunch] === deryck[lunch] is now known as deryck [20:56] is there a global veriable for release number so it can be used in source? [20:57] cahewson: yes, in the bzrlib module [20:57] bzr revision-info may help you [20:57] jelmer: I suspect cahewson wants a tree signature, for stamping builds [20:58] I was thinking the version string of the bzr release he is using [20:58] cahewson: also bzr version-info can extract a bunch of data to json / python etc, for stamping builds [20:58] cahewson: but this all depends on what you want to achieve ;) [21:02] i have rebuilt from trunk several times on various hosts. all the grub-install -v output give is 1.99 [21:20] cahewson: so, I think you mean to say that you are working on grub2, which you have obtained from bzr, and would like to change it to make the version number depend on the code you have in front of you ? [22:01] how could i prevent users from pushing to a shared repos root? [22:14] k [22:17] hi spiv :) [22:17] hi m1sc [22:17] m1sc: the easiest thing to do is probably to create a trivial branch there, with one revision so that they get a DivergedBranches error [22:20] jelmer: thx [22:23] jelmer: heh, hi :) [23:06] hi all