/srv/irclogs.ubuntu.com/2008/05/30/#bzr.txt

jamvila: btw, I've been using your --startingwith a lot lately, thanks for doing it00:00
jamIt actually jumps out at me when I'm using an older branch which doesn't have it00:00
james_wIs there a pleasant way of deciding whether something is remote?00:02
james_wI take BRANCH as an argument on the command line, if it is local then I want to "cd" there, if it isn't I want to change some values of something00:04
james_wit doesn't have to be perfect in checking whether something is local, and  I don't mind about the case that someone gives an sftp:// URI that resolves to their current working directory.00:04
james_wwould just checking for local paths and file:// URIs with string comparison be ok?00:05
james_wlocal = urlparse.urlsplit(location)[0] in ('', 'file')00:07
james_wthat would seem to do it00:07
beunomwhudson, you've got mail.  Let me know if that addresses your comments00:11
poolielifeless: can you please set up a pqm 1.6 branch some time soon00:12
poolieactually nm00:12
pooliewe'll wait to branch til next week00:12
mwhudsonbeuno: ok00:13
beunocool, ipython uses bzr and LP!   http://ipython.scipy.org/moin/00:13
igcmorning00:13
mkanatjam: Where is cvsps-import storing the map history?00:23
jammkanat: look at your output there should be a directory where it is storing something.map00:24
jamI don't remember off-hand00:24
jambut it should be fairly obvious00:24
mkanatjam: Okay.00:24
mkanatAh, yeah.00:24
mkanatjam: If I do a manual checkin on one of the branches, will it break fmap?00:25
jammkanat: you aren't supposed to be modifying these branches outside of cvsps, I'm not sure what will happen if you do00:26
mkanatHm.00:26
mkanatjam: I'm trying to figure out a workaround for the situation I'm in, any ideas?00:26
PieterHmm.. I downloaded the bzr emacs repository from http://bzr.notengoamigos.org/emacs.tar.gz, but I get a fatal error when trying to check out revision 5025500:26
jammkanat: well, you can fix cvsps or rebase....00:26
jamsorry I don't have a better answer00:26
mkanatjam: It looks like rebase won't work, as far as I can see...00:27
jammkanat: sorry you can fix (cvsps or rebase)00:28
mkanatAhh.00:28
jamnot (fix cvsps) or (rebase)00:28
mkanatjam: What would happen if I surgically remove those revisions from revision-history?00:31
mkanatHa, okay, that's bad.00:33
=== abentle1 is now known as abentley
Pieterjearl`: you there?00:50
spivAh, I'm back online.01:13
lifelessmkanat: uncommit should be fine, I would expect converters to just re-add them tho :P01:16
lifelessmkanat: also, you may find that there are fixes for the cvsps program itself 'out there', I've seen various folk talk about patches for it01:17
mkanatlifeless: Yeah, but this one isn't so much a bug as a missing feature.01:24
mkanatlifeless: Also, there are commits after the "bad ones".01:24
lifelessmkanat: sorry, I didn't track the very start of the conversation; whats the root bad behaviour of cvsps?01:24
mkanatlifeless: It doesn't track what patchset a branch starts at from its parent.01:25
lifelessso how do we create new branches at all?01:25
lifelessdoes cvsps-import infer that itself?01:26
lifelessjam: ^ ?01:26
mkanatlifeless: I think so. I think the first time it sees a branch name it branches it from its ancestor at that point in time.01:31
mkanatlifeless: I'm guessing there's no way to uncommit a series of revisions that aren't actually the most modern set.01:31
jamlifeless: The stream of cvsps tells you "create a new branch, originating from this branch"01:34
jamIt doesn't indicate at what point in time along the other branch to split, it was just inferred by order01:34
lifelessjam: ok01:34
lifelessjam: so could we not just run cvsps in toto again, checking it for consistency against the last output01:34
james_wlifeless: hi, do you have a minute, I'd like to confirm something?01:35
lifelessjames_w: shoot01:35
james_wlifeless: is your idea that a revision should only appear in the left hand ancestory of a branch if it was uploaded to that distribution?01:35
jamlifeless: I think cvsps deterministically gives the same results each time01:35
lifelessjames_w: from the branch point yes01:36
jamlifeless: if it didn't, then I couldn't support resume without more work01:36
james_wlifeless: e.g. if Debian was to upload two versions quickly, and the first wasn't synced then it should not be a revision in the Ubuntu branch.01:36
lifelessjam: surely then new branches appear in the entire output correctly?01:36
jamlifeless: apparently not01:36
jamIt seems that if you tag a branch01:37
jamand then do a couple of commits on the source branch01:37
jamand *then* commit to the new branch01:37
jamit shows the same thing01:37
jamexcept it doesn't realize that the tag was on an earlier commit01:37
lifelessoh, date sorted output01:37
jamsomething like that01:37
jamit claims to do topological sorting, etc01:38
jambut we are seeing date sorted here01:38
james_wlifeless: what about packages that predate Ubuntu, should they adopt the history of the Debian branch?01:38
lifelessjames_w: I'm not sure what you mean01:40
james_wlifeless: this is stage 2 really, but I want to get it clear in my head, the first version of package foo didn't appear in Ubuntu as it predates it, so if the above statement is true it should not be in the left-hand ancestory. However, this would mean that the branches for Debian and Ubuntu are divergent, even if foo has only ever been synced from Debian.01:42
james_wis that the desired behaviour?01:43
lifelessah01:43
lifelessso perhaps rephrasing01:43
lifeless'every upload we import from ubuntu should be in the left hand ancestry'01:44
james_wsure01:45
lifelessdoes that help ?01:46
james_wand in the first case, where debian uploads two packages quickly and only the second is synced, should that cause divergence, or would it be ok to include the first upload in the left hand ancestry?01:46
lifelessI think that is fine01:47
lifelessgiven you're tagging to identify distro versions orthogonally to revision ids01:47
lifelessI don't think I ever suggested that commit should imply upload, only that upload -> left hand commit01:48
lifeless(If I did, sorry for confusion, I didn't intend to)01:48
lifelessabentley: I have a test case01:48
james_wah, no, you didn't imply either way, I don't think. I was just unsure, so I wanted to confirm before getting too far down one path.01:49
james_wthanks for your time.01:49
lifelessabentley: http://pastebin.com/d54e0a61e01:49
lifelessabentley: if you could just eyeball that and see if it makes sense to you01:50
james_wback to bed :-)01:50
lifelessfun, it breaks everything01:51
lifelessactually, http://pastebin.com/d3ba9db64 is the working version01:52
abentleylifeless: on line 21, is that "line\2line..."?01:54
lifelessabentley: oh, nice catch :)01:54
lifelessshould be \n indeed01:55
lifelessnow it only breaks annotated weaves as expected01:55
abentleyIs the first vf only being used to generate a sha1?01:56
lifelessyes, I am shrinking it further now01:56
lifelessif it appears to make sense to you that is01:57
abentleyI forget what the parameters to ParentText are...01:58
lifelessparent number01:58
lifeless |  __init__(self, parent, parent_pos, child_pos, num_lines)01:58
lifelessI got those numbers by printing the bzr generated mpdiff with the optimiser disabled01:59
lifelessbut I wanted a test that was independent of that other discussion01:59
abentleyYeah, assuming that \2 is \n, it looks reasonable.02:00
lifelessthanks02:00
* fullermd hates the launchpad bug mailings...02:02
fullermdEvery time I THINK I've captured every way they can get to me, some whole new set of headers arrives...02:03
lifelessok, it has to be on top of a delta to trigger the error02:04
lifelesshttp://pastebin.com/d3b2ceea502:05
* igc running some errands - bbl02:21
lifelessyay finally triggered this without mpdiff involvement02:31
poolielifeless: no test for 234748 yet, will do it soon02:50
lifelesspoolie: I'm dealing with a very similar bug02:51
lifelessnearly finished02:51
lifelessif you have a fix for 234748, perhaps you could try my test case against it ?02:51
pooliehappy to02:52
lifelesshttp://pastebin.com/d6b23fcca02:52
jmlfeature request:02:54
lifelessa request for a feature02:54
jmlbzr foo --hlep should show the help for foo02:55
poolieit does02:55
jmlIf I can't type 'help' then I probably need it.02:55
poolieunless you meant literally hlep02:55
spivHmm.  We have quite a few tests that rely on indirect ways to force snapshotting in knits.  Which is fine (we don't want a public API for that), but maybe it deserves some explicit test infrastructure so that if the snapshotting heuristic changes we don't have to change/audit lots and lots of tests.02:55
poolieoic :)02:55
lifelessspiv: indeed. I'd already written:02:56
lifelessmeh02:56
lifelessI'll finish, commit and you can review instead ;)02:56
spivlifeless: ok :)02:56
LaserJockis there anybody specifically looking at git-bzr bridging?02:57
lifelessigc02:58
LaserJockI just had a possibly nasty idea of CVS -> git -> bzr02:59
lifelesswhy?02:59
lifelesscvs->git recommends cvs2svn fastexport nowadays02:59
lifelessand bzr-fastimport can read that directly02:59
LaserJockbecause CVS -> bzr isn't quite working and cvs->git is working for me02:59
LaserJockhmm, maybe I should try bzr-fastimport then03:01
LaserJockwait a sec though03:02
LaserJockwhy doesn't LP use bzr-fastimport then03:03
poolieLaserJock: i think fastimport is probably the way to go03:03
pooliebut it would be good to just fix the bugs in reading from cvs2svn03:03
pooliejelmer was looking at doing git foreign branch support though03:04
lifelesspoolie: did your fix fix my test case? I would expect not ..03:12
pooliesorry have not tried it yet, will now03:14
poolie!!03:15
poolieyes it did03:15
lifelessthought it might03:15
pooliei am a bit surprised; i thought this only affected the multiple extraction case03:15
poolieinteresting03:15
lifelessno03:15
lifelesswe've an awkward abstraction03:15
poolieit doesn't strictly do so03:15
lifelessthe Content objects03:15
poolieyes03:15
pooliealso, the higher-level check code is still really thinking in terms of knits or weaves03:16
lifelessok, I'm going to commit what I have03:16
lifelessbecause I think they are useful changes to review03:16
lifelessand send in and move on03:16
mwhudsonLaserJock: because fastimport is pretty new, and launchpad has been doing cvs imports since 2004?03:16
LaserJockmwhudson: makes sense03:17
lifelessalso03:17
mwhudsonnot sure how well suited the fastimport is for syncs03:17
lifelessI haven't seen anything as strict or capable as cscvs is at at handling *ongoing* fuckage of cvs03:17
LaserJockah03:17
lifelessthere are amazingly stupid things people can do to a live cvs repository03:18
mwhudsonyeah, if we can fix the file-created-by-merge bug cscvs starts to look quite good again for what it dos03:18
mwhudson(and i think this bug is created by cvs changing since cscvs was written, believe it or not)03:18
fullermdThat's a side effect of there being amazingly stupid things people _have_ to do to a live cvs repository   :)03:18
lifelessgiven it consists entirely of analysing breakage people *do*03:18
mwhudson!cvs bashing03:18
ubottuFactoid cvs bashing not found03:18
mwhudson:)03:19
lifelessfullermd: not true; choose to yes, have to - no03:19
poolielifeless: so this looks like a good test for 234748; do you think i should add another closer to the case where this arose?03:19
lifelesspoolie: uhm, my test happens to show up the bug. its a bit of a bug we don't have good tests of the behaviour on these things, neither fish nor fowl :(03:20
pooliewell, it's pretty close to what i had in mind, except i didn't think it'd show up through that api03:20
lifelesspoolie: I've committed and sent to the list my state03:25
lifelesspoolie: that bug actually can lead to knit corruption on knit repositories03:25
lifeless(not packs though)03:25
lifelessjml: if you use your patched loom03:27
lifelessjml: and do 'bzr st --short' what happens?03:27
jmllifeless: traceback. I guess I do need those args after all.03:28
lifeless:)03:28
jmland maybe a test to catch that.03:28
lifelessmmm03:28
lifelessno need for the test I think03:29
lifelessbzr blackbox tests will exercise options03:29
lifeless(bzr selftest status) with loom installed should break03:29
jmlhmm.03:29
lifelessoh03:29
jmlif that's the strategy, why did I need to add a test for non-loom support?03:29
lifelessalso you should upddate the bzr_commands in setup.py03:30
lifelessI'd like to someday have 'bzr selftest loom' use that metadata to also run blackbox tests that match those patterns from bzrlib core03:30
lifelessjml: because non-loom support is an explicit case we will not cause a fragile test on03:31
lifelessjml: as opposed to options from bzr itself which could change at any time03:31
jmllifeless: (just clarifying) even though it's covered you think it's better to have something explicit? I'm cool with that.03:33
jmllifeless: I've done all that now.03:39
fullermdOK, I'm having a hard time figuring out what -Dhpss is saying, but I get two of the "does not understand protocol 3" messages when doing a pull over the smart server when I specify a URL.03:42
beunofullermd, I've been getting those for a while not with bzr.dev03:45
fullermdIt's not the getting them; it's the getting TWO of them.03:46
beunoah03:46
fullermd(actually, I get it with a number of other commands too, but pull's the easy one to point at)03:48
beunofullermd, I get two also03:49
beuno(I just checked with pull)03:49
beunoI don't with push though03:49
beunofrom the log, it looks like one for get, and one for open03:51
lifelessyay with that fix versionedfiles tests pass04:02
fullermdbeuno: You want to file it?04:03
beunowhat would be the best way to get a diff for a file between 2 revisions?04:03
lifeless'bzr diff -r x..y'04:03
beunofullermd, I don't want to take the credit  :p04:03
beunolifeless, right, I meant with bzrlib  :)04:04
fullermdWell, I can't make heads or tails of -Dhpss   :|04:04
spivfullermd: that sounds like a bug in pull, we should avoid opening multiple connections when one will do.04:04
fullermdmerge at least did it too.04:04
lifelessbeuno: so do I - look at the code :P04:04
spivfullermd: feel free to pastebin the ~/.bzr.log + console output, or mail it to me.04:04
fullermdI noticed on an attempt to merge --uncommitted over bzr+ssh.  Double sin-points for 2 protocol downgrades, before telling me it wouldn't work remotely anyway   :p04:05
spivfullermd: or a way to reproduce04:05
beunolifeless, lol, well, yes. I was hoping for some magical answer which would save me from half an hour of browsing through bzrlib, but I guess it's the only way to learn  :)04:05
fullermdspiv: bzr init /tmp/foo ; cd /tmp/foo ; env BZR_REMOTE_PATH=bzr-1.4 bzr.dev pull bzr+ssh://localhost/tmp/foo/04:06
fullermdOr 1.5, or whatever is old enough to force the downgrade.04:06
beunoor just pulling from LP with bzr.dev  :)04:07
spivfullermd: ta04:08
spivfullermd: I see it, thanks!04:08
spivOoh, three connections in fact.04:08
fullermdWell, it was only one connection 'till *I* looked at it.  That moved it to 2.  Then you looked at it, and it became 3.04:09
fullermdNobody else look at it!04:09
lifeless37 errors left04:17
jmllifeless: woot.04:18
* beuno curses loggerhead04:24
beunomwhudson, I may be wrong, but there is absolutely no easy way to get a diff for one file, with the current loggerhead code, right?  I gets *all* the files changed04:25
mwhudsonbeuno: at some point, we should drink a very large amount of beer together04:26
mwhudsonbeuno: that sounds entirely plausible04:26
rockstarIf I upgrade a parent bzr branch, is that going to break merges with the branch's children?04:26
mwhudsonyou'll need to bend the history.History interface a bit04:26
mwhudsonrockstar: "depends"04:26
mwhudsoni think04:26
beunomwhudson, heh, I will owe you quite a few when a month in, so I'll make an effort to make that happen04:26
beunomwhudson, I'm going to add that then, I need that if I'm going to do any of the things I have in mind  (I've been going in circled cursing for the past 4 hours)04:27
mwhudsonok04:28
mwhudsoni haven't been loggerhead-ing much today04:28
beuno30 minutes to get the ajax part sorted out, 4 hours jumping around loggerhead code and looking at many # This is a bad API, remove this eventually04:28
mwhudsonheh heh heh04:33
lifelessaaargh backscatter time04:33
lifelessrockstar: no except for the case of rich-roots04:33
rockstarlifeless, pack-0.92-subtree  It's in great need of upgrading.04:36
lifelessabentley: I've come around to your way of thinking w.r.t. keyspaces; the compelling argument for me is 'making pack indices regeneratable' - but the changes are all deeper than the surface stuff04:38
lifelessabentley: we need to alter the knit records and up04:39
lifelessrockstar: there is no more rececnt format than that04:39
rockstarlifeless, more recent than pack-0.92-subtree ?  Really?04:40
lifelessrockstar: there are three flavours of formats - plain, rich-root, and subtree04:40
lifelesspack-0.92 is the most recent subtree format04:40
rockstarlifeless, so no need to upgrade?04:40
abentleyI'm glad that you agree.  I'm curious about how it makes pack indices regeneratable, but I don't understand what you said afterward.04:40
* rockstar wonders who told him to upgrade04:40
lifelessrockstar: no need04:40
lifelessabentley: every record written to a pack file should have enough data to parse it and figure out what index to put it in etc04:41
abentleyrockstar: I recommend downgrading to rich-root-pack.04:41
abentleyUnless you are actually using the subtree functionality.04:42
abentleylifeless: Right.04:42
abentleyWhy do we need to alter the knit records?04:42
abentleyYou want to store additional data in them?04:42
rockstarabentley, will that break branches that need to merge back in?04:42
lifelessabentley: and currently they don't :(. Anyhow, short term I think I've taken a huge step towards consistent access, but deadlines04:42
lifelessabentley: yes, the knit records should store the full key04:43
abentleyrockstar: Not unless they're using the subtree features.04:43
abentleyThose features are experimental, and no one should be using them.04:44
abentleylifeless: Alternatively, we could store supplemental data elsewhere.  Anyhow, I agree about deadlines.04:45
rockstarabentley, alright, so I just bzr upgrade --rich-root-pack PATH_TO_REPO ?04:46
lifelessabentley: storing it elsewhere makes verification harder amongst other things04:47
abentleyrockstar: No.  Because you're doing a downgrade that was supposed to be disallowed, you need to create a new branch and pull into it.04:47
rockstarAnd then push that new branch with --overwrite  ?04:48
lifelessupgrade --rich-root-pack may well work, because it will trigger the clone-and-copy upgrade path04:48
abentleyNo, overwrite doesn't change format.04:48
lifelessbut take a backup first :P04:48
rockstarlifeless, that's a given  :)04:49
spivfullermd: I've found the reconnection bug.  It's pretty trivial, I'll send a fix in a moment.04:51
lifelessabentley: question for you on bundle installs - you check for presence of texts before installing...04:51
lifelessabentley: it would be simpler to just add them I think, trusting to the underlying store to turn duplicates into a sha check04:52
abentleylifeless: I don't think any of our current APIs allow this.04:54
abentleyIn many contexts, an early check could avoid plenty of I/O.  But for this purpose, it would be fine.04:54
lifelessabentley: thanks. in point of fact add_lines explicitly allows exact match duplicates IIRC04:56
abentleyAh.  I guess I just assumed the API would match the store characteristics.04:57
lifelessoh, add_lines raises RevisionAlreadyPresent04:58
lifelessI'll check that that is not the cast any more04:58
lifeless1905:16
lifeless(this is without reconcile tests being run :P)05:17
ToyKeeperHmm, is bzr supposed to require x11?05:24
lifelessno05:25
ToyKeeperIt looks like bzr recommends bzrtools, which recommends graphviz.  apt-get follows those.05:25
lifelessdoes graphviz require x?05:25
ToyKeeperYup.05:25
lifelessI thought it was just a rendering library05:25
lifelessanyhow, override apt :P05:25
ToyKeeperYeah, just inconvenient.  I figure I should check if it was intentional before filing a bug.  :)05:28
fullermdgraphviz can be built without requiring X, but I expect standard packages won't trim the options enough to do so.05:28
lifelessToyKeeper: its a weakness in dpkg05:29
lifelessToyKeeper: (I suspect)05:29
ToyKeeperOf the two optional dependency types, apt treats one as a requirement and ignores the other.  I'd consider it a bug in apt, unless there's a hidden feature I'm missing.05:31
lifelessToyKeeper: its bizarre - graphviz package says that it contains the command line tools05:34
lifelessToyKeeper: and there doesn't seem to be a graphviz-nox package05:34
RAOFToyKeeper: That's a deliberate design decision - Recommends is there for packages which aren't hard dependencies, but which almost all sane people will want to use.  Thus, installing recommends-by-default is the new default.05:35
RAOFToyKeeper: "aptitude install bzr graphviz-" will, however, install bzr without graphviz (and hence x11).05:35
ToyKeeperish05:38
ToyKeeperIt pulls in graphviz plus all deps, then removes graphviz from the list.  So, 79 new packages instead of 80.  :)05:38
lifelessToyKeeper: thats a definite bug05:39
lifelessToyKeeper: (on aptitude)05:39
ToyKeeperOh, sorry.  That's what apt-get does.  aptitude works correctly.05:40
RAOFAptitude has had recommends-by-default for longer ;)05:40
pooliespiv, are you away on friday the 13th? :)05:44
spivpoolie: <insert ominous music here>05:45
ToyKeeperI don't suppose there's a way to do an anonymous "bzr branch lp:foo", is there?  :)05:49
lifelessToyKeeper: exactly that will do it05:49
ToyKeeperOh, hmm.  I tried it and got a warning about logging in, then a traceback.05:50
lifelessthe whinging is quite annoying05:51
* ToyKeeper -> away05:52
pooliethere probably should be a way to turn it off...06:01
pooliespiv: is that a yes? please don't make me go back into canonicaladmin :)06:01
ToyKeeperFWIW, it was caused by a broken python2.5 package; difflib was not importable.06:03
poolieoh ok06:03
poolieso just local to your machine?06:03
TFKylemm, it'd be nice if launchpad people could register lp.net and have it like sourceforge has sf.net06:07
poolietrue06:08
fullermdIf only they'd thought of it 11 years ago...   :p06:09
spivpoolie: yes :)06:11
lifelesswhat the frell is it with concrete drills and epping06:32
lifeless!!!!!!!!06:33
beunomwhudson, I'm off to bed. I've got most of the basics down for the diff-on-request branch, but I wasted a ton of time trying to figure out some of loggerhead (and bzr) inner workings. Hope to be able to upload the branch tomorrow (which will probably be your saturday, so I won't expect feedback)06:35
mwhudsonbeuno: time spent learning about innards is hardly wasted06:36
mwhudsonbeuno: i am on holiday my monday, btw06:36
mwhudsonthough i guess that's your sunday06:36
beunomwhudson, yes, but it frustrates me when 7 hours go by, and I don't have much code to show for it  :/06:37
mwhudsonfeel free to send me email about anything you like :)06:37
beunoah, well, that will give me more time to polish06:37
bimberilifeless: Is the railway line (to Chatswood iirc) finished?06:37
beunomwhudson, very cool, thanks. Enjoy your weekend+holiday@06:37
poolielifeless: your test doesn't actually fail in trunk afaics06:38
poolieis it meant to?06:38
lifelesspoolie: the bundle I mailed? contains its own fix06:39
lifelessbimberi: its not the source of the noise, buut no06:39
pooliei applied just the test into a branch from trunk and it does not fail06:39
lifelesspoolie: *blink* let me check06:39
lifelesspoolie: bah I must have fucked it while shrinking it06:40
pooliei was trying to write something based on it that would check get_lines and wondered what i was doing wrong :)06:41
lifelesschecking why now06:43
lifelesshere is why:06:44
lifeless(Pdb) merge_content.text()06:44
lifeless['prelude \n', 'line']06:44
lifeless(Pdb) content.text()06:44
lifeless['line\n']06:44
lifeless(Pdb)06:44
lifelessso I was wrong - you have to pass in left_matching_blocks to add_lines() to trigger the bug via the top level api06:45
lifelessand the only thing that does that is bundles06:45
pooliehm06:45
pooliethis sounds like a kinda different bug then06:45
lifelessmwhudson: btw, is all the code import spam needed?06:45
lifelesspoolie: the one I pastebinned earlier definitely failed06:46
lifelessI will reinstate that test06:46
mwhudsonlifeless: unclear, i guess06:47
mwhudsonit's probably not necessary for _you_ to get it :)06:48
lifelessmwhudson: well, if you think about queue management, if the queue is centralised and gui managed, telling all the operators of the queue on any change is, well, overkill06:49
lifeless'queue died' is interesting06:49
mwhudsonlifeless: it should be a feed i guess06:49
lifelessuhm, I guess I mean 'what happend to reporting exceptions' :)06:49
mwhudsonlifeless: thumper did all the email stuff, blame him06:50
mwhudson:-p06:50
lifelessthumper: this is me blaming you06:50
lifelesspoolie: ok, have a verified test now06:58
lifelessand mailed07:01
lifelesshmm, it probably wants a couple of lines trimmed, but thats minor07:02
lifeless(cause I just realised I don't use the sha1)07:02
* spiv ducks out to the shops07:29
poolielifeless: http://pastebin.ubuntu.com/15732/07:33
lukswhich I worked on in the pre-coding time into Picard itself.07:36
lukser, sorry :)07:37
lifelesspoolie: http://pastebin.com/d47e68554 enjoy08:11
thumperlifeless: feel free to filter it :)08:25
lifelessthumper: I will but it makes seeing the wheat harder08:48
lifelessnight all08:48
slangaseksupposing that I have a pair of CVS repositories (one for upstream, one for Debian packaging) and I'd like to migrate them to bzr.  Are there any tricks available that might let me do a one-time import and merge?09:02
poolieslangasek: would suggest importing them separately then merging i guess09:03
slangasekpoolie: if my Debian CVS repo happens to be a full-source repo rather than a debian-only repo, am I SOL on that count? :)09:04
poolieare there any connections, like common tags between them?09:06
poolieor are they just totally unrelated (but similar) histories?09:06
slangasekI could reconcile the tags between them if that would help09:07
slangasekpoolie: so would that help? :)09:15
pooliesorry, i don't have any good suggestions for how to merge them09:18
slangasekso you were just teasing me? :)09:23
slangasekwell, I think I could probably get away with just ignoring the upstream repo altogether, if worst comes to worst09:24
slangaseksince upstream is dead :P09:24
enquestmy project wont update due some errors... I got two files with "RM or RN"  What do these mean?09:31
Pilkyenquest: I'd guess remove and rename09:31
spivenquest: see "bzr help status-flags"09:32
=== thekorn__ is now known as thekorn
enquestI already did that "RN  www/media/admin/js/tiny_mce => www/media/admin/js/tiny_mce.OTHER@"09:34
enquestno tiny_mce.OTHER@ is there nor tiny_mce09:34
enquestas I removed them09:34
poolienight all09:35
enquestnow I get Path conflict: www/media/admin/js/tiny_mce.OTHER / www/media/admin/js/tiny_mce.OTHER09:36
igcnight all - have a good weekend09:37
dragffyhi all11:05
dragffytrying to push a branch on to launchpad but it keeps failing with an error, can anyone help please?11:06
dragffy$ bzr push lp:~dragffy/grope/dev11:06
dragffybzr: ERROR: Target directory lp:~dragffy/grope/dev already exists, but does not have a valid .bzr directory. Supply --use-existing-dir to push there anyway.11:06
thumperwhere are the archives of the bzr mailing list?11:07
spivdragffy: have you tried "bzr push --use-existing-dir lp:~dragffy/grope/dev"?11:07
thumpernm, found it11:09
dragffyhi spiv  i tried that, but when I looked in launchpad it still said that the branch hadn't been pushed to11:21
dragffyi'm creating a new hosted branch11:21
thumperdragffy: had you interrupted it before?11:24
thumperI've forgotten how to run the bzr tests :(11:24
LarstiQthumper: ./bzr selftest pattern?11:25
thumperLarstiQ: thanks11:25
thumperdragffy: have you done a "bzr lp-login" ?11:27
jimcooncatI'm having a hell of a time trying to figure this out. Is there a really easy way to get started? A mature plugin for nautilus or gedit?11:28
dragffythumper: i didn't interrupt it11:28
dragffythumper i didn't do bzr lp -login11:29
dragffythumper: but i did do:  bzr launchpad-login11:29
dragffyis that ok?11:29
thumperdragffy: yeah11:29
dragffyi just did that the one time11:29
dragffyso it seems it found me on launchpade and found my ssh key11:29
thumperhmm..11:30
thumperthat is very strange11:30
dragffynot really, i'm always unlucky!11:30
thumperdragffy: how about calling bzr with -Dhpss and looking in your .bzr.log file11:30
dragffyi've tried deleting the branch several times to begin again11:30
dragffythumper: i'll try11:30
dragffyseems like it worked this time11:33
dragffyperhaps bzr liked it if i waited11:34
dragffyi mean launchpad11:35
jimcooncatI have bzr-gtk installed, but no apparent nautilus integration. How to?11:35
dragffyolive11:35
thumperjimcooncat: sorry, I use KDE11:35
lerouxWas wondering if anyone can help me - I develop on my local box that doesn't have a live ip, then I use bzr rspush to push my changes to a dev server on the net somewhere. Now I made some minor changes there, committed them and merged it in to my local repository using bzr merge. But now if I try and use bzr rspush from my local box it tells me that the local branch is not a newer version of the remote branch. How can I get back to the point wh11:36
dragffythumper: kde4?11:36
jimcooncatdragffy: I have olive up, but there's no help. website provides no guidance I can find11:36
thumperdragffy: sometimes11:36
dragffymm yeah it's pretty new11:36
thumperrspush?11:36
dragffyjimcooncat: i don't know of anyway to integrate it with nautilus11:37
dragffyjimcooncat: but the command line is fairly simple11:37
thumperleroux: does your other machine have bzr on it?11:38
lerouxthumper: yes. I used it to commit my changes ;)11:38
thumperleroux: did you commit the merge?11:38
lerouxthumper: yes..11:38
lerouxthumper: I've also committed afterwards locally11:39
lerouxthumper: see.. I want to get the changes I've made after successfully merging back onto the other machine, but can't push there now because bazaar says this version isn't newer11:40
thumperleroux: I'm not familiar with rspush, is there a particular reason you are using it rather than push?11:40
james_wjimcooncat: the nautilus integration is separate from bzr-gtk. The last I looked the nautilus stuff had bitrotted though.11:41
lerouxthumper: yes - it is much much faster and it automatically creates/updates/whatever the working copy on the remote box11:41
jimcooncatjames_w thanks. I have an idea for a project but no files yet, and I want to use version control. Should I write my first file first, then bzr-add?11:42
thumperleroux: sorry not sure, perhaps james_w may know11:42
lerouxthumper: it is from bzrtools11:42
lerouxthumper: ok, thanks11:42
james_wjimcooncat: yup, you can start with "bzr init foo" to create a branch "foo" to work in, then when you are ready to commit some work "bzr add && bzr commit"11:43
james_wleroux: did you "bzr commit" locally after the "bzr merge"?11:44
lerouxjames_w: yes. and then I made some minor changes and then I committed again11:44
james_wleroux: also "bzr missing" will tell you what revisions are different on each side.11:44
dragffythumper: thanks for your help11:45
james_wleroux: "bzr missing --theirs-only" needs to be empty to push.11:45
lerouxjames_w: it says theirs is empty, mine has 4 new commits (a change I made here before merging, the merge and two minor test commits I made afterwards in an effort to get bzr to realise that yes - this is the newer one.11:47
james_wleroux: strange, does "bzr push" work, or does it refuse in the same way as rspush?11:48
lerouxjames_w: I'll check now..11:48
lerouxjames_w: btw, could it be a time and timezone thign?11:48
james_wdon't think so.11:48
james_wit doesn't use timestamps to figure out what's newer11:48
PieterHow should I send in fixes to the bzr-fastimport thing? bugtracker, register a branch, send patches somewhere?11:49
james_wPieter: whatever is easiest for you, you can email bazaar@lists.canonical.com with [fastimport:MERGE] in the subject, or do it through launchpad.11:50
lerouxjames_w: odd. bzr push worked. must be a bug in rspush11:52
lerouxjames_w: how do I update the working tree manually again?11:52
james_wleroux: ssh to the machine and run "bzr update" in the branch11:52
jimcooncatok, so I've got two versions of my simple hello.sh committed, "bzr log" looks good, but "bzr diff hello.sh" shows no output.11:53
lerouxjames_w: thanks. that sorted it. hopefully after this rspush won't be confused any more.11:53
james_wjimcooncat: "bzr diff" will show you differences between what you just committed and what is currently in the file, which is nothing if you haven't changed it since committing11:53
james_wif you want to see the changes between the first and second version use "bzr diff -r 1..2"11:54
jimcooncatjames_w thanks. I might figure this out yet.11:54
jimcooncatok, now stuff is showing up in olive. thanks for the help11:56
james_wno problem11:57
jimcooncatone more please, to rename my file, do I just mv it, or do I have to use a bzr command?11:58
PieterHow do I edit the log message of an earlier commit?11:58
KinnisonIMO you don't11:59
Kinnisonbut there may be a way11:59
james_wjimcooncat: "bzr mv"12:00
james_wit will move the file as well12:00
jimcooncatgood. olive rename feature doesn't seem to work12:00
james_wif you have already moved it then doing the "bzr mv" should work it out anyway (there is an --after flag if it doesn't)12:00
james_wPieter: that's not possible.12:01
james_wPieter: if it was the last revision and you haven't pushed it yet then uncommitting and committing again will allow you to do it, but if you the revision is already public it is a bad idea.12:02
=== yacc__ is now known as yacc
emgentsomeone remember how to set profile on bzr?12:24
luks'profile'?12:25
emgentluks: yeah, "name surname email"12:25
luksbzr whoami12:25
emgentcool true.12:25
emgentthanks12:25
Pieterjames_w: yes, I know, I just want to clear up the logs before pushing them12:35
PieterCan I then export some revisions as plaintext and apply them one at a time?12:53
vadi2Is it possible to get olive on windows?14:05
jelmervadi2, yes, see the wiki page for bzr-gtk14:06
jelmerthere's a installer linked from there14:06
vadi2Found it, thank you14:07
vadi2Odd question, but I don't suppose you know how to install a decent gtk theme on windows?14:08
jelmerno, sorry14:15
PieterJust did my first launchpad merge proposal \o/14:43
james_wPieter: cool, thanks. How is the revision you refer to broken?14:51
Pieterjames_w: it crashes with bzr: ERROR: not well-formed (invalid token): line 16, column 5614:52
Pieterthere's a more verbose message if you try to get the revision tree14:53
pickscrapeIs the launchpad merge stuff really bundle buggy in disguise?14:55
james_wpickscrape: not really14:56
james_wthough the do fulfil a similar need14:56
Pieterjames_w: http://bzr.pastebin.com/mea883cc15:00
nedosahi, have a question about bzr-svn15:02
jelmernedosa, hi15:03
nedosaare merge-commit logs supposed to appear in the svn repo15:03
james_wPieter: I've not seen that error before, it may be a bug in the converter that was used to create the branch I guess.15:03
nedosajelmer, hi15:03
jelmernedosa: no, they're not supposed to appear unless you're viewing the repo with bzr itself15:04
nedosaaaah, excellent15:04
jelmernedosa: svn can't represent merge commits15:04
nedosajelmer, so, bzr log svn://... should give me merge-commit logs15:06
jelmeryes, but "svn log svn://" won't15:06
nedosajelmer, trying to atm, but can't see merge logs, is that maybe an svn 1.5 feature ?15:08
jelmernedosa: What are you trying specifically?15:10
nedosajelmer: so, i've used bzr svn-import to set up a bzr repo, then created a trunk branch off that15:11
nedosajelmer:, did a dummy commit, merged the two, then pushed the merge into the svn repo15:11
nedosanow, both bzr and svn repo are in revno 60715:12
nedosabut only the bzr repo display the merge-commit log message15:12
jelmernedosa: The svn repo doesn't contain the merged revision itself, only a pointer to it15:13
jelmertry viewing the svn branch in "bzr viz"15:13
nedosawhether i use svn or bzr for the svn repo I only get 1 commit message for that revision15:13
nedosajelmer: trying...15:13
nedosa bzr vis --limit=1  svn+ssh:// ... crashes... :(15:15
jelmerdoes it work ok on the bzr repo?15:16
nedosajelmer: yeah, viz works great on the bzr repo15:18
jelmernedosa, please file a bug15:19
jamjelmer: doing 'log' on the svn repo won't try to access the local bzr repo15:19
jamso all it has is a dangling pointer15:19
jamI wonder if "viz" is confused by the ghost reference15:19
jelmerjam: Yeah, I know - I was just expecting bzr log to indicate ghosts15:19
jelmerjam: viz does show ghosts15:19
nedosajelmer: will do15:19
jamjelmer: I believe it gives a parent reference, but doesn't show a node for it15:19
jamso if you have --show-ids, you'll see the parent referenced15:20
jambut otherwise it hides ghosts, IIRC15:20
jelmerjam: ah, ok15:21
nedosak, for reference, i sue bzr 1.5 in hardy, with bzr-svn 0.4.1015:22
nedosawill file a bug15:22
jelmerthanks :-)15:24
nedosajelmer: this behaviour is pretty important to us, so is this something that should be supported and is a bug, or something difficult to implement by bzr-svn ?15:26
jelmernedosa: what specific behaviour are you looking for?15:27
jelmernedosa: bzr-svn does do merge tracking15:27
jelmernedosa, but it won't push right hand side revisions into svn, just pointers to those revisions15:28
nedosajelmer: yeah, i meant merge tracking15:28
nedosajelmer: as long as a log appears, it should be sufficient15:29
jelmernedosa: to see the log for those right hand side revisions you need to fetch them from some bzr branch first15:30
jelmersince they're not pushed into svn - only a pointer to them15:31
jelmere.g. you can do "bzr branch svn://repo-you-pushed-to-earlier/" on some other machine15:34
jelmerand then "bzr pull url-to-your-bzr-repo" and it will fill in those right hand side revisions15:35
nedosajelmer: if I try and pull, it says there are no revisions16:12
nedosawhich is to be expected, since both svn and bzr repos are in sync16:12
vadi2Does anyone know why would a "Authentication type (password) not permitted." be given on windows? From this log: http://pastebin.com/m1224f4de16:14
fullermdWell, pretty much what it says...16:15
fullermdbazaar.launchpad.net Bad authentication type (allowed_types=['publickey'])16:15
fullermdLP only allows publickey auth.16:15
vadi2?16:15
vadi2The ssh key was generated from the putty thing as the instructions say16:15
fullermdIs it uploaded to launchpad?16:15
vadi2Yes, it's set in his profile (https://launchpad.net/~dazedxjoker)16:16
jamvadi2: I think you have to manually add the ssh-key to pageant16:17
jamand then everything should work16:17
vadi2What's that, and how?16:17
jamThere should be an icon in your sys tray, right click, add key, find the key you generated16:17
jamand type in the password (if you gave it one)16:17
jamYou may need to "Start/Putty/Pageant" if it isn't already running16:18
jam(I have it set to start on windows startup on my machine)16:18
vadi2Ok, we got it. Thank you very much16:19
jamdid that work?16:19
vadi2yep16:19
matkorHi ! If I want revert given commit I do: bzr merge -r <rev>..<rev_pre> ./16:26
matkorWhat if I want revert only chnages made in one file ?16:26
Pilkymatkor: bzr revert <file> -r <rev>16:34
james_wmatkor: does it work to pass the filename to the merge command?16:34
james_wotherwise you could do the merge and then "bzr revert" all the other files, but I realise that is not the easiest thing to do.16:35
matkorjames_w: No bzr merge refuses to get filenames as parameteres ...16:37
matkorPilky: I will have file at version <rev> ... bu I want only exclude changes made _between_  <pre_rev> and <rev> ...16:38
Pilkyand your current version is greater than <rev> I assume16:39
matkorjames_w: Not bad idea when changes are in few files ... I was thinking about bzr diff -r b..a -p1 | patch -p116:39
james_wthat would work16:40
james_wit's pretty much what bzr is effectively doing.16:40
matkorPilky: correct .. I am tring to remove sb mistake ...16:40
matkorOK. bzr diff | patch seems to work for me- only you have to be in topmost directory in working tree :) Thanks a lot for your help16:43
datomatkor: | patch -d `bzr root` ;)16:44
matkordato: ha ! I will test it next time :) Thanks to tou , too :)16:44
matkorc'ya l&gs16:56
=== kiko is now known as kiko-fud
jelmerNephyrin, Ah, I think you need "bzr fetch" these days18:03
jelmernedosa, Ah, I think you need "bzr fetch" these days18:03
lamontfrom the "not sure which manpage to look at" department: if I want a command to run every commit, how do I do that?19:19
beunolamont, post-commit-hook?19:27
lamontsounds right.19:27
lamontand that's documented where?19:27
* beuno looks19:27
beunolamont, http://doc.bazaar-vcs.org/latest/en/user-reference/bzr_man.html#hooks19:28
lamonttjamls19:29
lamontthanks, even19:29
beunowelcome  :)19:29
lamontand if I want to set the hook for the branch, rather than the user, is there a plugins directory in the branch? or just back in ~/.bazaar/plugins?19:32
beunoI don't think you can set a hook for a specific branch. I may be wrong though, I haven't played with them very much.19:34
beuno(no plugins per branch, that's for sure)19:34
datowell19:34
datobzr-cia is per-branch19:34
datobut I guess19:34
datoit runs for every branch, and only acts if it's configured19:34
beunoright, it's a plugin-config rather then a bzr one19:35
beunoyou may be able to write a plugin that runs hooks on the specified branches  :p19:37
=== kiko-fud is now known as kiko
fdvHi. I was trying to 'co' a repository from an svn repo using 'bzr co svnrepo bzrrepo', when, after a long time, bzr failed with 'bzr: ERROR: exceptions.KeyError' on a plain filename with only [a-zA-Z./]. Does anybody know why this happens (and if there is a way to work around it)?20:20
beunofdv, can you pastebin the full traceback?20:20
fdvbeuno: most of it, I guess :)20:21
fdvhttp://rafb.net/p/MZ74fW96.html20:22
beunolooks like a bzr-svn error20:23
beunojelmer, around?20:23
=== mw is now known as mw|food
Jc2kfdv: what version of bzr-svn are you using, also what version of bzr20:25
Jc2kdoes it happen if you bzr branch svnrepo bzrrepo?20:26
Jc2kalso, is there a public copy of this repo so we can recreate it?20:26
jelmerYeah, I suspect this is a bug that was fixed in 0.4.1020:26
fdvbzr-svn is 0.4.9-1, and bzr is 1.3.1-120:26
fdvah20:26
fdvJc2k: unfortunately, this is a closed repo20:27
fdvit's rather big, if that matters20:27
fdv1.5G20:27
fdvtook me about 1-1.5 hours to get to this point20:27
Jc2kfdv: i converted a 2gb repo the other day ;D20:27
fdvnice20:27
fdvgood to know it works20:27
Jc2khttp://bzr-mirror.gnome.org20:28
fdvwhat's the difference between co and branch in this case?20:28
Jc2kit was a guess, but jelmer is the expert20:28
jelmerJc2k: Nice, I wasn't aware of that :-)20:28
jelmerJc2k: (bzr-mirror.gnome.org)20:28
Jc2kjelmer: my pet project :) its switched off right now, but i have a bot the issues a bzr pull in response to the svn-commits mailing list :)20:29
Jc2kjelmer: (thats why i was interested in a speedy svn-import command :))20:29
fdvbeuno, Jc2k, jelmer: thanks for your help, I'll try with a newer bzr-svn20:30
jelmerJc2k: (-:20:31
Jc2kjelmer: speaking of which i have a log...20:32
jelmerJc2k: What sort of log?20:34
fullermdIt's big, it's heavy, it's wood.20:34
Jc2kjelmer: we were talking about bzr svn-import taking a long time to "top up" and existing clone of an svn repo20:34
Jc2kjelmer: you asked for -Dtransport20:34
jelmerJc2k, ah, right20:35
jelmerJc2k, can you mail it to me? I'm heading out in a few minutes20:35
Jc2ksure20:35
beunofullermd, Canonical should hire you just to stick around and comment, this is (odd, I know) the channel that makes me laugh the most20:37
fullermdIf you actually find my randomness funny, that should seriously worry you about your mental state   ;)20:39
fdvjelmer: I still get the keyerror using 4.10 :p20:40
fdvdo I need to delete the cache or something?20:40
Jc2kfdv: try bumping your bzr version as well20:41
fdvJc2k: I did, had to :)20:41
fdvbzr-svn required >= 1.420:41
fdvI'm running 1.5 now20:41
Jc2kah, nm then ;D20:41
fdv:)20:42
beunofullermd, well, I'd rather not go into details and enjoy it  :p20:42
nekohayohey there, I have some silly questions for you folks :)20:43
nekohayo1) is merging at the same time as other changes a bad idea?20:44
nekohayo2) what about merging and changing some of the lines that came from the merge?20:44
nekohayowill these kind of actions break/corrupt history, or create a spatiotemporal void that will suck in anything in a radius of 30 km?20:45
pickscrapeMake sure you don't commit any anticode.20:45
statiknekohayo, changing lines after the merge and before committing is fine. it's a great time to run tests and fix any code that did not merge correctly20:47
statiknekohayo, i think it's better to commit or shelve any local changes that you have before merging in new stuff though20:47
nekohayostatik: what do you mean by shelve?20:51
statiknekohayo, the bzrtools plugin has a shelve command which allows you to set aside uncommitted changes20:52
nekohayostatik: and won't changing lines right after merging (but before committing the merge) corrupt the thing, spurring conflicts all the time when you merge in other directions?20:52
beunonekohayo, not at all, I do that all the time. In fact, it's a requisite to solve conflicts20:53
fullermdNow that said, I generally restrict myself to doing the minimum necessary to clean up conflicts right after merges.  Most of the times I've done more, I've wished later I did them in another rev.20:54
beunoright, that's a better practice20:57
beunobut doing so won't raise hell, if that's what you where aiming at20:57
=== mw|food is now known as mw
fdvhm. now it seems the co from svn comes further (with bzr 1.5 and bzr-svn 0.4.10), but there seems to be a bug somewhere as memory is just consumed, very quickly, until it's depleted the box' resources21:03
fdvI'd think 2G memory and 3G swap should be enough :p21:05
Jc2kfdv: there is a leak in the subversion python bindings21:05
Jc2kfdv: what distro you running?21:05
Jc2k(i have a deb for etch i could throw you)21:05
fdvJc2k: hardy heron21:06
Jc2kreally, wow...21:07
fdv?21:07
fdvhow's that wow? :)21:07
Jc2kfdv: hardy has the fix.. that might even have been were i robbed the diff from when making my custom etch deb21:07
fdvI guess it's the most mainstream distro around these days ;)21:07
Jc2kfdv: so the wow was oh god, whats leaking now ;D21:07
fdvaw21:08
fdvhm..21:08
jelmerI haven't backported all memory leak fixes from svn 1.5 into the hardy package21:10
fdvI guess running this under valgrind would bring my box to a grinding halt...21:12
Jc2k:) you really need to try subversion 1.5 if you want this right now..21:12
fdv:p21:12
Jc2ki wonder if it will play nice under jhbuild..21:12
fdvis it unproblematic to run a 1.5 client against a 1.4 repo?21:13
fdvguess so21:13
Jc2kactually no, its build to allow that21:14
Jc2k*built21:14
fdvI hust remember having some issues in an early version with a local copy worked with with a newer version, after which the previous wouldn't work21:15
fdvbut that's of course locally21:16
* Jc2k tries to find a subversion 1.5 download to set up a jhbuild cage21:18
=== brilliantnut is now known as brilliantout
fdvI still get the keyerror exception.. :p22:14
fdveven after removing svn-cache22:14
fdvjelmer: any ideas?22:15

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