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

igcmorning01:09
abadger1999lkoggerhead question -- Is it possible to configure it to serve on a subdiretory?01:51
abadger1999*loggerhead01:52
abadger1999Like this:01:52
abadger1999http://localhost/bzr/myproject/branch-foo01:52
abadger1999I haven't been able to move it away from  this style of url http://localhost/myproject/branch-foo01:53
lifelessabadger1999: yes, python-paste permits this01:56
lifelesssorry pastedeploy01:56
abadger1999lifeless: Do you know the config option I'd need to change?01:57
lifelessnot offhand01:57
lifelessuhm01:57
lifelessare you using WSGI, serve-branches or bzr serve --http ?01:57
* abadger1999 is also aiming to get this working with mod_wsgi... but that would come after getting it working at all.01:57
abadger1999mod_wsgi is my goal but I've experimented with both of the others.01:58
lifelessabadger1999: I wouldn't sequence things like that; just aim directly at your goal01:58
lifelesswsgi apps can be layer01:58
abadger1999lifeless: Alright -- mod_wsgi :-)01:58
lifelessto do path manipulation etc in containing apps01:58
lifelesslook for PrefixMiddleware in serve-branches02:02
mwhudsonabadger1999: serve-branches --prefix should do that, how are you proxying to it?02:03
abadger1999mwhudson: I'm not proxying.  My last bit of trying has been based on this: http://blog.projectfondue.com/2009/11/26/loggerhead-and-mod-wsgi02:04
mwhudsonabadger1999: then --prefix bzr should Just Work, i think02:05
abadger1999lifeless: There's no PrefixMiddleware in serve-branches -- the wsgi script I was using has PrefixMiddleware(app, prefix='')02:06
abadger1999Changing that to prefix='/bzr' didn't work out very well.02:06
abadger1999It made the front page correct but links to subpages had no /bzr in the url.02:06
* abadger1999 tries serve-branches --prefix02:07
lifelesshmm my trunk of loggerhead must be stale02:10
abadger1999mwhudson: Pretty good.  It's interesting that it's serving on both /bzr and / but the links look consistent02:12
* abadger1999 looks at code02:12
lifelessigc: $ bzr pull02:12
lifelessUsing saved parent location: http://bazaar.launchpad.net/~loggerhead-team/loggerhead/trunk/02:12
abadger1999I'm using the 1.17 release right now.02:12
lifelessNo revisions to pull.02:12
lifelessmy serve-branches has prefix middleware02:12
abadger1999So it might be that things have changed since then02:12
lifelessrevno 34502:12
mwhudsonlifeless: that's not lp:loggerhead any more02:13
lifelessmwhudson: oh02:13
lifelessmwhudson: what is then ?02:13
lifelessand why did it change?02:13
mwhudsonlifeless: i think it's called trunk-ric02:13
mwhudsonlifeless: and it was to do with upgrading to 2a02:14
lifelessugh02:14
mwhudsonit wasn't me02:14
lifelessI do so hate that approach02:14
lifelessno, I know02:14
lifelessits the approach thumper and igc advocated, IIRC02:14
thumper?02:14
igclifeless: I agree it's annoying that lp:xxx can change and we don't follow the new location02:15
igcI'm pretty sure there's a bug for that02:16
thumperI think bzr should store the url for before and after resolution02:17
thumperand warn the user if they change02:17
thumperor something02:17
igcthumper: it only stores the "after resolution" info right now02:17
thumperigc: right02:18
lifelessthere is a bug about us storing the directory service url02:19
lifelesshowever I'm complaining about the manner of upgrade where a new branch is used02:19
igclifeless: I got that02:19
lifelesswhich does, I admit, interact with that bug.02:19
lifelesshowever, even if we had fixed that bug, people following our docs that don't use launchpad would still have the same pain.02:20
* igc out for a few hours02:45
=== parthm_ is now known as parthm
mwhudsonjelmer: looks like you fixed that problem you talked about earlier?03:05
lifelessthumper: have you looked at any rich root branches rev 1 in loggerhead before ?03:18
=== parthm_ is now known as parthm
thumperlifeless: no, but I used diff locally03:19
thumperlifeless: I'll check now03:19
thumperit could be a bug in loggerhead03:19
lifelessI branches the branch you're complaining about03:19
lifelessit checks clean03:19
lifelessst -r 0..1 is clean03:19
lifelessdiff -c 1 is clean03:20
thumperweird03:20
thumperok, not a bzr-hg bug then03:20
lifelessthe / is simply the root id being added, its normal, and IMO not a serious bug that loggerhead shows it03:20
thumpermust be a loggerhead display bug03:20
=== parthm_ is now known as parthm
abadger1999mwhudson: Ah.... I vaguely remember this issue.04:32
abadger1999mwhudson: For some reason loggerhead doesn't handle URLs without a trailing "/" quite right.04:33
abadger1999mwhudson: With mod_wsgi and clicking on a directory of branches (as opposed to directly onto a branch), it goes to http://localhost/bzr/python-fedora <= no trialing slash04:34
abadger1999mwhudson: That redirects to http://localhost/python-fedora/04:34
mwhudsonabadger1999: that's quite strange04:34
abadger1999mwhudson: So something is dropping the '/bzr/' in there04:35
mwhudsonabadger1999: do you have a prefixmiddleware in your wsgi stack?04:35
abadger1999mwhudson: Using serve-branches --prefix yields a slightly different issue.04:35
abadger1999mwhudson: Yeah Letme upload the script04:35
mwhudsonabadger1999: what i know about mod_wsgi setup could fit quite comfortably on the back of a postage stamp, btw04:36
abadger1999http://toshio.fedorapeople.org/loggerhead.wsgi04:36
abadger1999This line probably isn't needed: os.environ['loggerhead.static.url'] = '/bzr'04:37
abadger1999mwhudson: So serve-branches.... I invoke it like this:  serve-branches --prefix bzr /var/www/bzr04:38
abadger1999mwhudson: Then if I browse to http://localhost/bzr  <= No trailing slash04:38
abadger1999mwhudson: There's no /bzr/ in the urls04:38
mwhudsonabadger1999: i know that pastedeploy expects that the /bzr part of the path is in the script_url in the environment that it sees04:41
mwhudsonabadger1999: is that something you can control from the mod_wsgi side?04:41
mwhudsonmaybe i mean path_info there04:41
abadger1999mwhudson: Hmm... Let me see if I can04:42
* abadger1999 knows how to do that for TurboGears apps04:42
mwhudsonjelmer: ayt?04:44
abadger1999mwhudson: Huh.... I'm a little bit stumped... I've got script_name as /bzr and path_info as /stats/changes or etc... seems to work.05:03
mwhudsonabadger1999: hmm05:03
abadger1999mwhudson: But when I go to /bzr/python-fedora my instrumented wsgi script doesn't seem to get invoked at all.05:03
mwhudsonwell working > understanding i guess :)05:03
mwhudsonah05:03
abadger1999And that gets redirected to /python-fedora where it fails.05:04
mwhudsonthat sounds like an apache/mod_wsgi problem then?05:04
abadger1999So ....  it seems like something is doing the redirect before the wsgi app.05:04
abadger1999I'm going to pursue that until I find out different :-)05:04
abadger1999mwhudson: Okay... this gets stranger although it's still not looking like loggerhead's fault => firefox doesn't work but wget redirects correctly.05:24
mwhudsonabadger1999: sounds like you either need to go to bed or get drunk :-)05:25
abadger1999mwhudson: yeah, I'm going to second that.05:25
abadger1999Thanks for the help!05:25
mwhudsonabadger1999: np05:25
fullermdWhy is this an "or"?  Does nobody have the foresight to have a wet bar built in to the nightstand?05:29
AndrewLueckeG'day, does bazaar have a way to restrict&control SSH access?05:31
AndrewLueckeaah.. nevermind..05:32
AndrewLueckeGot it ..05:32
igcback06:42
mwhudsonigc: hi06:50
igchi mwhudson06:50
mwhudsonigc: i just wanted to encourage you to just make/land changes to loggerhead trunk if you feel they are improvements06:51
igcmwhudson: ok. I'm hoping to start looking at the loggerhead stuff any day now - building a Windows 2.2 installer currently06:52
mwhudsonigc: ah ok06:53
mwhudsonigc: loggerhead should be more fun than that :)06:53
igcmwhudson: I've been reading up on WebOj and Chameleon while up at the hospital in recent days as well06:53
igcmwhudson: yes :-)06:53
mwhudsoni've been feeling bad for being a slack maintainer lately, and it looks like i'll be getting even less time for it06:54
mwhudsonigc: i think chameleon is probably a pure win if we can keep streaming06:54
mwhudsonsimpletal is kinda horrible06:54
igcmwhudson: np. I'll be sure to ping you asking for advice if I have any concerns about changes06:54
mwhudsonigc: cool06:55
igcmwhudson: yeah, I find TAL+TALES+METAL a lot less readable than jinja2 but I'll survive :-)06:55
igcmwhudson: I'm curious about the stability issues as well06:56
mwhudsonwell if you want to rewrite all the templates...06:56
mwhudsonigc: so are we all, i think06:56
igcmwhudson: is there a 60 second summary of what not to touch, e.g. the threading code?06:56
mwhudsonigc: i'd consider most of it fair game i guess :)06:58
mwhudsonigc: the code for the url dispatch, information gathering and rendering stages is fairly separate06:59
mwhudsonigc: the problems tend to be in the middle stage, unsurprisingly, so it's probably best to at least be careful there06:59
igcmwhudson: by middle, you mean "info gathering"?07:00
igcthe "interfacig to bzrlib" bit?07:00
mwhudsonigc: yes07:00
igcmwhudson: ok07:02
mkanatI'm seeing a lot of what seem to be spurious merge conflicts when I try to update a bzr branch from Bugzilla 3.4 to Bugzilla 3.6.07:17
mkanatPerhaps there's some documentation that I haven't read?07:17
AndrewLueckeSorry to bug you guys again.. But we are branching a SVN tree into bzr, and would like to still be able to pull off their tree, as well as maintain history.. I assume  bzr-svn is the best way of doing this?07:39
mwhudsonAndrewLuecke: yes07:39
AndrewLueckeok.. cool..07:39
AndrewLueckeThis is SOOOO much nicer than mercurial's and gits way of doing it07:54
AndrewLueckeI've spent the last 4 days on this.. And this is soooo streamlined07:55
* AndrewLuecke has become a fanboy suddenly07:55
igchi bialix08:26
bialixhi igc!08:26
bialixglad to see you08:26
igcbialix: ditto08:26
bialixI've used explorer yesterday on colo workspace. nice work with context menu08:27
igcbialix: if you get some time soon, can you try the latest bzr-windows-installers scripts?08:27
bialixI think we need even better support for colo08:28
igc+1 from me on that08:28
bialixigc: perhaps on weekends only08:28
bialixis it ok for you?08:28
* bialix trying to finish main work to be able attend UDS08:28
igcbialix: whenever suits you is good. I'm trying to get a bzr 2.2 build with Python 2.6 (and I'm struggling)08:29
bialixigc: I need to make auto-generated en.po translation to be LF-only as well. is it still a problem?08:29
igcbialix: no, I think the problem is elswwhere08:30
igcelsewhere08:30
bialixpython 2.6... I've tried to avoid it in my work, just because there is some struggles with py2exe08:30
igcmy current struggle is probably something to do with how py2exe is configured08:30
bialixigc: will be nice if you send me a mail closer to weekend and highlight the moments I should check/help08:31
igcthere's a PyQt4.uic.port_v3 on the filesystem but py2exe is falling over becuae it con't find it08:31
bialixthere is not much configuration knobs in the py2exe08:31
bialixmaybe env path08:31
igcbialix: hmm - maybe I need to look there08:32
igcbialix: i'ts very frustrating when it fails because it gives you so little to work out what's wrong :-(08:33
bialixigc: there is something like debug output in py2exe, at least it can generate full dependency graph for you08:33
bialixigc: which version of PyQt I should use?08:36
igcI'm trying to build with Python 2.6.5 and PyQt 4.7.208:36
igcbialix: ^^^08:36
bialixok, I'll grab those08:36
igcbialix: thanks08:37
igcbialix: with rev 108 of bzr-windows-installers, the command to run is ...08:38
igcbuild.py installers --standalone-only08:38
* bialix nods08:39
* bialix has pyqt 4.7.0 as well08:39
=== radoe_ is now known as radoe
lifelessthumper: https://edge.launchpad.net/codewiki09:19
* igc dinner09:35
vilalifeless: heads-up, feed-pqm doesn't prefix your commit messages with (lifeless)09:52
lifelessvila: interesting; file a bug on hydrazine please09:52
vilalifeless: I don't think so, we tend to use a rather liberal prefix there (mbp, for parthm) for example09:53
lifelessvila: if we were to fix this, where would it get fixed?09:53
vilalifeless: we never fixed pqm-submit, why should we fix feed-pqm ? :->09:54
lifelessbecause a smooth toolchain is nice to work with09:54
lifelessso I repeat09:54
lifelessvila: if we were to fix this, where would it get fixed?09:54
vilalifeless: educate the user :)09:55
lifelessvila: I don't understand why you don't want this automated.09:55
vilalifeless: if that doesn't work, joking, let me finish :)09:55
vilait that doesn't work, then either pqm or feed-pqm, probably the later, but the rules need to be defined, like, generate a prefix only if none are present and put... username there?09:56
lifelessvila: this, file a bug09:57
lifeless*thus*09:57
lifelessand yes, hydrazine for now, I think09:57
=== mrevell is now known as mrevell-lunch
=== mrevell-lunch is now known as mrevell
ezodsuppose a remote (upstream) bound branch is at revision N, and i make a local commit, so i'm at revision N + 1, then i run bzr update, putting me back to N14:19
ezodis there any way to get revision N + 1 changes back?14:19
awilkinsezod, update again (presuming you did an update to -r -2 to get to N)14:22
ezodno, rev N + 1 was local only14:23
ezodwill this work:14:23
ezodbzr pull . --overwrite -r revid:<N+1>14:23
ezodperhaps?14:23
awilkinsezod, try `bzr heads` to find the revision number14:23
ezod`bzr heads` doesn't return anything14:25
ezodoh14:25
ezodbzr heads --dead does14:25
awilkinsezod, find your revision and pull that14:26
ezodrevid is email-timestamp-string14:26
ezodok cool, will try14:27
awilkinsbzr pull -r revid:<blah>14:27
ezodawilkins: thanks, seems to have worked :)14:28
c_kornhello, how can I fix this error ? http://pastebin.com/XVcmjnWg15:01
awilkinsc_korn, You need to upgrade the remote repository15:03
awilkinsI believe there's a button in LP for that15:03
awilkinsOr take a local branch that isn't rich-root15:05
jammorning all15:11
jamhey vila, I got most of the merge_sorted stuff working15:11
jamsome edge cases that i want to write tests for first15:11
vilajam: morning jam !15:11
vilajam: good work !15:12
vilajam: so youwant to write test first ? :-P15:12
jamI do that sometimes :)15:12
jamseriously, when it is tricky edge case stuff, I usually do15:12
jamto make sure that I'm actually exposing the code I think I ame15:12
jamam15:12
vilayeah, that's the idea ;-)15:13
vilaby the way, have a look at bug #48917915:13
ubottuLaunchpad bug 489179 in bzr "log file -v misses some revisions" [Low,Confirmed] https://launchpad.net/bugs/48917915:13
vilajam: not for the bug itself, bug look at revno 4081.2.2 with qlog15:14
vilajam: Iwas surprised by the revno numbering here, as if daggy fix could somehow violate the stability,15:15
vilajam: I didn't dig but thought you may be interested15:15
jamdaggy shouldn't affect numbering15:16
c_kornawilkins: ok, I think I found the button.15:18
c_kornthis is it I think: http://www.ubuntu-pics.de/bild/50919/screenshot_001_4B7Mnw.png15:19
vilajam: I realize that, but just have a look15:20
awilkinsc_korn, You might want to warn the rest of the dev team :-)15:20
c_kornawilkins: yes, I am currently doing this15:20
jamvila: so what am I looking at wrt 4081.2.2 ?15:36
jamvs log file -v ?15:36
jamI see a lot of files merged in 4081.2.2, but that is expected, since it is all of 5112-4081 from bzr.dev being merged in one go15:37
vilajam: just a sec, killed the wrong qlog seconds ago15:37
jamif you are wondering about the revno, it is because they merged bzr.dev into the changelog branch, not based the changelog branch on bzr.dev15:38
vilajam: ha, right, twice, I've been tricked by qlog for the other case but it's right here :-)15:41
vilajam: I think my initial surprise was more about the -n0 -v revno being so far away from the revs shown by -n0, but that may just be the revno scheme after all15:45
jamI don't quite understand "the -n0 -v revno"15:49
jamwhen I do "bzr log -v -r 4081.2.2" w/ bzr.dev, I only get the one rev15:49
Lo-lan-doHi all15:53
jammorning Lo-lan-do15:53
Lo-lan-dojelmer: I think I found a race condition in bzr-svn the hard way :-(15:56
jelmerLo-lan-do: hmm?15:59
Lo-lan-doSomeone did an svn commit just as I was starting pulling a branch onto my bzr checkout16:00
Lo-lan-doSVN did record both his revision and my series (of 21) revisions, but now I get an assertion error in my bzr checkout16:01
Lo-lan-do File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/branch.py", line 484, in get_rev_id/assert revmeta.get_revno(mapping) == revno16:02
Lo-lan-doOkay, I removed revprops, uncommitted and pulled again, and now I'm fine again.16:14
jelmerLo-lan-do: his changes interrupted your push of a serie of revisions?16:16
Lo-lan-doUnfortunately not.16:17
Lo-lan-doI think his commit happened between the time bzr had read the existing revprops and the time bzr started pushing.16:17
jelmerLo-lan-do: but it's now interwoven with your changes?16:18
Lo-lan-doSVN's revision history was, say, 100-101-102-103, with 101 being my coworker's commit and 102-103 being mine16:18
Lo-lan-doBut bzr log only displayed 100-102-10316:19
Lo-lan-do102 had 100 as its parent bzr-wise16:19
jelmerbug 51585016:19
ubottuLaunchpad bug 515850 in bzr-svn "Revisions added while a commit is happening are ignored" [High,Triaged] https://launchpad.net/bugs/51585016:19
Lo-lan-doSounds like exactly that, indeed :-)16:20
Lo-lan-doSorry for the interruption.16:20
tyarussoI know this is an odd request, but does anyone have a side-by-side technical comparison of bzr against RCS?16:23
jelmerLo-lan-do: np, it is an important bug to fix16:31
=== deryck is now known as deryck[lunch]
* jelmer waves to jam, vila16:32
jelmertyarusso: hi16:32
jelmertyarusso: I'm not aware of one - the major difference seems to be that RCS is per-file, Bazaar versions an entire tree16:32
tyarussohey jelmer16:32
jelmertyarusso: I'm not sure if that helps at all.16:33
jammorning jelmer16:33
tyarussodunno16:33
tyarussoThe main thing that annoys me with RCS is that the revision files aren't "hidden", so directories get really cluttered.16:33
jelmerjam: looks like I'll need packs for bzr-git's cache anyway16:34
jelmerjam: group compress doesn't rely on parent information right?16:34
jelmerjam: (for performing well, I mean)16:34
jamjelmer: correct16:35
jamthough you need some sort of 'grouping' key16:35
jamatm we use file-ids and sort them16:35
jamwhich often works pretty well16:35
jelmerthat's fine, I'd want Git paths in that case16:35
tyarussoWhat happens if you do a bzr init in a directory that already has a repo going?  (For instance, if you have a bunch of scripts that want to version something in /etc, and they don't know which script will run first. (not using etckeeper))16:35
jamwell, you'd want filenames not paths, I would guess16:35
jamor reverse paths or something16:35
jamall files in a dir don't often compress as well as all files named Foo16:35
jelmerjam: Sorry, that's what I meant16:36
jelmerit's the same key that git uses to compress its packs16:36
jelmerjam: Basically, I'd like to cache git Tree objects and Blob objects for symlinks16:36
=== salgado is now known as salgado-lunch
RobOakesMorning everyone.  I am trying to push a bzr branch into an empty svn repository (for backup/collaboration purposes).  However, when I run bzr push https://path/to/repo, it tells me that the branches have diverged.17:05
RobOakesDoes anyone know how I can push my local branch to the remote server with bzr-svn?17:05
tyarussoThis there a way to give each versioned file a description?  For instance "Config file for MySuperCoolProgram".17:06
jelmerRobOakes: your bzr branch has a different history than an empty svn branch (which has exactly one commit on it)17:07
jelmerRobOakes: If you push to a location that doesn't exist yet things should work17:07
RobOakesFor example: http://server/repo/subdir?17:08
jelmeryeah17:09
jelmerprovided subdir doesn't exist yet17:09
RobOakesOh, that worked great.  Thanks!17:09
Torneis it intentional that pressing 'f' in the builtin shelve command selects "yes" for all remaining hunks?17:16
Torneit seems much more logical for it to select "no", since that's the default17:16
=== IslandUsurper is now known as IslandUsurperAFK
msmithhello everyone, i have a question about bzr-svn on debian17:26
msmithwhen installing on debian using apt-get i get the following:17:28
msmith bzr-svn: Depends: bzr (< 1.6~) but 2.0.3-1~bpo50+1 is to be installed17:29
tyarussoI suppose I *could* create a local branch for each file and name those, but that seems a little silly.17:29
msmithis there a repository i can add to my sources.list that would contain an updated version?17:30
Pengmsmith: Yes, unless the repository is out-of-date too.17:31
PengDon't have a link right this second, though.17:31
Pengmsmith: Try https://launchpad.net/~bzr/+archive/ppa, or possibly https://launchpad.net/~bzr-svn/+archive/ppa or something17:32
PengIIRC there is a bzr-svn ppa, but I don't remember the link. :-\17:32
Tornemsmith: which version of debian are you using? all versoins should have a matching bzr-svn for the bzr they have17:35
Tornemsmith: it looks like you maybe installed bzr from somewhere else17:35
PengErr, right, Debian. The PPA's out, then...17:35
PengSorry.17:35
msmith:)17:36
Tornemsmith: ah, you have bzr from lenny-backports17:36
Tornemsmith: there's no bzr-svn backported to lenny.17:36
Torneeither install the testing/unstable version of bzr along with all its dependencies, and the matching version of bzr-svn from testing/unstable, or downgrade to the lenny version of bzr, or build your own package..17:36
Torne(or ask someone else for a backport :)17:36
msmithok, thanks.  i'll try to follow that path and scream for help if i fall off a cliff17:38
=== deryck[lunch] is now known as deryck
=== beuno is now known as beuno-lunch
=== salgado-lunch is now known as salgado
=== zini1 is now known as zini
=== IslandUsurperAFK is now known as IslandUsurper
krisives-gearboxI have 2 branches that didn't start as the same code, but I'm trying to get them to be equal. I've made both a bzr repo and added all the files. What strategy should I use to try and get them to be equal?18:25
=== beuno-lunch is now known as beuno
rellisIs there a way to get a commit history for a particular user with bzr?19:34
krisives-gearboxhttp://superuser.com/questions/128540/bazaar-merge-identical-files19:42
vilakrisives-gearbox: you should put one branch under bzr and then, override all the files with your second branch and finally do 'bzr diff'19:51
krisives-gearboxoverride>19:51
krisives-gearbox?19:51
vilacopy over19:51
krisives-gearboxif I do that in a new area I can then push/pull those diffs into one of the original to make them all equal19:52
vilawhen a file is first added to a branch, it receives and unique ID, if you so that in two different (unrelated) branches, the "same" file get a different ID, when your try to merge bzr then see them as different and move one away (.moved)19:53
vilas/and unique/ a unique/19:53
vilameh s/so that/do that/19:53
vilakrisives-gearbox: you can't start with two different histories, that's the so-called "parallel import" problem which is yet to be addressed by bzr19:56
krisives-gearboxOne issue with that strategy though19:58
krisives-gearboxI want to end up with 2 bzr repos19:58
krisives-gearboxnvm I think I figured it out, I'll let you know how it works20:00
vilakrisives-gearbox: are you sure you don't mean two branches here ? A repo for bzr is just a place to put revisions used by one or many branches20:00
krisives-gearboxbzr init creates a repo, right?20:00
krisives-gearboxI probably have that wrong20:01
vila'bzr init' creates a branch, a branch uses a repo, if no repo is available to be shared, 'bzr init' will create one for the branch itself, but if you intend to use several branches, you use 'bzr init-repo project' and then 'bzr init project/trunk' and 'bzr init project/feature' etc20:02
vilatrunk and feature will then share the repo created for project20:03
krisives-gearboxwhats the diff between merging repos and branches? or does that question not make sense?20:03
vilakrisives-gearbox: http://wiki.bazaar.canonical.com/MatthewFuller/SpotDocs/PiecesInBrief is pretty quick to read20:04
krisives-gearboxthanks20:04
vilakrisives-gearbox: you merge branches, repos come into play in the background, you rarely use them directly20:04
krisives-gearboxok20:05
vilakrisives-gearbox: 'bzr reconfigure' can also be used if you change your mind about your branches layout20:05
krisives-gearboxI'm still thinking it out hehe20:05
krisives-gearboxI'm integrating bzr so we can keep client sites up to date20:06
krisives-gearboxThe old system is a hacked PHP upload script garbage blah20:06
vila"Whatever works" he said :)20:07
krisives-gearboxRandomly, is there a way to tell `cp` not to copy a specific directory in a recursive?20:08
vilakrisives-gearbox: randomly: cp everything somewhere, delete the offending dir, cp the result ?20:10
krisives-gearboxgood idea20:10
vilakrisives-gearbox: 'tar' has more options, but it's also a bit harder to use it to just copy files around20:11
PengYou could use rsync. But, again, way complicated.20:11
krisives-gearboxI think I'm going to do from/* to avoid getting the .bzr20:11
krisives-gearboxcp -r from/* to/*20:11
Pengkrisives-gearbox: Use "bzr export" to get a copy of a working tree somewhere.20:11
krisives-gearboxusually would, but doing an "override"20:12
Pengkrisives-gearbox: A repository is just a big bag of revisions. They can be from related branches or not. There's really not much to think about there.20:12
jelmerjam: what's this history db thing you're working on?21:27
jamjelmer: caching the dotted revno / merge sorted graph21:28
jamI've posted some of the results to the list21:29
jamThe basic idea: a dotted revno cache can be shared between branches21:29
jamas long as you store it based on the mainline revision21:29
jelmerah, nice21:29
jamyou can store it completely clustered (only new info per new mainline rev) as long as it is fast to expand21:30
jamin the process21:30
jamI also think I can *compute* the merge_sort graph fairly efficiently for new revisions21:30
jamI think I've found solutions for everything21:30
jamsuch that nothing is O(history)21:30
jammost things are (at worst) O(history since you branched from)21:31
jamsome interesting other results, though21:31
jamlike loading the whole ancestry of mysql in 80ms or so21:31
PengWait, where would this be implemented? bzrlib? A plugin? Something Loggerhead can steal....? :>21:31
jelmerjam: ooh, that sounds pretty nice :-)21:31
jamPeng: it is currently a bzr plugin, and inspired from some of the needs of loggerhead and some other bits21:32
Peng<321:32
jamalso from codehosting21:32
PengGranted, it would take more than this to fix Loggerhead's issues, but... :P21:32
jamwhere I'm told there is a table that stores "what revisions are in the ancestry of this revision" for all revisions21:32
jamPeng: well the root idea was that loggerhead loads the whole history graph when it often doesn't care21:33
jamso how do we store it21:33
jamin such a way that we can read only parts of it21:33
jamand how can we make that efficient against N branches21:33
jametc21:33
PengAh. So this could be plugged into a lot of Loggerhead?21:33
jamPeng: it would replace the RevisionCache, IIRC21:33
jamyou get to keep dotted_revnos in the api21:34
jamwithout having them be 2s to compute per branch21:34
jamget_dotted_revno() for an old revision in mysql takes 13ms21:34
jamfor a new revision, it si about 5-10ms21:34
jamAnd I *think* that will scale 'out', where you ask for multiple dotted revnos in a single pass21:35
jamso it shouldn't be 26ms for 2 dotted revnos, but more 14ms or s.21:35
jamso21:35
jelmerjam: what's the status on your pack collection work, is it ready to use in its current form?21:40
jamnot yet21:41
jamI got distracted by this21:41
PengWe need to get you to collaborate with yourself from an alternate universe to get both done at once. :)21:43
jelmerjam: ok21:47
pyMynxanyone there? ^^22:08
PengPossibly!22:09
krisives-gearboxThanks again for the help vila22:18
lifelessjam: before you wrap for the day, could I beg a review?22:22
mwhudson_jelmer: slightly obscure bzr-git kernel import failure leads to finding a sha1 problem: http://staging.launchpadlibrarian.net/42124151/mwhudson-linux-trunk.log22:22
jamlifeless: of?22:22
=== salgado is now known as salgado-afk
lifelesshttps://code.edge.launchpad.net/~lifeless/bzr/commit/+merge/2292022:23
lifelessjam: ^22:24
jelmermwhudson_: That's rev 58, caused by an issue with unusual modes. I'm working on it at the moment.22:27
mwhudson_jelmer: ahead of me as usual :)22:27
=== mwhudson_ is now known as mwhudson
pyMynxI'm pushing a folder to a server22:28
pyMynxbut the folder on the server is empty after push22:28
pyMynxall I have is a .bzr folder22:29
pyMynx:(22:29
jelmerpyMynx: yes, bzr push does not create a working tree22:29
jamlifeless: 1) I'm pretty sure the "msg_transport.get_bytes()" is unnecessary as the rest of the code certainly expects 'msgfilename' to be a local object that you can open()22:29
lifelessjam: yes, but that needs try:finally:close9)22:29
jelmerpyMynx: you can use the push-and-update plugin to keep the working tree up to date22:30
pyMynxjelmer: how should I create the branch on the server? I thought I had to push through sftp like in the tutorial22:30
pyMynxjelmer: oh ok22:30
lifeless5 lines, twice, or local function, vs 1 line twice + a 2 line setup22:30
jelmerpyMynx: bzr push creats a branch (including all history) but not a working tree22:30
lifelessif we had with, open would be fine.22:30
jamlifeless: also, you return "" if get_boolean() returns false. Shouldn't you be returning None ?22:31
jamlike the other code path does22:31
lifelessactually22:31
lifelessits mixed22:31
lifelesssome code paths return None22:31
lifelesssome return ""22:31
lifelessif you return None, it raises 'please specify a message via --file or --message'22:32
lifelessif you return "" you get 'empty commit message supplied'22:32
lifelesswhich is a more appropriate error22:32
lifelessI'll add a comment22:33
jamlifeless: bb:tweak22:33
jamlifeless: you also don't have a test case that shows that giving "n" actually cancels the commit22:33
lifelesssure, I can add one.22:34
pyMynxjelmer is that the only way? with the plugin? ...i'm following the instruction but it says lp:bzr-push-and-update does not exist yikes!22:36
PengpyMynx: lp:~bzr/bzr-push-and-update/trunk WFM22:37
pyMynxother way to create workingtree on server? :(22:42
PengSSH? :D22:43
mwhudsonbzr upload is another option, but it's rather different22:43
PengpyMynx: Why are you asking for anotehr solution? What's wrong with bzr-push-and-update?22:43
mwhudsonjelmer: oh, that reminds me, what are the names of the bzr-git caches now?22:44
pyMynxPeng: I can't install the plugin damn... maybe it's just me22:44
jelmermwhudson: everything is in git/ basically22:44
jelmermwhudson: .bzr/repository/git/ that is22:44
mwhudsonjelmer: ok22:44
PengpyMynx: What error message do you get?22:45
PengHold on.22:45
jelmermwhudson: I can give you more specific names if that helps, but supporting git/ would avoid having to play catch up in the future22:45
PengpyMynx: Do you have the built-in launchpad plugin disabled for some reason?22:45
mwhudsonjelmer: supporting git/ is probably easy enough22:45
pyMynxPeng: I've placed the folder inside the plugins folder, but for some reason it doesn't come up when I type bzr plugins22:45
PengpyMynx: Did you name it "push_and_update"?22:46
pyMynxPeng: no, I'll try it now22:47
PengpyMynx: Bazaar plugins, like all Python modules, can't have - in their names.22:47
pyMynxPeng: worked :|22:47
Pengyay22:48
pyMynxPeng: :D thank you very much!22:49
pyMynxPeng: btw sorry if I ask, but does the plugin automatically work when I do push or do I need to type something else? because the docs I found seem very short22:49
PengpyMynx: It works automagically.22:49
PengpyMynx: But only if a working tree already exists.22:50
pyMynxPeng: lol22:50
pyMynxPeng: in local?22:50
PengpyMynx: No, in the location you're pushing to.22:50
pyMynxPeng: all I did was follow the tutorial doing, bzr init, add and then after commit something22:51
Peng...22:51
PengWhat are you trying to accomplish?22:51
PengWhy do you need working trees on servers?22:51
pyMynxI have a workingcopy of this site on my desktop22:51
pyMynxI would like to have the same repository on the server22:52
pyMynxso whenever I change a few things that I like, I push the changes onto the server22:52
PengDoes the server need a working tree, or just the Bazaar data?22:53
pyMynxPeng: the server needs all the files in my folder22:53
pyMynxPeng: I'm sorry for being a pain :)22:54
PengpyMynx: Well... if bzr is installed on the server, and a working tree exists, it'll all work automagically.22:55
PengpyMynx: If a working tree doesn't exist yet, you need to SSH into the server and run "bzr co" in the branch's directory.22:55
pyMynxPeng: bzr co should make a tree automatically?23:01
Peng...23:01
Pengcd to a branch without a tree, run "bzr co", and it'll make a tree.23:01
pyMynxok thanks23:02
pyMynxon it!23:02
pyMynxPeng: nightmare :| no module XMLSerializer23:09
mwhudsonjelmer: +0000 vs -0000 ? argh!23:37
jelmermwhudson: yeah, nasty one :-)23:38
jelmermwhudson: I need to figure out if git consistently uses -0000 or if it writes +0000 sometimes as well23:38
jelmeryeah, it seems inconsistent23:40
jelmercommitting manually I can only get it to write +000023:40
mwhudsonboo :/23:46
mwhudsonanother revprop then?23:46

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