/srv/irclogs.ubuntu.com/2012/09/14/#bzr.txt

Noldorinanyone here use bzr on Mac OS X??00:11
SamB_MacG5yeah00:16
bob2as always, better to just ask your question!00:16
* SamB_MacG5 is actually working on an updated OS X 10.5 installer for Bazaar 2.300:17
SamB_MacG5well, *these* plugin versions are clearly too new ...00:19
bjpcan i use bzr update or bzr pull in a way that discards any local workingtree changes?00:26
bjpinstead of creating conflicts00:27
LeoNerdrevert first00:27
LeoNerdOr afterwards00:27
bjpi thought thats what pull --overwrite did,00:27
bjpcan't do it in one command?00:27
lifelesspull --overwrite discards conflicting history00:28
bjpoh00:28
lifelessthere isn't a reset --hard, you need two commands - sorry.00:28
bjpi wish there was a way to batch commands or something, the majority of the time for my script is ssh login/auth for bzr commands :(00:29
LeoNerdUse an ssh key00:29
LeoNerdOr maintain a persistent connection using ControlMaster00:30
bjpi am using an ssh key, and ControlMaster doesn't work on windows :(00:30
bjpi've looked into it a few times, could never find a good way to do it00:30
LeoNerdAhhh00:30
bjpi do a revno + update on ~50 projects in a script00:35
lifelessyou can drive it through python00:35
bjpso the connection/auths take a while00:36
bjpthat might be worthwhile00:36
bjpthe script is in python... i'm just using subprocess to launch bzr00:37
bjpbzrlib.workingtree.WorkingTree opens and maintains a connection?00:40
SamB_MacG5huh? Nobody tagged bzr-loom 2.1?00:50
fullermdThat's pretty warped.00:50
mwhudsonfullermd: you're a bad man00:50
fullermdYeah, but I look so good doing it.00:51
SamB_MacG5http://bazaar.launchpad.net/~bzr-loom-devs/bzr-loom/trunk/revision/109 appears to be the revision that should have been tagged ...00:52
* SamB_MacG5 wonders what the point of having internet drafts expire is01:00
lifelessjam: is https://bugs.launchpad.net/bzr/2.0/+bug/433779 now Fix Released ?03:27
ubot5Error: ubuntu bug 2 not found03:27
jamlifeless: from what I can see, the patch was *not* backported to 2.0.* it only landed in the 2.1 series.04:07
jamso Won'tFix may be more appropriate04:08
lifelessjam: I just want it off of my 'fix committed' related bugs list :)04:12
lifelessjam: call me selfish if you like :)04:12
jamyeah, i'll clear it up04:12
lifelessthanks!04:12
* SamB_MacG5 wonders what version of bzr-svn works with subvertpy 0.8.104:14
dardevelinhi everyone, I need some help regarding bzr+launchpad , i seem to be getting ConnectionReset reading response for 'BzrDir.open_2.1', retrying Permission denied (publickey). And I don't quite understand why since i generated a ssh key and already added to my launchpad account05:08
dardevelinbzr lp-login nickname works fine (i think since no warnings errors or any kind of messages is sent)05:09
dardevelini'm on debian sid system btw05:09
dardevelini do know that the package python-paramiko has a bug on using non-default ssh ports05:10
dardevelinwould this be a reason ?05:10
lifelessbzr+ssh runs on port 22, the default05:13
lifelessso it shouldn't be05:13
lifelessis there anything useful in ~/.bzr.log05:13
dardevelinlifeless, humm let me check05:13
* dardevelin now remembers that he might have been stupid and used .bzr.log from another install05:13
dardevelinlifeless, it does have quite a lot of stuff in here, seems like python errors05:14
lifelesswell, you could empty the file, try again, and anything thats in there would be relevant05:14
dardevelinok let me try login again05:15
lifelessdo you have your ssh agent running, with the key added ?05:15
lifelessthe possible causes are:05:15
dardevelinssh agent ? what do you mean05:15
dardevelinthe reason i ask is because i'm able to use git ::/05:16
dardevelini do get a warning though when using i3-wm that i don't get when using gnome wm... never really associated since all worked fine05:17
dardevelinsorry i'm newb with vc systesm :/05:19
dardevelinlifeless, i do have ssh-agent running at least that's what htop tells me05:20
lifelessok05:20
lifelessso the possible causes for the error you get are:05:20
lifeless - wrong userid05:20
lifeless - key not available to the ssh-agent05:20
lifeless - wrong host05:20
dardevelinhost like machine name  that matches the public key ?05:21
dardevelinif that's the case i'm pretty sure is correct, i just generate it05:21
SamB_MacG5that doesn't actually do anything05:21
SamB_MacG5you can put whatever you want there05:21
dardevelinbut it does match05:22
dardevelindardevelin@ycradnileved05:22
dardevelinuser id is darcy-develin (it's exactly what i used on my other install )05:22
dardevelinso i'm left with ssh-agent not knowing the key05:23
dardevelini do have the ssh key with a different name specific for bzr05:23
* dardevelin goes look on how he can see what ssh-agent knows and how to make it know 05:25
lifelessssh-add path-to-key-secret-file might wrok05:26
dardevelini did it, let me try05:27
dardevelin:O working now05:27
dardevelinsweet05:27
dardevelinlifeless, Thank you so much...05:27
* dardevelin feels happy to finally be able to fix some bugs on his debian machine 05:28
=== r0bby is now known as robbyoconnor
=== mmrazik is now known as mmrazik|afk
jammgz: since you seem to be in the bzr-code-review mindset... https://code.launchpad.net/~jameinel/bzr/2.1-all-reconnect-819604/+merge/123901 :)06:57
mgzer, morning all!07:27
jammgz :)07:27
mgzhow are you jam sir?07:28
jammgz: just trying to clean and finish up my reconnect patch07:28
jammgz: a slightly cleaner version of the patch for bzr-2.2 is at: https://code.launchpad.net/~jameinel/bzr/2.2-all-reconnect-819604/+merge/12434607:34
jammgz: how was your day?07:34
=== mmrazik|afk is now known as mmrazik
mgzjam: yeah, the 2.1 version seemed rather scary...07:38
jamwell, 2.2 may not be that much better overall :)07:39
jamhowever, if you just do a 'vim -d MY_PATCH/file.py 2.5/file.py' things may be less scary.07:39
jamAs it is mostly the same code.07:39
jamjust missing some features/bug fixes from the years inbetween07:39
=== gmarkall_ is now known as gmarkall
jammgz: i'm happy to work through it with you over mumble or something, as it would be nice to get it landed, because the 'merge up' is a bit of work that I don't want to drag out for a long time.08:08
jammgz, also standup in 20min or so08:08
mgzjam, that sounds good (to both)08:09
jammgz: I'm there08:10
mgzI am coffee'd08:17
jelmercoffeefication ftw08:19
=== Ng_ is now known as Ng
mgzjelmer: reviewed your ping branch before I got the bus this morning08:19
jelmermgz: \o/08:23
mgzover warningness: <http://pastebin.ubuntu.com/1204324/>08:35
=== lool- is now known as lool
=== FourDoll1rs is now known as FourDollars
=== mmrazik is now known as mmrazik|afk
=== mmrazik|afk is now known as mmrazik|lunch
=== mmrazik|lunch is now known as mmrazik
=== james_w` is now known as james_w
* SamB_MacG5 hopes this next installer build gives him a working bzr-svn; he's getting tired of putting BZR_DISABLED_PLUGINS=svn before every other command18:01
* SamB_MacG5 also wishes again that distutils had a standard "test" command, even if it were just a stub by default ...18:03
jelmerSamB_MacG5: why does it not work?18:03
SamB_MacG5jelmer: well, it says subvertpy 0.8.1 is too old, but then goes and sticks its hooks into things anyway for some reason...18:04
SamB_MacG5which works out badly18:04
jelmerSamB_MacG5: it won't magically fix itself18:05
jelmerSamB_MacG5: you can update the version of subvertpy?18:05
SamB_MacG5no, I'm downgrading bzr-svn18:05
SamB_MacG5stupid SVN 1.4 and all ...18:06
jelmerah, that's why you filed that bug18:08
delinquentmeOk soo in git I can choose to " git push origin master "    IE  git push <repo> <branch>18:37
delinquentmein bzr I've got a local ... "trunk" ?18:37
delinquentmeand I've got an origin trunk / repo ... as well as a development server18:37
delinquentmewhere origin would be the name of a repo in git18:38
delinquentmeis a "trunk" the same as a repo?18:38
delinquentmeor is a bzr trunk more like a branch in git?18:38
LeoNerdgit allows you to store multiple branches in one filesystem location18:41
LeoNerdbzr does not18:41
LeoNerdSo the "branch" is always implicit as there's only one18:41
LeoNerdbzr push $REMOTE_URL   just pushes /the/ local branch to /the/ remote branch18:42
LeoNerdUsually for branches I put  .SOMENAME  on the end of the URL18:42
LeoNerd$ bzr branch my-project my-project.HACKERY; cd my-project.HACKERY; bzr push bzr+ssh://my.server/var/bzr/leo/my-project.HACKERY18:43
delinquentmeLeoNerd, Ok so different branches reside in different folders?18:46
LeoNerdYah18:46
delinquentmeOk so heres a test case for you18:48
delinquentmewait!  actually what is a repo in bzr?18:49
delinquentmeis it a trunk?18:49
LeoNerdA repo is a shared storage location for lots of branches18:49
LeoNerdbzr doesn't have a notion of a "trunk".. there are just branches.18:49
LeoNerdSometimes, branches may share a common history18:49
delinquentmeHmmmm18:49
delinquentmeok so in bzr its called a repo as well18:50
delinquentmecheck!18:50
LeoNerdIf you call one of them a trunk, that's purely an end-user concept; one branch that you just consider as the canonical source18:50
delinquentmeok so I've got the remote primary repo18:50
LeoNerdA repo allows multiple branches that do share history, to share on-disk storage, basically.18:50
delinquentmeok I think i follow.18:50
delinquentmebut on the term "trunk" while its just an end user concept18:50
LeoNerdA repo is a storage of revisions; a branch gives a name to some particular revision; the branch stores its history of revisions in its repo18:51
delinquentmeit is *semantically* tied into bazaar right?18:51
LeoNerdNot really18:51
delinquentmeso then I could call a trunk ... a suitcase18:51
delinquentmeand it would be just as bazaar related?18:51
LeoNerdIf you have two branches that have, say, 10 common revisions, then each diverge for the final 2 each, bzr doesn't know or care which if either you consider a "trunk"18:51
delinquentmeIDK the devs who I'm working with say trunk alot18:51
LeoNerdE.g. I keep my .vimrc in a bzr branch across all my machines; none of these could be considered any more a "trunk".. they're all just peers that I merge between18:52
delinquentmelike is "trunk" a term they came up with or is it something that other bzr users use as well?18:52
LeoNerdIt's standard VCS terminology18:53
LeoNerdIt goes back many decades, mostly to the non-DVCSes like CVS and SVN18:53
LeoNerdThe non-branch in a CVS directory is usually called the trunk; a SVN project usually has  /trunk  /branches  /tags18:54
delinquentmeok cool18:54
delinquentmenext question18:54
delinquentmeI pull from a primary repository to my local machine18:54
delinquentmeso local machine is a direct copy of what is up on the repo18:55
delinquentmenow.. someone else copied the same code onto a development server... and I'm about to push my local code ... up to THAT dev server18:55
delinquentmethis will create something akin to a " fast forward " right?18:55
LeoNerd"fast forward" IIRC is what git calls a strictly non-divergent update, where one side is an ancestor of the other18:56
LeoNerdThis is what bzr pull or push wants to do18:56
delinquentmecorrect it is a non-divergent18:57
delinquentme... i guess it would also be non-convergent18:58
delinquentmeboth code sets have the exact same history .. ending on the same commit18:58
delinquentmeand 1 branch has more18:58
delinquentmethe branch with fewer commits ... get a fast forward on merge18:59
LeoNerdYah, that's a push or pull operation18:59
LeoNerdA "merge" in bzr specifically joins back together two divergent histories, where neither is a strict ancestor of the other18:59
delinquentmeLeoNerd, Is there a way to do something like a --dry-run?18:59
delinquentmewhere it tells you what it would do in a push operation ... without actually doing it?18:59
LeoNerdProbably -n ?19:00
LeoNerdHrm.. well,  bzr missing  will explain what's missing19:00
LeoNerdAnd ofcourse things like  bzr diff19:01
delinquentmeand -n denotes what option?19:01
delinquentmethis is an option on "bzr push" right?19:02
LeoNerdPure guess, but from the help I'm not sure it has one.. :/19:02
delinquentmehmmm19:02
delinquentmeand what about aliases?19:02
delinquentmelike instead of typing out a whole server IP and local directory path19:02
LeoNerd?19:02
delinquentmecan I declare say "development"19:03
delinquentmebzr push development19:03
LeoNerdAh, pass. Possibly..19:03
delinquentmeto push to sftp://nachocheeze@109.1.2.111:3000/usr/local/19:03
LeoNerdSomeone else might know19:03
fullermdbookmarks plugin19:05
LeoNerdAlso /me => lunch19:07
delinquentmetanks :D19:08
delinquentmeI know its a bad idea ... but can a server be running a trunk19:13
delinquentmeby running I mean displaying the contents of a trunk to the public who happen to be accessing that server?19:14
delinquentmeor is it a bad idea?19:15
smoserjelmer, you around?19:29
smoseryou've helped me with bzr recipes before19:30
smoserhttps://launchpadlibrarian.net/115990138/buildlog.txt.gz19:30
smoserfailed from https://code.launchpad.net/~maas-maintainers/+archive/dailybuilds/+recipebuild/30708419:30
jelmerhi smoser19:30
smoserhey.19:31
jelmersmoser: ah, that looks like a known bug in the bzr builder19:31
smoseri'm good at finding stuff like that.19:31
smoserjelmer, were you just going to hold me in suspense?19:34
smoserhttp://paste.ubuntu.com/1205495/ is all i could come up with19:34
jelmersorry, got distracted by something.. back now19:35
smoserbut i can't reproduce the failure here with bzr builddeb19:35
jelmersmoser: it's bzr builder that's the problem19:35
jelmersmoser: it tries to apply all patches and convert the package to a native package19:36
smoserbut it worked before.19:36
smoserie, not long ago19:36
smoserhttps://code.launchpad.net/~julian-edwards/+recipe/maas-daily19:36
SamB_MacG5jelmer: that sounds kind of evil ...19:36
smoserrecipe not changed.19:36
smoserthe complaining file *did* change19:37
jelmersmoser: you didn't have those patches previously I think?19:37
jelmeror at least not patches that introduced new files?19:37
smoseri didnt hvae that one specifically.19:37
smoseryou're probably correct19:37
smosernone that introduced new files probably.19:37
smoserpreviously in that branch the file actually lived in tests/ (ie, not patched in)19:38
smoserbut i intended to fix the warning/error of --source-option=--abort-on-upstream-changes19:38
smoser(branch above == packaging branch)19:38
* SamB_MacG5 tries the installer19:43
jelmerSamB_MacG5: What's evil about it? Without that behaviour building would fail.19:43
SamB_MacG5jelmer: the "convert to native package" part19:44
jelmerSamB_MacG5: Yes, without that behaviour the build would fail.19:44
SamB_MacG5buy maybe you meant that differently than I read it19:44
jelmerSamB_MacG5: as there is no orig tarball19:44
jelmerSamB_MacG5: note that this is for daily builds19:44
smoserjelmer, you have a suggestion for how to fix this ?19:44
SamB_MacG5sure, sure, it just strikes me as a *little* evil19:44
smoserif i have to at the moment i can just drop the patch (or comment it out)19:45
jelmerSamB_MacG5: If you don't like it, you could always just have a recipe that is native from the start.19:45
jelmersmoser: The easiest way to work around it is to have your recipe build a native package.19:45
jelmersmoser: and/or somehow get rid of debian/patches19:45
smoserhm.19:46
* jelmer looks for the relevant bug19:46
SamB_MacG5man, it really seems like some of the stuff in this installer project ought to be built by the scripts rather than baked in...19:47
smosermaybe for now i'll just not apply that patch.19:47
SamB_MacG5jelmer: I guess I can't help but think that the "right" thing would be to build an orig tarball from the source tree ...19:48
smoserwell, thats what the recipe says to do.19:49
jelmerSamB_MacG5: which source tree? there is only one tree, and that has the debian source19:49
SamB_MacG5isn't there some code somewhere?19:50
jelmerSamB_MacG5: yes, but it's not clear which code is from upstream and which code is from the debian package19:50
smoserjelmer, for stop gap, do you think i can just not apply that patch ?19:51
SamB_MacG5hmm, oh, right19:51
smoser(just comment out in debian/patches/series )19:51
SamB_MacG5native packages can still have patches...19:51
jelmersmoser: yes - the easiest way to do that is to merge in an extra branch that has a change to remove that line19:52
smoseras i need something "right now" to move on something else, and that patch i think can be delayed a bit.  and, then there is the fact that it actually works if i dont have it as a patch, but the file lives in test/ in the packaging branch.19:53
smoserbut that i didn't like becasue of --source-option=--abort-on-upstream-changes19:53
smoseri guess i'll just put it back the way it was as that built on the dailybuild server at least.19:54
SamB_MacG5darn, bzr-svn 1.1.0's test suite doesn't seem to like bzr 2.3 :-(19:54
* SamB_MacG5 wonders why the quick reference card is sideways20:07
=== yofel_ is now known as yofel
SamB_MacG5is there a way to skip asking a plugin for tests, but still load that plugin?22:07
jelmerSamB_MacG5: not really22:08
SamB_MacG5darn22:08
SamB_MacG5so not only can I not run bzr-svn's tests, but I can't have it loaded when I run the other tests :-(22:11
jelmerSamB_MacG5: really, if you have a version of bzr-svn that's incompatible you should just uninstall it.22:42
SamB_MacG5jelmer: this one is supposed to be compatible, though23:38
SamB_MacG5just the tests code doesn't seem to be23:38

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