=== nlisgo_ is now known as nlisgo [01:17] I have a branch I committed and pushed to not knowing a change happened prior to committing (I almost always do a pull prior to the process, but forgot to this time). Anyway, I did a bzr revert, it got my local copy mostly back in shape, but it's trying to force me to do a merge. Is that trying to do it locally or on lp? [01:21] Okay... apparently the push went into limbo and I could uncommit and then push. === ubott2 is now known as ubottu [10:04] huh [10:04] I just spent 20 minutes trying to understand why it wasn't pulling new revisions when I figured out that it doesn't track when the "lp:foobar" shortname updates [10:05] is there any reason why bzr couldn't, when I say, "bzr get lp:mything", store the literal "lp:mything", and not the resolved URL? [10:19] magcius: i think there is a bug somewhere for that [10:19] magcius: I think it should record locally both the translated and untranslated path [10:19] magcius: that way bzr could give you some more meaningful error messages [10:22] thumper: there's some other problems with bzr I have. [10:22] magcius: ask and maybe I can help [10:23] thumper: one is the progress bar. I was trying to branch a repo, and it was stuck on what looked like 0% for the longest time [10:23] Or we can dismiss you completely, but at least you tried. :D [10:23] thumper: and it had this large number "1546588" but no end goal [10:23] thumper: this wasn't a Launchpad repo [10:23] magcius: One situation that causes is that is known/in progress/fixed. Not sure which. [10:23] magcius: Uh, dunno about the large number, tho. [10:23] magcius: a local repo? [10:23] thumper: Savannah [10:24] magcius: ah [10:24] magcius: as far as I'm aware, Savannah doesn't yet have a smart server [10:24] magcius: so it is using a dumb network transport [10:24] thumper: why do you need a smart server? [10:24] magcius: I know that they are looking into this [10:24] magcius: So performance doesn't suck. [10:24] thumper: shouldn't Content-Length be all you need? [10:24] magcius: you don't need one, but it makes it much faster [10:24] thumper: alright [10:24] magcius: the way that the 2a format works makes it pretty inefficient over dumb network transports [10:25] thumper: another: I tried to do "bzr up" (was still in svn mode) and it said "Tree is up to date." until I realized I was supposed to pull [10:25] thumper: I think "bzr up" with no arguments, if up to date, should say "(maybe you meant to bzr pull?)" [10:26] or something similar [10:26] magcius: for a bound branch that makes sense [10:26] thumper: okay [10:26] and the last three gripes I have are all Loggerhead ones [10:26] Heh. [10:27] magcius: have you filed the gripes as bugs on lp:loggerhead? [10:27] thumper: not yet [10:27] one, please put a lefthand margin on the code viewer. It's impossible to read code with no indentation levels [10:27] magcius: please do, we are starting to get some more traction on loggerhead [10:27] thumper: I will [10:28] two, please don't put ":" in your URLs. They make this horrible "%3F" [10:28] Heh. [10:28] I forget, where is that done? [10:29] and for some reason, Loggerhead doesn't handle the double encoding that some awful browsers do which turn "%3F" in a URL into "%253F" [10:29] So it's impossible to paste a link without hand-editing it [10:30] third, don't change between this "tree" link and the "file" link. Nice URLs should be hand-editable, if I'm linked to a file, the first instinct for me to get the directory is delete the filename portion [10:30] And that's all [10:31] What I would do for the third one is set up a soft redirect like cgit does [10:32] Otherwise, great work! [10:33] Please file bugs. [10:34] Peng_: I feel sort of bratty about filing 4 or 5 bugs at once [10:35] magcius: Heh, I do too when I do that, but as kind of a Loggerhead developer, I don't mind. Your bugs sound good. [10:36] s/do too/feel the same way/ [10:41] this is very strange, bzr works on one machine to import svn repositories, on the other any attempt to create branches ends in errors of some kind or another [10:42] cbz: You'll have to be more specific than "some kind or another". [10:47] the branch will work up to a point, and then i'll get an error saying "bzr: error: [error 145] the directory is not empty: u'" with a path inside the shared repositoriy i'm using [10:47] it's not consistently the same path [10:48] I tried creating it without a shared repository and got that error once, and got this once bzr: ERROR: [Error 5] Access is denied [10:49] The only consistent thing is that there is some indications from the various mailing lists that some kind of locking may be involved at least in some cases [10:49] In which case i can't figure out why it should work fine on one machine and not on the other [10:50] cbz: Got some weird file system? A network file syste,? [10:51] no - both are on virtually identically specced windows machines, using the same install image and using local disks [10:52] svn is working on both machines too - so it isn't that [11:38] mwhudson: hey [11:38] mwhudson: it'd be great if you contributed a patch for bug 525571 ! [11:38] Launchpad bug 525571 in launchpad-code "bzr svn-import fails when invoked concurrently" [High,Triaged] https://launchpad.net/bugs/525571 [12:06] hey jelmer [12:06] back home now? [12:09] james_w: hey [12:09] james_w: yeah, it was nice to see a bit of Lisbon though, wasn't all bad :-) [12:10] good [13:30] jam: ping [13:31] Darn. Now I have to do research! :P [13:32] jelmer: i guess [13:35] gah [13:35] another Error 5 [13:39] jam: Never mind about the ping. FYI, I just made it impossible to do Container._set_property for attributes that start with an underscore. Hope you don't mind, but it was the easiest way to fix a nasty bug. [13:40] curiouser and curiouser - everything appears to have worked properly *APART* from populating the working tree [14:24] i'm pretty sure at least some of my troubles are coming from bugs within subvertpy - or at least the version bundled in bazaar2-.1.1 [14:24] cbz: what are you trying to do exactly? [14:28] just branch from a fairly large subversion repository - on one machine it works flawlessly, on the other i get an Error 5 or an Error 145 for identical commands [14:29] The latter appears to be possibly locking related [14:29] The former appears to be this https://bugs.launchpad.net/subversion/+bug/347334 [14:29] Ubuntu bug 347334 in subversion "bzr: ERROR: [Errno 5] Can't open 'C:\tmp\tempfile.tmp': Zugriff verweigert ("Permission denied")" [Medium,Triaged] [17:48] so I hacked bzr-svn up enough to get it working with my svn repo finally, but now it only works pre-bzr-svn :/ [17:48] that is, the first bazaar commit on svn breaks it [17:48] presumably from the root dir properties [17:48] is there a way to get bzr-svn to ignore that subset of the properties yet still read the revid/author/etc info? [18:10] i found i had to use rebase rather than pull - no idea if that is your issue [18:12] Separate issue - is it safe to delete obsolete_packs? === Adys_ is now known as Adys [18:28] luke-jr: you can remove those properties from the repository manually [18:28] luke-jr: alternatively you could hack bzr-svn to ignore them, your copy of bzr-svn would already break very badly when interoperating with other versions of bzr-svn [18:28] jelmer: impossible without recreating the svn repo [18:29] jelmer: right now, my copy is a bugfix ;) [18:29] luke-jr: I disagree it's a bugfix [18:29] jelmer: you saw the diff? [18:29] luke-jr: anyway, we've had this discussion before :-) [18:30] luke-jr: no, but I assume it's what we talked about earlier? [18:30] unlikely [18:30] it's a simple fix [18:30] do you have the diff up somewhere? [18:30] http://bazaar.launchpad.net/~luke-jr/bzr-svn/bzr-svn-longest-branch-path/revision/3250 [18:30] beyond that change, it [18:30] it's mere configuration [18:31] another approach that would fix it even better is assuming (correctly) that any/all parents of a branch are also a branch :p [18:34] luke-jr: So you're basically considering branches/ to be a branch as well? [18:34] jelmer: the code repository has had many various layouts over the years [18:34] branches = armagetronad/trunk/armagetronad;armagetronad/branches/*/armagetronad;armagetron/trunk;armagetron/branches/*;armagetronad/trunk;armagetronad/branches/*;armagetronad/armagetronad/trunk;armagetronad/armagetronad/branches/*;private/*/*/armagetronad [18:35] this lists all of them (I think) [18:36] originally it was armagetron/{trunk,tags,branches}, then armagetronad/{trunk,tags,branches}, then armagetronad/{trunk,tags,branches}/armagetronad [18:36] etc [18:36] ah, I think I understand what you're trying to do now [18:36] bzr-svn sees the parent branch using a different layout and assumes it's not a branch, so cuts the branch short [18:37] so with that patch, plus the config, I can access the older revisions fine [18:37] but commits from misconfigured/unpatched bzr-svn are messing me up now [18:37] luke-jr: I don't see how that could be a problem, the commits' revision ids contain the branch path [18:38] can i set whoami on a per repository basis? [18:38] well, part of it was the bzr:revision-id:v3-list-QlpoOTFBWSZTWZvbKhsAAAdRgAAQABK6798QIABURMgAAaeoNT1TxT1DQbKaeobXKiyAmlWT7Y5MkdJOtXDtB7w7DOGFBHiOBxaUIu7HQyyQSvxdyRThQkJvbKhs property [18:38] cbz: yes [18:38] the first column tells bzr-svn what the bzr-revno is [18:38] and is now wrong [18:38] by 1933 revisions [18:38] luke-jr: that [18:39] if I recreate the svn repo with that modified, bzr log shows adjusted revnos, but still cuts history short [18:39] 's a bug in your branch, it shouldn't generate different data from existing svn data [18:39] so I'm missing something else as well [18:39] jelmer: ??? [18:39] luke-jr: your branch can generate other revisions than older versions of bzr-svn [18:40] luke-jr: but it should not generate different contents for revisions with the same revision id [18:40] * luke-jr wants to keep compatibility with existing misconfigured-bzr-svn branches, btw [18:41] anyhow, that's actually unrelated to my branch [18:41] that's the difference between unconfigured and configured [18:41] luke-jr: from what you're saying I get the impression you've broken backwards compatibility somehow [18:41] unconfigured bzr-svn cuts the history short when the repo changes layout [18:41] luke-jr: no [18:41] configured bzr-svn continues the history back to the first commit [18:42] luke-jr: older versions of bzr-svn that used branching schemes did that, it's not true for newer versions (bzr-svn >= 0.4.x) [18:42] 1.0.2 seems to still use branching schemes... [18:42] luke-jr: the layout doesn't influence the length of the history in any way [18:42] o.O [18:42] luke-jr: 1.0.2 still supports branching schemes if you try to access a repository that uses them [18:43] luke-jr: but (unless you set 'mapping = v3' it won't write them) [18:43] anyway, gtg - back in an hour or 3 [18:43] :( [18:44] jelmer: aha, I see. [18:44] jelmer: any way to destroy the branching schemes stuff without losing actual commit info? [18:44] ideally keeping revids compatible with existing branches? :) === radoe_ is now known as radoe === Adys is now known as [Adys] [23:02] luke-jr: no, there isn't a way to do that while keeping the revision ids [23:02] luke-jr: you would need branching schemes to do that [23:02] how about with new revids? [23:03] (keeping file-ids?) [23:05] IIRC the file ids shouldn't change anyway [23:05] even if the files are now seen as being created in another revision? [23:05] in any case, I still need a way to ignroe the v3 mapping data [23:07] luke-jr: the default file id generation algorithm doesn't use the revision id but just the svn revno in which the file was introduced, the path at that point and the repo uuid [23:07] luke-jr: ignoring the v3 mapping data can only really be done by stripping all the bzr: properties from those revisions [23:07] but now that the full history is visible, it sees the *real* svn revno the files were introduced [23:07] whereas the old data and now-real file-ids all "appeared" in the cutoff rev [23:08] jelmer: these aren't revprops, so impossible :( [23:08] rikght, so those file ids would change [23:08] no config setting to change the prop name perhaps? [23:08] luke-jr: no, that means the mapping is no longer deterministic (because dependent on a config variable) [23:08] better than broken :/ [23:08] luke-jr: unfortunately this really is a legacy problem with the v3 mappings [23:09] what of the file-id issue? [23:09] since it sounds like I'm going to need to re-write the Svn repo anyway, is there a revprop or root prop I can throw on svn-r1 to set file-ids to a specific string? [23:10] luke-jr: you can set the bzr:file-ids revprop on revision properties that introduce new files to force the file ids for certain paths [23:12] it needs to be on the rev introducing the file? [23:12] yeah, or affecting the file somehow [23:12] (text modification, rename) [23:14] * luke-jr ponders [23:15] luke-jr: I'm sorry you got bit by this as an early adopter of bzr-svn [23:15] luke-jr: we did get it right in the end imho, but that doesn't change your existing data of course.. [23:16] well, it'd probably be easiest to do a one-time conversion and just trash svn at the end IMO [23:16] but that creates a different problem [23:16] in fact, it might be something I need to consider now... [23:16] I'm going to need to redo this process yet again someday, when Bazaar can do a lossless conversion [23:16] will that again require new revids? :/ [23:17] luke-jr: what do you mean with lossless conversion exactly? [23:17] luke-jr: svn:externals, svn:mime-type, that sort of thing? [23:17] versioned/file properties and copy metadata, at least [23:18] luke-jr: but yeah, supporting any of those will require a mapping bump so new revids [23:18] :( [23:19] luke-jr: I'm hoping to add support for them all at once [23:19] even if we don't care to be compatible with other bzr-svn (because we throw away the Svn)? [23:20] luke-jr: what about the existing imports that have already been made of your svn repo with other versions of bzr-svn? [23:21] well, by preserving the revid, those should be compatible? :) [23:21] luke-jr: bzr doesn't like multiple (different) revisions with the same revid [23:21] if you mean the present-day problem, that's why I want to keep the file-ids [23:21] i c [23:21] luke-jr: that's the whole reason bzr-svn is so careful about revids [23:21] and bzr doesn't have timestamps so it can replace an old with a new ? [23:22] luke-jr: timestamps of what exactly? When the revision was written to disk? [23:22] hmm, good point [23:22] last update? [23:22] could probably be an integer version actually [23:22] the newest revision wasn't necessarily created by a "correct" version of bzr-svn [23:23] luke-jr: who determines that integer version? And what if converting from one to the other is not lossless? [23:23] the human perhaps [23:23] luke-jr: bzr-svn isn't the only place where this problem arises - bzr itself has multiple storage formats, all with different capabilities [23:24] luke-jr: what do you consider the canonical version? [23:24] any version that's lossless from the initial commit? :) [23:25] luke-jr: what's the initial commit in this case? [23:25] in my case, a commit on CVS or Subversion [23:25] luke-jr: and what if somebody else bases a commit on a version-2 import of the svn revision [23:26] luke-jr: and then you try to merge their commit into your local repo where you have version-3 ? [23:26] luke-jr: bzr will need version-2 as well to be able to apply the deltas it has received [23:26] lossless is lossless [23:26] luke-jr: if you only support lossless then this is pointless [23:27] luke-jr: since one version can't support nested trees while the other does [23:27] luke-jr: as lossless conversion between them is not possible [23:27] CVS -> Subversion was possible <.< [23:27] I guess I should be glad we didn't use cherry-picking in Svn [23:28] then we'd have yet more functionality to wait for Bzr to supprot [23:28] :/ [23:29] on that note, though... any idea why it's taking so long for these things (versioned file metadata and copying) to get spec'd? it's not like imports need bzr to act on it, just store it [23:29] luke-jr: CVS and Subversion both aren't centralised [23:31] luke-jr: versioned file metadata as such isn't on the agenda afaik [23:31] luke-jr: just individual things, e.g. keywords, line endings, etc [23:31] luke-jr: copy metadata needs a decision on what to do about merges [23:31] luke-jr: the worry is that storing that information and not using it will cause invalid data to be recorded [23:32] for now, a merge involving a copy could easily just throw an unsupportederror [23:32] luke-jr: I'm not sure if I agree with that last part, I'd like it to actually be stored myself and perhaps just used for log/annotate. I don't really care about merge atm [23:32] how is that disagreeing with it? :p [23:32] luke-jr: throwing an unsupportederror seems like a bad idea to me, that means everything that involves copying is unmergeable [23:33] well, there's various possibilities [23:33] it could just conflict every time and let the human handle it [23:34] luke-jr: I'm disagreeing that we should support merge for copies when we introduce copy tracking support. [23:34] luke-jr: I think just supporting it for annotate/log and roundtripping for e.g. bzr-svn/bzr-git is a step forward. [23:34] git doesn't support copies anyway [23:35] I really just want to finish migrating our project to Bazaar and leave Subversion historical [23:37] luke-jr: one of the problems with all of these is also that they require format changes in bzr itself [23:37] luke-jr: and that's something we're not fond of either [23:37] luke-jr: or would at least like to do in batches [23:37] the sooner the better :p