/srv/irclogs.ubuntu.com/2010/04/24/#bzr.txt

=== nlisgo_ is now known as nlisgo
ScislaCI 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:17
ScislaCOkay... apparently the push went into limbo and I could uncommit and then push.01:21
=== ubott2 is now known as ubottu
magciushuh10:04
magciusI 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 updates10:04
magciusis 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:05
thumpermagcius: i think there is a bug somewhere for that10:19
thumpermagcius: I think it should record locally both the translated and untranslated path10:19
thumpermagcius: that way bzr could give you some more meaningful error messages10:19
magciusthumper: there's some other problems with bzr I have.10:22
thumpermagcius: ask and maybe I can help10:22
magciusthumper: one is the progress bar. I was trying to branch a repo, and it was stuck on what looked like 0% for the longest time10:23
Peng_Or we can dismiss you completely, but at least you tried. :D10:23
magciusthumper: and it had this large number "1546588" but no end goal10:23
magciusthumper: this wasn't a Launchpad repo10:23
Peng_magcius: One situation that causes is that is known/in progress/fixed. Not sure which.10:23
Peng_magcius: Uh, dunno about the large number, tho.10:23
thumpermagcius: a local repo?10:23
magciusthumper: Savannah10:23
thumpermagcius: ah10:24
thumpermagcius: as far as I'm aware, Savannah doesn't yet have a smart server10:24
thumpermagcius: so it is using a dumb network transport10:24
magciusthumper: why do you need a smart server?10:24
thumpermagcius: I know that they are looking into this10:24
Peng_magcius: So performance doesn't suck.10:24
magciusthumper: shouldn't Content-Length be all you need?10:24
thumpermagcius: you don't need one, but it makes it much faster10:24
magciusthumper: alright10:24
thumpermagcius: the way that the 2a format works makes it pretty inefficient over dumb network transports10:24
magciusthumper: 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 pull10:25
magciusthumper: I think "bzr up" with no arguments, if up to date, should say "(maybe you meant to bzr pull?)"10:25
magciusor something similar10:26
thumpermagcius: for a bound branch that makes sense10:26
magciusthumper: okay10:26
magciusand the last three gripes I have are all Loggerhead ones10:26
Peng_Heh.10:26
thumpermagcius: have you filed the gripes as bugs on lp:loggerhead?10:27
magciusthumper: not yet10:27
magciusone, please put a lefthand margin on the code viewer. It's impossible to read code with no indentation levels10:27
thumpermagcius: please do, we are starting to get some more traction on loggerhead10:27
magciusthumper: I will10:27
magciustwo, please don't put ":" in your URLs. They make this horrible "%3F"10:28
Peng_Heh.10:28
Peng_I forget, where is that done?10:28
magciusand 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
magciusSo it's impossible to paste a link without hand-editing it10:29
magciusthird, 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 portion10:30
magciusAnd that's all10:30
magciusWhat I would do for the third one is set up a soft redirect like cgit does10:31
magciusOtherwise, great work!10:32
Peng_Please file bugs.10:33
magciusPeng_: I feel sort of bratty about filing 4 or 5 bugs at once10:34
Peng_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:35
Peng_s/do too/feel the same way/10:36
cbzthis 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 another10:41
Peng_cbz: You'll have to be more specific than "some kind or another".10:42
cbzthe 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 using10:47
cbzit's not consistently the same path10:47
cbzI tried creating it without a shared repository and got that error once, and got this once bzr: ERROR: [Error 5] Access is denied10:48
cbzThe 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 cases10:49
cbzIn which case i can't figure out why it should work fine on one machine and not on the other10:49
Peng_cbz: Got some weird file system? A network file syste,?10:50
cbzno - both are on virtually identically specced windows machines, using the same install image and using local disks10:51
cbzsvn is working on both machines too - so it isn't that10:52
jelmermwhudson: hey11:38
jelmermwhudson: it'd be great if you contributed a patch for bug 525571 !11:38
ubottuLaunchpad bug 525571 in launchpad-code "bzr svn-import fails when invoked concurrently" [High,Triaged] https://launchpad.net/bugs/52557111:38
james_whey jelmer12:06
james_wback home now?12:06
jelmerjames_w: hey12:09
jelmerjames_w: yeah, it was nice to see a bit of Lisbon though, wasn't all bad :-)12:09
james_wgood12:10
Peng_jam: ping13:30
Peng_Darn. Now I have to do research! :P13:31
mwhudsonjelmer: i guess13:32
cbzgah13:35
cbzanother Error 513:35
Peng_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:39
cbzcuriouser and curiouser - everything appears to have worked properly *APART* from populating the working tree13:40
cbzi'm pretty sure at least some of my troubles are coming from bugs within subvertpy - or at least the version bundled in bazaar2-.1.114:24
jelmercbz: what are you trying to do exactly?14:24
cbzjust 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 commands14:28
cbzThe latter appears to be possibly locking related14:29
cbzThe former appears to be this https://bugs.launchpad.net/subversion/+bug/34733414:29
ubottuUbuntu bug 347334 in subversion "bzr: ERROR: [Errno 5] Can't open 'C:\tmp\tempfile.tmp': Zugriff verweigert ("Permission denied")" [Medium,Triaged]14:29
luke-jrso 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
luke-jrthat is, the first bazaar commit on svn breaks it17:48
luke-jrpresumably from the root dir properties17:48
luke-jris there a way to get bzr-svn to ignore that subset of the properties yet still read the revid/author/etc info?17:48
cbzi found i had to use rebase rather than pull - no idea if that is your issue18:10
cbzSeparate issue - is it safe to delete obsolete_packs?18:12
=== Adys_ is now known as Adys
jelmerluke-jr: you can remove those properties from the repository manually18:28
jelmerluke-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-svn18:28
luke-jrjelmer: impossible without recreating the svn repo18:28
luke-jrjelmer: right now, my copy is a bugfix ;)18:29
jelmerluke-jr: I disagree it's a bugfix18:29
luke-jrjelmer: you saw the diff?18:29
jelmerluke-jr: anyway, we've had this discussion before :-)18:29
jelmerluke-jr: no, but I assume it's what we talked about earlier?18:30
luke-jrunlikely18:30
luke-jrit's a simple fix18:30
jelmerdo you have the diff up somewhere?18:30
luke-jrhttp://bazaar.launchpad.net/~luke-jr/bzr-svn/bzr-svn-longest-branch-path/revision/325018:30
luke-jrbeyond that change, it18:30
luke-jrit's mere configuration18:30
luke-jranother approach that would fix it even better is assuming (correctly) that any/all parents of a branch are also a branch :p18:31
jelmerluke-jr: So you're basically considering branches/ to be a branch as well?18:34
luke-jrjelmer: the code repository has had many various layouts over the years18:34
luke-jrbranches = armagetronad/trunk/armagetronad;armagetronad/branches/*/armagetronad;armagetron/trunk;armagetron/branches/*;armagetronad/trunk;armagetronad/branches/*;armagetronad/armagetronad/trunk;armagetronad/armagetronad/branches/*;private/*/*/armagetronad18:34
luke-jrthis lists all of them (I think)18:35
luke-jroriginally it was armagetron/{trunk,tags,branches}, then armagetronad/{trunk,tags,branches}, then armagetronad/{trunk,tags,branches}/armagetronad18:36
luke-jretc18:36
jelmerah, I think I understand what you're trying to do now18:36
luke-jrbzr-svn sees the parent branch using a different layout and assumes it's not a branch, so cuts the branch short18:36
luke-jrso with that patch, plus the config, I can access the older revisions fine18:37
luke-jrbut commits from misconfigured/unpatched bzr-svn are messing me up now18:37
jelmerluke-jr: I don't see how that could be a problem, the commits' revision ids contain the branch path18:37
cbzcan i set whoami on a per repository basis?18:38
luke-jrwell, part of it was the bzr:revision-id:v3-list-QlpoOTFBWSZTWZvbKhsAAAdRgAAQABK6798QIABURMgAAaeoNT1TxT1DQbKaeobXKiyAmlWT7Y5MkdJOtXDtB7w7DOGFBHiOBxaUIu7HQyyQSvxdyRThQkJvbKhs property18:38
jelmercbz: yes18:38
luke-jrthe first column tells bzr-svn what the bzr-revno is18:38
luke-jrand is now wrong18:38
luke-jrby 1933 revisions18:38
jelmerluke-jr: that18:38
luke-jrif I recreate the svn repo with that modified, bzr log shows adjusted revnos, but still cuts history short18:39
jelmer's a bug in your branch, it shouldn't generate different data from existing svn data18:39
luke-jrso I'm missing something else as well18:39
luke-jrjelmer: ???18:39
jelmerluke-jr: your branch can generate other revisions than older versions of bzr-svn18:39
jelmerluke-jr: but it should not generate different contents for revisions with the same revision id18:40
* luke-jr wants to keep compatibility with existing misconfigured-bzr-svn branches, btw18:40
luke-jranyhow, that's actually unrelated to my branch18:41
luke-jrthat's the difference between unconfigured and configured18:41
jelmerluke-jr: from what you're saying I get the impression you've broken backwards compatibility somehow18:41
luke-jrunconfigured bzr-svn cuts the history short when the repo changes layout18:41
jelmerluke-jr: no18:41
luke-jrconfigured bzr-svn continues the history back to the first commit18:41
jelmerluke-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
luke-jr1.0.2 seems to still use branching schemes...18:42
jelmerluke-jr: the layout doesn't influence the length of the history in any way18:42
luke-jro.O18:42
jelmerluke-jr: 1.0.2 still supports branching schemes if you try to access a repository that uses them18:42
jelmerluke-jr: but (unless you set 'mapping = v3' it won't write them)18:43
jelmeranyway, gtg - back in an hour or 318:43
luke-jr:(18:43
luke-jrjelmer: aha, I see.18:44
luke-jrjelmer: any way to destroy the branching schemes stuff without losing actual commit info?18:44
luke-jrideally keeping revids compatible with existing branches? :)18:44
=== radoe_ is now known as radoe
=== Adys is now known as [Adys]
jelmerluke-jr: no, there isn't a way to do that while keeping the revision ids23:02
jelmerluke-jr: you would need branching schemes to do that23:02
luke-jrhow about with new revids?23:02
luke-jr(keeping file-ids?)23:03
jelmerIIRC the file ids shouldn't change anyway23:05
luke-jreven if the files are now seen as being created in another revision?23:05
luke-jrin any case, I still need a way to ignroe the v3 mapping data23:05
jelmerluke-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 uuid23:07
jelmerluke-jr: ignoring the v3 mapping data can only really be done by stripping all the bzr: properties from those revisions23:07
luke-jrbut now that the full history is visible, it sees the *real* svn revno the files were introduced23:07
luke-jrwhereas the old data and now-real file-ids all "appeared" in the cutoff rev23:07
luke-jrjelmer: these aren't revprops, so impossible :(23:08
jelmerrikght, so those file ids would change23:08
luke-jrno config setting to change the prop name perhaps?23:08
jelmerluke-jr: no, that means the mapping is no longer deterministic (because dependent on a config variable)23:08
luke-jrbetter than broken :/23:08
jelmerluke-jr: unfortunately this really is a legacy problem with the v3 mappings23:08
luke-jrwhat of the file-id issue?23:09
luke-jrsince 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:09
jelmerluke-jr: you can set the bzr:file-ids revprop on revision properties that introduce new files to force the file ids for certain paths23:10
luke-jrit needs to be on the rev introducing the file?23:12
jelmeryeah, or affecting the file somehow23:12
jelmer(text modification, rename)23:12
* luke-jr ponders23:14
jelmerluke-jr: I'm sorry you got bit by this as an early adopter of bzr-svn23:15
jelmerluke-jr: we did get it right in the end imho, but that doesn't change your existing data of course..23:15
luke-jrwell, it'd probably be easiest to do a one-time conversion and just trash svn at the end IMO23:16
luke-jrbut that creates a different problem23:16
luke-jrin fact, it might be something I need to consider now...23:16
luke-jrI'm going to need to redo this process yet again someday, when Bazaar can do a lossless conversion23:16
luke-jrwill that again require new revids? :/23:16
jelmerluke-jr: what do you mean with lossless conversion exactly?23:17
jelmerluke-jr: svn:externals, svn:mime-type, that sort of thing?23:17
luke-jrversioned/file properties and copy metadata, at least23:17
jelmerluke-jr: but yeah, supporting any of those will require a mapping bump so new revids23:18
luke-jr:(23:18
jelmerluke-jr: I'm hoping to add support for them all at once23:19
luke-jreven if we don't care to be compatible with other bzr-svn (because we throw away the Svn)?23:19
jelmerluke-jr: what about the existing imports that have already been made of your svn repo with other versions of bzr-svn?23:20
luke-jrwell, by preserving the revid, those should be compatible? :)23:21
jelmerluke-jr: bzr doesn't like multiple (different) revisions with the same revid23:21
luke-jrif you mean the present-day problem, that's why I want to keep the file-ids23:21
luke-jri c23:21
jelmerluke-jr: that's the whole reason bzr-svn is so careful about revids23:21
luke-jrand bzr doesn't have timestamps so it can replace an old <revid> with a new <revid>?23:21
jelmerluke-jr: timestamps of what exactly? When the revision was written to disk?23:22
luke-jrhmm, good point23:22
luke-jrlast update?23:22
luke-jrcould probably be an integer version actually23:22
jelmerthe newest revision wasn't necessarily created by a "correct" version of bzr-svn23:22
jelmerluke-jr: who determines that integer version? And what if converting from one to the other is not lossless?23:23
luke-jrthe human perhaps23:23
jelmerluke-jr: bzr-svn isn't the only place where this problem arises - bzr itself has multiple storage formats, all with different capabilities23:23
jelmerluke-jr: what do you consider the canonical version?23:24
luke-jrany version that's lossless from the initial commit? :)23:24
jelmerluke-jr: what's the initial commit in this case?23:25
luke-jrin my case, a commit on CVS or Subversion23:25
jelmerluke-jr: and what if somebody else bases a commit on a version-2 import of the svn revision23:25
jelmerluke-jr: and then you try to merge their commit into your local repo where you have version-3 ?23:26
jelmerluke-jr: bzr will need version-2 as well to be able to apply the deltas it has received23:26
luke-jrlossless is lossless23:26
jelmerluke-jr: if you only support lossless then this is pointless23:26
jelmerluke-jr: since one version can't support nested trees while the other does23:27
jelmerluke-jr: as lossless conversion between them is not possible23:27
luke-jrCVS -> Subversion was possible <.<23:27
luke-jrI guess I should be glad we didn't use cherry-picking in Svn23:27
luke-jrthen we'd have yet more functionality to wait for Bzr to supprot23:28
luke-jr:/23:28
luke-jron 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 it23:29
jelmerluke-jr: CVS and Subversion both aren't centralised23:29
jelmerluke-jr: versioned file metadata as such isn't on the agenda afaik23:31
jelmerluke-jr: just individual things, e.g. keywords, line endings, etc23:31
jelmerluke-jr: copy metadata needs a decision on what to do about merges23:31
jelmerluke-jr: the worry is that storing that information and not using it will cause invalid data to be recorded23:31
luke-jrfor now, a merge involving a copy could easily just throw an unsupportederror23:32
jelmerluke-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 atm23:32
luke-jrhow is that disagreeing with it? :p23:32
jelmerluke-jr: throwing an unsupportederror seems like a bad idea to me, that means everything that involves copying is unmergeable23:32
luke-jrwell, there's various possibilities23:33
luke-jrit could just conflict every time and let the human handle it23:33
jelmerluke-jr: I'm disagreeing that we should support merge for copies when we introduce copy tracking support.23:34
jelmerluke-jr: I think just supporting it for annotate/log and roundtripping for e.g. bzr-svn/bzr-git is a step forward.23:34
luke-jrgit doesn't support copies anyway23:34
luke-jrI really just want to finish migrating our project to Bazaar and leave Subversion historical23:35
jelmerluke-jr: one of the problems with all of these is also that they require format changes in bzr itself23:37
jelmerluke-jr: and that's something we're not fond of either23:37
jelmerluke-jr: or would at least like to do in batches23:37
luke-jrthe sooner the better :p23:37

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