/srv/irclogs.ubuntu.com/2008/12/18/#bzr.txt

spivjml: no, I'm thinking it'd be good enough if we could tell Launchpad to mirror a branch in (just) the latest format.00:00
jmlspiv: hmm.00:01
spivIn this case, people that need the older format could use the non-Launchpad URL.00:01
jmlspiv: that feels really clunky to me.00:01
spivI mean, if LP wants to keep multiple copies for maximum convenience, that's fine with me too ;)00:01
spivYeah, it would be a bit.00:01
spivIt was just a random to push the work onto you rather than us ;)00:02
spivs/random/random idea/00:02
jmlspiv: I can't help feeling that the real solution is for Bazaar to settle down a little with its formats :)00:02
spivWell, yeah.00:02
Peng_Good luck with that. :P00:03
spivHmm, now that LP supports 1.9 branches, someone needs to upgrade our PQM's bzr...00:05
=== jamesh_ is now known as jamesh
awilkinsHmm. When are we removing non-rich root formats ;-)00:29
garyvdmspiv: I think you were right about my test repo's not been packed the same.00:33
garyvdmI did some more testing - an I'm now seeing faster results with 1.6 repos :-).00:33
garyvdmThanks00:34
spivgaryvdm: yeah, the interesting comparison is old code vs. new code on the exact same repo.00:35
spivgaryvdm: 1.9 should be faster than 1.6, for instance, although packing has a significant impact.  A fully packed repo will be much better than a repo with 10s of pack files (unless you're extremely lucky), etc.00:36
garyvdmspiv:I've still got a repo that is faster on the old code - but packed repos are faster on the new code.00:36
spivgaryvdm: (although as I improve the smart server the number of pack files is increasingly unimportant when using the smart server (to the client anyway))00:37
spivgaryvdm: ah, hmm.  That's interesting.  1.6 format?00:37
spivgaryvdm: "interesting" as in "not what I think should happen" :)00:38
garyvdmspiv: Yip - which made me think it was to do with the format.00:38
garyvdmBut after I copied an packed it the new code is faster than the old code.00:38
spivgaryvdm: would you mind pastebinning the new code?00:39
garyvdmI'm busy pushing the branch - Will let you know when it's finished.00:39
spivIt's good that it's faster on a fully packed repo, but I'm quite surprised that it's worse on a not fully packed repo.00:39
garyvdmspiv: http://bazaar.launchpad.net/~qbzr-dev/qbzr/threadless-throbber/annotate/567?file_id=liblogmodel.py-20080624153442-csesbwmxg0s8db2x-100:42
garyvdmline 95900:42
spivgaryvdm: you never update keys!00:44
spivgaryvdm: you remove found keys from revision_ids, but you're calling get_record_stream with (keys,)00:44
garyvdmAh00:44
spivgaryvdm: that explains the performance oddities perfectly :)00:44
spivgaryvdm: when there's only one pack file that doesn't matter, and when there are multiple it'll do too much work.00:45
garyvdmOk - Let fix that and test it.00:45
spivMake keys a set(), and use .difference_update is my recommendation :)00:46
spivOh, hmm, you're doing one at a time.  Just calling .remove seems reasonable, then.00:46
garyvdmspiv: That would not affect the performance if you are only opening 1 repository.00:53
garyvdmIt00:53
garyvdmIt00:53
garyvdmIt only loops if you have more than one repo.00:53
spivgaryvdm: oh right, that's what I meant.00:53
spivgaryvdm: hmm, you're testing against a single repo?00:54
garyvdmYes00:54
spivWeird.00:54
garyvdmBut thanks for picking up the error.00:54
jmlspiv: this looks like a bzr bug... https://answers.edge.launchpad.net/launchpad-bazaar/+question/5479100:54
spivjml: it does.00:56
jmlspiv: can you help them out?00:58
jml(I can't see how to move questions to other projects)00:58
spivjml: it turns out that "Edit question" can do that, so I did it.00:58
spivAnd asked for more information.00:59
jmlthanks.00:59
cody-somervillekomputes, Hey David01:46
komputescody-somerville: hey man, how is it to be back home?01:49
cody-somervilleNot too shabby.01:49
cody-somervilleGlad to be back in Canada01:49
komputestrue. true.01:49
cody-somervillebtw, I heard that the USB plugs WILL be used for game controllers in the future :]01:49
komputescody-somerville: I forsaw it01:50
komputescody-somerville: and the screens probably run on windows since it took like 30 minutes to boot up01:50
komputescody-somerville: so you were right ;)01:50
komputescody-somerville: tried to tell you but you were fast asleep01:51
cody-somervillelol01:52
igchi all03:37
markhg'day ian!03:52
garyvdmHi markh04:06
garyvdmI've been very busy with lp:~qbzr-dev/qbzr/threadless-throbber04:06
markhhi garyvdm - awesome :)04:06
garyvdmI'll write a nice email about what I've done. But right now I need to go to sleep - it 5am....04:07
markheeek :)  I'll look forward to it - I'll try and pull it later this arfternoon04:07
markhsleep well!04:07
vilahi all07:03
igchi vila07:33
=== doko_ is now known as doko
fmis bzr able to save http passwords by now?08:34
fmsee https://bugs.launchpad.net/bzr/+bug/10302908:34
ubottuLaunchpad bug 103029 in bzr "use .netrc" [Medium,In progress]08:34
fmthis is solved as in http://doc.bazaar-vcs.org/bzr.dev/developers/authentication-ring.html08:40
vilafm: saving http passwords is not implemented but I'm about to submit a patch to use .netrc as read-only credentials store08:58
vilaAnyway, you can already put your http passwords into authentication.conf *today*, in clear08:58
vilaurgh, looks like my DNS serverS are down :-( Can someone read me here ?09:06
Jc2kvila: yeah, but i suspect my pong took so long it doesnt matter09:15
awilkinsCTCP PING reply from vila: 0.585 seconds09:16
fmvila: i am perfectly fine with storing in authentication.conf09:18
loxsfolks, how can I ignore the whole contents of a folder? (what is the .bzrignore directive for that?)09:21
bob2the dirname09:23
LeoNerdAn ignored directory automatically ignores all the contents within it09:27
loxsbob2, LeoNerd you mean ONLY the dirname (without a relative path to it?)09:36
LeoNerdE.g.   echo "tmp/" >>.bzrignore09:37
LeoNerdOr even without the trailing /09:37
loxsLeoNerd, well, I have two directories that have the same name (they are in different places of the tree). how do I tell it to ignore one of them, but include the other?09:39
bob2have you tried it?09:40
bob2(full path relative to the root)09:40
loxsyes, then it includes that directory09:40
loxs(the ignore doesn't work)09:41
bob2./09:42
loxsyes, this works, thanks09:45
LeoNerdloxs: If an ignore pattern contains a / it is matched against the full path from the root. If not, it matches just the basename10:03
LeoNerdSo 'tmp' matches tmp wherever it is found, but './tmp' matches only on the tree root10:03
=== `6og is now known as Kamping_Kaiser
vilaJc2k, awilkins : thanks, things are back to normal...10:43
=== andreas__ is now known as ahasenack
Necorois it possible to convert a branch from some rich-root-format into into one w/o?12:52
MvGHi! I've got a branch of a project's trunk here, and a feature branch up to date with the tip of trunk. I would like to generate a patch matching the latest release of the trunk. How would I do this? Do I have to branch corresponding versions from each into new branches for this purpose?12:54
MvGBy the way, is there a feature to take a working tree back in history? the update command doesn't seem to do this, as I'd have expected from svn.12:55
bob2'bzr send -o your.patch' in the feature branch12:55
bob2assuming it was branched from trunk12:56
MvGbob2: Patch won't apply due to changes made to trunk after the release.12:56
bob2?12:57
bob2bzr send /generates/ a patch (well, bundle) between the two branches12:57
AfCMvG: `bzr pull -r` will take you back. You may need --overwrite. BE WARNED that you'd better have the branch elsewhere if you do this, otherwise you will shoot yourself in the foot (and have to go hunting for the tip).12:57
MvGAfC: Thanks. So this not only takes the working tree back, but the branch as well. I guess in that case I'd rather checkout an older revision into a new dir.12:59
AfCMvG: that's what you're encouraged to do, yes12:59
AfCbut s/checkout/branch/12:59
AfCor same problem12:59
MvGbob2: Yes, but the patch generated won't apply against the released copde and is thus not much use.12:59
MvGAfC: OK.12:59
MvGIs there a way to create a branch without working tree? bzr branch doesn't seem to have an option for it.13:00
bob2MvG: what do you want it against?13:00
bob2oh, some revno13:01
MvGbob2: Against a given revision in trunk, and probably from a given revision in my feature branch that is closest to this, so as to avoid collisions.13:01
jelmerNecoro: no, this is not possible13:04
Necorojelmer: ah ok -- what is the reason by the way to still differentiate between these two?13:05
Necorohas rich-root some issues?13:06
jelmerNecoro: rich root is newer and contains more information (versioning information for the branch root)13:11
jelmerit will become the default at some point in the future13:11
Necorook - so no disadvantage (except having to type -rich-root when upgrading repo-format) :)13:11
AfCNecoro: correct13:11
Necorogood :)13:12
Necorothx for the info13:12
* Necoro heads to class13:12
=== jelmer is now known as Guest73702
=== Guest73702 is now known as jelmer
Peng_Is it just me, or does doing "bzr init-repo --1.9-rich-root && bzr init --1.9-rich-root" in a directory create a branch 6 branch, when it should be branch 7?14:20
Peng_Is that wrong?14:20
* Peng_ kicks branch --stacked.14:24
Peng_Is it possible to create a stacked branch without a working tree?14:24
Peng_And why won't it use a shared repo?14:24
jelmerit's probably a bug14:25
Peng_Peng_'s first experience with stacking is very disappointing. :\14:25
Peng_Actually, I have a habit of accidentally creating working trees anyway (I did it three times once!), but this time I really don't want to. My disks have suffered enough.14:26
Peng_And it also used --1.6.1-rich-root instead of --1.9-rich-root.14:27
Peng_Which isn't surprising since it ignored the repo..14:27
Peng_Augh! Now I got "BzrCheckError: Internal check failed: record_stream refers to compression parents not in KnitVersionedFiles" again!14:28
Peng_This is all just to work around that stupid corrupt repo anyway.14:28
Peng_I'm going to go watch TV. /me glares at bzr.14:29
Peng_And this is reminding me that I _still_ haven't filed a bug about that corrupt repo in the first place. Coughcough.14:29
=== sdboyer-laptop__ is now known as sdboyer-laptop
awilkinsThere's support for http passwords in authentication.conf, but I think it's a bit broken14:52
awilkinsOops, old line14:52
Peng_jelmer: Oh, it's bug 274021, which you filed. :P I noticed bug 292553 too, but I'm not sure I think it's a bug.14:53
ubottuLaunchpad bug 274021 in bzr "bzr init ignores format argument when creating branch inside of shared repository" [Undecided,Confirmed] https://launchpad.net/bugs/27402114:53
ubottuLaunchpad bug 292553 in bzr "Format "unnamed" when creating "default" branches in newer repository formats" [Medium,Triaged] https://launchpad.net/bugs/29255314:53
Peng_jelmer: Oh, never mind, you were referring to one of the other things.14:54
* Peng_ is confusing himself now.14:54
Peng_Wny don't stacked branches use shared repos? Is that intentional?14:55
MvGJust a crazy idea: has anyone thought of implementing a bzr plugin to treat mediawiki setups as foreign branches? There are files that get modified, there is a revision history with authors, dates, comments, ... I don't think I'd have actual use for this, and I won't implement it myself, but still I think the idea is funny enough to share.14:55
jelmerMvG, the tricky bit is the history14:56
jelmerMvG, since you need the history of the full mediawiki "branch", not just of some files14:56
NfNitLoopdoes the shared repo format have some requirement that all history be present?14:56
NfNitLoopaah.14:56
jelmerPeng_, Is the shared repo in a stacked-compatible format?14:56
MvGjelmer: I believe deleted articles might proove tricky as well, as wikis can actually loose information.14:56
Peng_jelmer: Yes.14:57
jelmerMvG, other than that, it's certainly doable I think for smaller wikis14:57
Peng_jelmer: Why do you format bzr-svn's __version__ yourself instead of using bzrlib._format_version_tuple or something?15:18
jelmer_format_version_tuple is not part of the public bzr api15:19
Peng_Oh, good point.15:19
jelmerand I need this before I actually check compatibility15:19
Peng_Currently _format_version_tuple doesn't like your version_info (because it uses "rc" instead of "candidate"), which makes tracebacks messy.15:20
Peng_But if bzr-svn's version_info was changed to use "candidate', that would make the __version__ really long.15:20
Peng_(Well, not tracebacks, just the .bzr.log of tracebacks.)15:20
vilaawilkins: If you know about bugs in authentication.conf not filed in lp now is a good time to file them :)15:20
jelmervila: Hi!15:21
jelmerPeng_, I'll try to remember to use 'candidate' next time15:21
vilajelmer: hey ! Long time we weren't in the same TZ it appears :) Or at least online at the same time :)15:21
jelmervila: yeah, indeed. How's it going?15:22
vilajelmer: I'm preparing a patch that should make it easy to create pluggable credential stores (read-only as a first step)15:22
jelmervila: Ah, cool15:22
vilaThat should make it possible to write one for svn able to provide user/passwords to bzr15:22
vila..and finally address that 401 notorious bug :-/15:23
* jelmer is looking forward to seeing the last of that :-)15:25
jelmerOnce some of this http auth stuff has been improved, I'd like to have a look at supporting WWW-Authenticate: Negotiate15:25
vilajelmer: hmm, so far we support Digest and Basic and try Digest first, what's the need ?15:27
jelmervila: it's required for Kerberos authentication15:28
vilaDo you have some docs describing that for the http part ?15:29
awilkinsvila: Yes, just that one earlier15:31
awilkinsvila: I made a crude hack for it and you mentioned that you'd be fixing related things15:32
jelmervila: http://www.apps.ietf.org/rfc/rfc4559.html15:32
awilkinsvila: I don't necessarily like it provoking a 401 before it will try to find cached authentication15:32
vilajelmer: thanks, bookmarked15:33
jelmervila: We only would have to care about WWW-Authenticate: Negotiate if the server sends it to us in a 401 reply15:33
vilajelmer: sure, the infrastructure is in place for new http auth schemes in _urllib2_wrappers.py15:34
vilaawilkins: sorry what bug are you referring to ?15:34
awilkinsvila: I'm not sure I had a bug for it, hold on15:35
awilkinshttps://bugs.launchpad.net/bzr/+bug/30034715:35
ubottuLaunchpad bug 300347 in bzr "HTTP transport does not use authentication.conf unless you supply a user name." [Medium,Confirmed]15:35
awilkinsTheres a bundle in there I fixed it with too ; but as noted, rather naive15:36
vilaawilkins: ha ! That one ok, but that's not the right approach, bug #...wait a minute15:37
vilaA patch has been proposed for bug #256612 on the list, a bit closer but still incomplete15:38
ubottuLaunchpad bug 256612 in bzr "should handle 401 (unauthorized) response" [High,Triaged] https://launchpad.net/bugs/25661215:38
vilaI have patch above that one that will make http accept authentications sections *even* if no user is specified in the url, that's a silly limitation I never realized was there and the patch for #256612 gave me one of those wtf, I'm soo stupid moment :)15:40
=== sabdfl1 is now known as sabdfl
=== enigm1 is now known as enigma42
=== kfogel is now known as ns2
=== ns2 is now known as kfogel
=== abadger19991 is now known as abadger1999
tseliothi all, I would like to keep my packages in separate branches which would share everything but the debian/ directory. Is there a way to do this?18:08
tseliotstacked branches, perhaps?18:08
Thomas_Zahreddinhi, is somebody able to help me with bazaar? I've created a repo with 14 commits, this is the main branch. I have some source code i want to make a branch, this code is most similiar to revision 11 of the main branch. This code i want to update (suppose merge is the right command) to the actual version of the main branch, but also want to keep the specialities of this customiced source code.19:01
Thomas_ZahreddinI've been sitting long with some tutorials and the handbook page - the examples do not realy fit for me since I'm working solo :-)19:02
AmanicAI think you should keep your main code in one branch and you custom code in a seperate branch19:03
Thomas_ZahreddinAmanicA: exactly that is my plan, but i don't know how to do this19:04
AmanicAbzr init main_code; bzr init custom_code19:04
AmanicAthen you have 2 separate directories for you code19:05
Thomas_Zahreddinok,19:05
Thomas_Zahreddindone19:06
Thomas_ZahreddinAmanicA: ok, next step?19:07
AmanicAehm19:07
Thomas_Zahreddinshall i make a checkout of revision 11 to the custom branch?19:08
AmanicAthat wasn't actually a 'step'19:08
AmanicAif you only want to version /devian seperately, you can make it a branch19:08
AmanicAbut I dont think there will be an easy way to retain history for that directory19:09
Peng_"bzr branch main_code custom_code", and merge frequently?19:09
AmanicAi.e. remove it from your main branch and create a new branch for /debian19:10
AmanicAmake backup first19:10
AmanicAthen you can try:19:10
Thomas_Zahreddinthe diff between main and custom are most config-data (backup is done ;-) )19:10
AmanicAbzr rm --keep /debian; bzr init /debian;19:10
AmanicAcd /debian19:11
AmanicAbzr add <the stuff you want int>19:11
AmanicAand then bzr ci -m "message"19:11
AmanicAbut the drawback of this approach is they will be seperate branches19:11
AmanicAso yo uwill need to keep them in sync seperately19:11
AmanicAso if yo uwant to update both, you'll need to cd into both directories and do update19:12
AmanicAThomas_Zahreddin: I confused you with tseliot19:14
Thomas_ZahreddinAmanicA: and Peng_: i need to update the custom code once a month and have to preserve the config files (and custom data in them) but the config files are a subject of change too, since new options can arise - this is the task and i want to use bazaar and a kind of merge for the update of the custom code19:17
Thomas_Zahreddinnow clear what i have in mind?19:18
Peng_Thomas_Zahreddin: Depending on how many conflicts merging would cause, what I said still stands.19:18
Thomas_ZahreddinPeng_: normaly the conflict are the default values in the config files of new versions from the main branch19:20
=== asac_ is now known as asac
KeybukI'm having some difficulties with bzr fast-import, who would know how to help?20:37
LarstiQphrased like that, I'm not sure I know enough of it20:41
LarstiQKeybuk: but maybe I can act as a therapeutic dummy? :)20:42
Keybukit's erroring because a commit is missing a from: line, fwict20:42
Keybukand looking at the git export, lots of the older tags are missing them20:44
LarstiQhmm20:45
KeybukI also get a different Assertion inside bzrlib later (if I skip tags), because something is missing a children member20:45
LarstiQI assume git can fast-import it?20:46
Keybukyeah20:47
LarstiQigc would know more about bzr fast-import, but he's probably asleep20:48
tseliotAmanicA: my branches would share some big binary blobs and I would like to avoid uploading the same binaries to different branches20:49
mwhudsonthe children thing sounds vaguely like it could possibly be a plugin/bzrlib version incompatability20:50
AmanicAcant you keep the shared part in one branch, and the non-shared part in another?20:50
Keybukmwhudson: hmm20:52
mwhudsonKeybuk: have you asked google about it?20:52
Keybukdifficult to construct a search query20:53
tseliotAmanicA: and would it be possible to use one branch as the original tarball (tar.orig.gz) when using bzr-buildpackage?20:53
=== abadger19991 is now known as abadger1999
* LarstiQ wonders how related http://n2.nabble.com/git-fast-export-|-git-fast-import-doesn't-work-td1577096.html is20:56
Rollybzr pull is giving me errors :(20:57
Rollybzr: ERROR: No such file: 'w8128h2vbkpc42mfx49c.fetch': [Errno 2] No such file or directory20:57
* Keybuk comments out the offending bit of code :p20:58
Rollyhttp://pastie.org/private/b7ynvru1g3luksvykadaxw20:58
LarstiQRolly: is your filesystem healthy?21:03
Rollyyeah, it is21:04
RollyI can try running the command from a different hard drive to make sure21:04
LarstiQthen I'm out of clue. Seems to happen a lot today.21:04
Rollysame problem. bzr check doesn't report anything bad, either21:06
AmanicAtseliot: I wouldn't know I've never used bzr-buildpackage21:11
tseliotAmanicA: no problem. Thanks for your time21:12
AmanicAcool21:13
RollyAnother different type of error, this time with bzr init: "The system cannot find the path specified"21:14
Rollyhttp://pastie.org/34265621:14
LarstiQRolly: that too me looks as if the path is too long21:14
Rollyit's a long pathname, but Windows doesn't have a problem working with that file21:14
RollyI can move the file, edit it, etc21:15
LarstiQsee it in Explorer?21:15
Rollyyep21:15
jelmerperhaps one of the underlying functions python / bzr uses doesn't handle long filenames21:15
Keybukugh, actually, this fast-import really does go horribly wrong21:16
KeybukI end up with extra files in bzr that were deleted in git21:16
LarstiQI'm rather sure of that being the case for the win32 api.21:16
RollyI am having a lot of problems, I think I might try downgrading my bzr21:16
Rollywould upgrading python help? I have 2.5.121:18
* LarstiQ doesn't expect so21:18
LarstiQRolly: but you could try21:19
LarstiQRolly: is there a chance you could uses shorter paths?21:19
RollyNot really, this is the folder structure that Zend Eclipse installs21:19
LarstiQk21:19
Rollyit doesn't seem to be a deal-breaker, the repo is created and I can commit to it21:20
enigma42What does it mean to have "inconsistent parents"?21:20
RollyI'm more worried about that other error about my inability to pull a repo21:20
enigma42After doing a "bzr check"21:20
enigma42I have:21:21
enigma42    1 ghost revisions21:21
enigma42     1 revisions missing parents in ancestry21:21
enigma42     2 inconsistent parents21:21
enigma42I'm not sure if any of those are problems.21:21
LarstiQthe first two certainly aren't21:21
RollyHm, I got rid of the "No such file: 'foo.fetch'" error21:25
RollyIt seems the problem is related to the repository format21:25
RollyIf I pull into a pack-0.92, no problems. If I pull into a 1.9-rich-root, I get the error21:26
RollyIs is possible to downgrade a repo to an older format? bzr upgrade --default won't let me21:29
mwhudsongenerally yes21:31
mwhudsonyou can also bzr init an empty branch of the desired target format and pull into that21:31
RollyI'll do that, thanks21:31
Rollyactually it doesn't have anything to do with repo format. I can init an empty 1.9-rich-root branch, pull into it locally, then pull from the remote branch and it completes without errors21:42
Rollyor maybe it does. anyways, back to trusty 'ol pack-0.92 :)21:45
Rollymy .bzr/repository/upload folder was missing, now it works.21:52
RollyNo idea how that happened21:52
RollyI never even entered this particular .bzr directory, never deleted anything, and I don't have an antivirus21:54
spivRolly: backup program?22:03
RollyI don't have one22:05
mwhudsonspiv: make pull faster pls23:01
mwhudsonoh it's the diverged branches thing again, i think23:04
=== abadger19991 is now known as abadger1999
nDuffAnyone have hitns for making bzrlib's lazy_import play more nicely with pychecker?23:22
nDuffs/hitns/hints/23:22
bob2there's a pyflakes branch which supports it23:22
nDuffhmm; I've seen pyflakes around, but haven't actually tried it yet23:23
nDuffthanks for the pointer23:23
=== Hydrogen is now known as Hiderogen
=== Hiderogen is now known as Hydrogen

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