/srv/irclogs.ubuntu.com/2010/12/10/#bzr.txt

maxbUgh00:23
maxbIt seems that the most annoying part of producing packages for the bzr ppa is just wrestling the debian/changelog into sanity across five distroseries00:24
maxbI really need to come up with a way to automate this00:24
pooliehi maxb00:26
poolieit is annoying00:26
pooliea tool for it would be great00:26
maxbThere are several parts00:27
maxbOne part is the changelog merge hook needs to understand not to sort entries in version number order when ~foo suffixes are involved00:28
maxbAnother part is that when doing PPA builds, often the right way to merge an entry is to s/lucid/karmic/g the header line, rather than listing all versions involved00:28
=== frakturfreak_ is now known as frakturfreak
pooliemwhudson, spiv do you recall how to get pyflakes to work with lazy_import?02:41
mwhudsonpoolie: install it from lp:~mwhudson/pyflakes/support-lazy_import02:41
poolieor comment out the lazy import :)02:42
pooliethanks though02:42
mwhudsonwell that works too, but my version is a bit more automatic :)02:42
poolieis that url right?02:43
poolieand the related question is: is pyflakes still the best static checker?02:44
poolienm, found it: 'support-lazy-imports'02:44
mwhudsonah oops02:46
mwhudsonit's still the best i know of02:46
mwhudsonpylint does more, but requires assloads of configuration to be useful and is slow02:46
* mwhudson attempts to merge trunk into his branch02:47
mwhudsonso...03:01
mwhudsonwhat do people use to handle difficult conflicts?03:01
mwhudson(the problem i have here is that the merge has resulted in the conflicting sections being broken up in unhelpful ways)03:02
poolievimdiff or meld03:02
mwhudsondoes anything know how to parse the conflict markers out of the file and start from there?03:04
spmmwhudson: 'rm <file>'03:06
pooliehow do you mean?03:07
pooliei think emacs has a mode that specially recognizes herringbones03:07
pooliespiv, is https://bugs.launchpad.net/bzr/+bug/603395 now fixed?03:10
ubot5Ubuntu bug 603395 in Bazaar "bzr commit in a heavyweight checkout does not propagate new tags" [High,In progress]03:10
pooliecan you please update it either way?03:10
mwhudsoni guess i'm not sure what i mean03:11
mwhudsonkdiff3 seems quite nice, if a bit obscure03:11
mwhudsonhm yes, pretty good03:19
* mwhudson pushes up his new branch03:19
spmis there an easy way to discover which branch a certain chunk of text was added to a file? I have the text, would just like to track the context/when it was added as it looks... odd.03:25
spmbah. try #2. not which branch, *when* a certain chunk of text.03:25
pooliespm: two ways03:26
poolie'bzr log -p |less'03:26
pooliethen search03:26
poolieor 'bzr grep  -r 1.. PATTERN'03:26
poolieah bug 388437 is the one about ascii in error messages03:27
ubot5Launchpad bug 388437 in Bazaar "notbrancherror doesn't show cyrllic paths correctly" [Medium,Confirmed] https://launchpad.net/bugs/38843703:27
spmkk, ta muchly.03:27
spivspm: or look at that the "bzr annotate" output (preferably with "bzr gannotate" or "bzr qannotate", depending on your GTK vs. Qt preference)03:30
spmworked perfectly, with one rider. search from bottom up. the text was about every 3rd change recently. :-)03:30
spmspiv: ah, k. I'll try that just to see. the problem - this is on prasé, but I suppose I can branch locally. yay for VCS. :-)03:30
spmyay for *D*VCS.03:31
poolieoh, if it's still present that's a more obvious way to do it03:33
pooliewould appreciate your thoughts on https://bugs.launchpad.net/bzr/+bug/388437 too04:34
ubot5Ubuntu bug 388437 in Bazaar "notbrancherror doesn't show non-ascii paths correctly" [Medium,In progress]04:34
spivBefore I look at that bug my thought is "can __str__ return a unicode object?"04:52
spivmgz probably knows the esoteric ins and outs here.04:53
spivpoolie: your comment on 388437 sounds ok to me05:16
spivpoolie: if nothing else, I doubt your suggestions can be worse than the status quo ;)05:17
vilahi all !07:12
spmhey vila07:22
vilaspm: hey there !07:23
vilaspm: regarding your mail about lp/pqm, I only have one GPG key, but possible two emails attached to it differing only by '+lp' (the one I use most of the time) which is also the one I use for bzr, I should be able to use it right ?07:24
vilas/possible//07:24
spmmayeb....07:24
spmpqm is *really* fussy over the order of keys in the key itself. so generally whichever is the default is the one you must use.07:25
vilaspm: right, so if it works for bzr, it should work for lp07:25
spmtry it and we'll find out :-)07:25
vilahehe07:26
=== BasicPRO is now known as BasicOSX
=== zyga-afk is now known as zyga
RenatoSilvaI have a single file from a given upstream version. I patched it and now I want to merge upstream changes. But it's a single file, and they don't even use Bazaar. Is it possible to somehow automate this?12:58
beunoRenatoSilva, they don't use bzr, but you do?12:59
RenatoSilvabeuno: of course, I'm managing the patch with bazaar12:59
* beuno was just checking :)13:00
RenatoSilvaok13:00
jelmerRenatoSilva: they're using a foreign VCS or something like that, or did you import a tarball manually?13:00
* beuno waves at jelmer 13:00
RenatoSilvajelmer: it's just a single file13:00
jelmerhey Martin13:00
jelmerRenatoSilva: you could create a separate branch with their version of the file in it and then use "bzr merge" to pull in new changes13:01
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
RenatoSilvajelmer: ok will try it13:04
RenatoSilvajelmer: bzr: ERROR: Branches have no common ancestor, and no merge base revision was specified.13:19
jelmerRenatoSilva: yeah, your original branch needs to derive from the upstream branch13:19
jelmersorry13:19
jelmerRenatoSilva: yeah, your branch needs to derive from the upstream branch13:19
RenatoSilvajelmer: bzr branch -r 1 mypatch temp; mv upstream-changes temp; cd temp; bzr commit -m "New upstream rev hg:123"; cd ../mypatch; bzr merge --preview ../temp13:36
RenatoSilvajelmer: this seems to work13:37
* AfC wonders why people do merge --preview ... just merge and then commit or revert13:41
RenatoSilvais there any way of qlog or qdiff ignoring whitespace?14:02
vilajelmer, beuno: bzr-upload 1.0.0 has been officially released14:05
jelmervila: \o/ Congrats :-)14:06
vilaI'm all ears for feedback on my last tweaks and what is needed for this release to reach the distributions ;)14:06
jelmervila: Does it fix the test suite?14:06
vilajelmer: I hope so, feedback welcome14:06
vilajelmer: bug #671964 ?14:07
ubot5Launchpad bug 671964 in bzr Upload plugin "test failures building in chroot" [Critical,Fix released] https://launchpad.net/bugs/67196414:07
vilajelmer: I added a info.py file and according tweaks (by looking at bzr-svn and bzr-gtk), I probably broke something there or in the setup.py (I also added a MANIFEST.in)... Monkey see, monkey do. Monkey welcomes feedback to do better too ;)14:09
jelmervila: Cool14:09
beunovila, woooooooooooooooooooooooooooooooooooooooooooooooooo \o/14:09
beunopitty it's too early to drink14:10
vilan'ver too 'rly14:10
beunovila, and we started this what... 3 years ago?14:11
beunomaybe a but more?14:11
vilabeuno: the release doesn't include all the shimy features we've dreamed about, but at least it's out :)14:11
vilabeuno: OMG, I have no idea, too bad we didn't take notes or use a VCS :)14:12
beunovila, well, it was born during the bzr community sprint14:12
beunoso we should be able figure out when that was14:12
vilabeuno: I remember precisely the restaurant we were in :)14:12
vilafirst commit on 2008-03-0714:13
beuno2 years and 3/4  :)14:14
vilaI find it interesting that a VCS made this project possible, a few hours here and here stretched across ~3 years... and still a useful piece of code14:15
RenatoSilvais there any tool for exporting an hg branch to bazaar?14:17
beunoRenatoSilva, fast-import, I think14:17
RenatoSilvahttp://wiki.bazaar.canonical.com/BzrFastImport, can't grok14:19
RenatoSilvaI just want something like bzr import --hg $hgbranch14:20
vilaRenatoSilva: bzr-hg ?14:20
RenatoSilvavila: thanks14:22
RenatoSilvaUnable to load plugin u'hg'. It requested API version (2, 0, 0) of module <module 'bzrlib' from 'c:\Program Files\Bazaar\lib\library.zip\bzrlib\__init__.pyo'> but the minimum exported version is (2, 1, 0), and the maximum is (2, 1, 1)14:24
vila>-/14:25
RenatoSilvaalso, "This plugin requires recent versions of Bazaar **and Mercurial** to be installed to work."14:27
vilaRenatoSilva: yeah, looks like it needs love14:27
vilaRenatoSilva: next bet would be to search in hg for a fast-export path then14:28
RenatoSilvaor use hg at all :P14:28
RenatoSilvaI was trying to avoid installing and touching hg14:29
vilait's a bit surprising though, there are launchpad imports for hg branches, so there should be a version around that is at least compatible with bzr-2.214:30
jelmerRenatoSilva: that's not really possible14:30
jelmerRenatoSilva: as far as I know hg itself is the only thing that can read mercurial repositories14:30
RenatoSilvajelmer: so how about bzr-hg?14:31
jelmerRenatoSilva: bzr-hg depends on mercurial itself14:31
RenatoSilvavila: is that LP import accessible to regular users?14:32
jelmerRenatoSilva: yes14:32
vilaAFAIK if the branch is public you can request its import. You may need the corresponding project created on lp first though (unless it already exists of course)14:33
RenatoSilvano automated way?14:34
jelmerRenatoSilva: the request handling is automated14:35
vilaRenatoSilva: ? Once the import is defined, it will run periodically14:35
RenatoSilvawill the imported branch keep in sync with external version?14:35
RenatoSilvawill new commits be automatically imported into the local bzr branch?14:36
RenatoSilvawhat if there are conflicts?14:36
RenatoSilvahow do I request an import?14:36
jelmerRenatoSilva: they won't automatically be imported into the local Bazaar branch, only to the branch on Launchpad14:36
jelmerRenatoSilva: In theory new revisions will be pulled in automatically twice a day or so, but there have been some issues with the Mercurial imports14:37
jelmerRenatoSilva: So I wouldn't rely on them beyond the initial import at the moment.14:37
=== Ursinha is now known as Ursinha-lunch
RenatoSilvaby local I mean Launchpad14:38
jelmerRenatoSilva: the launchpad branch would be owned by Launchpad, you can't change it (so there is no possibility of conflicts)14:38
RenatoSilvaI don't understand14:39
RenatoSilvaI can't change it?14:39
jelmerRenatoSilva: no; it's a mirror of the remote mercurial repository14:40
RenatoSilvabut see, I want to maintain a patch to a project but without using hg14:40
jelmerRenatoSilva: you can clone the import and make the changes in your clone14:40
RenatoSilvajelmer: so the imported branch behaves like upstream was really using bzr, and I can't touch it as I'm not upstream dev. So I branch it and merge chnages normally, that's it?14:41
jelmerRenatoSilva: yep14:42
RenatoSilvaok trying right now, is this the right url, http://hg.guifications.org/purple-plugin-pack ?14:58
RenatoSilvahow to associate the mirrored branch with a given project? https://code.launchpad.net/~renatosilva/+junk/purple-plugin-pack15:00
RenatoSilva"New code import created. The code import operators             have been notified and the request will be reviewed shortly."15:10
RenatoSilvabut you said it was automated :(15:10
beunoRenatoSilva, I'll review it for you15:11
jelmerbeuno, RenatoSilva: it is15:11
jelmerRenatoSilva: it's auto-approved15:11
RenatoSilvaso message needs to be updated15:11
RenatoSilvaor the operators are bots15:12
jelmerRenatoSilva: there's a bug about that in launchpad-code15:12
RenatoSilvaok15:12
RenatoSilvait was said here that the imports happen once or twice a day but that there has been problems with hg, can I manually request an update?15:13
beunoRenatoSilva, what's the branch's url?15:13
RenatoSilvahttps://code.launchpad.net/~renatosilva/purple-plugin-pack/trunk15:13
RenatoSilvabeuno: ^^^15:13
beunohttp://launchpadlibrarian.net/60435984/renatosilva-purple-plugin-pack-trunk.log15:14
beunoit failed to import15:14
beunojelmer, ^15:14
=== Vorpal_ is now known as Vorpal
jelmerlooks like that host has broken 404 handling :-/15:16
* jelmer looks a bit further15:19
=== zyga is now known as zyga-food
=== Ursinha-lunch is now known as Ursinha
jelmerRenatoSilva: sorry, got distracted by some failing tests.15:47
jelmerRenatoSilva: https://bugs.launchpad.net/bzr-hg/+bug/670870 exists for this issue15:47
ubot5Ubuntu bug 670870 in Bazaar Hg Plugin "bzr crashed with ValueError in convert_converted_from()" [High,Triaged]15:47
RenatoSilvathanks, subscribed15:48
RenatoSilvaabout manual import, there's a button "import now" :)15:49
=== beuno is now known as beuno-lunch
RenatoSilva:(16:07
jelmerRenatoSilva: ?16:11
=== zyga-food is now known as zyga
* RenatoSilva sad for the branch import not working16:17
jelmerRenatoSilva: ah16:18
jelmerRenatoSilva: It doesn't appear to be a hard issue to fix, I might have a look at doing so after work16:18
RenatoSilvathanks jelmer16:19
=== deryck is now known as deryck[lunch]
fabio_kreuschHi there, I want to have subprojects inside a project, is that possible?17:07
RenatoSilvafabio_kreusch: #launchpad ?17:10
RenatoSilvafabio_kreusch: no, but you can request a project group17:10
fabio_kreuschno, I mean, I have a bzr repository, and I want to have subrepositories inside that17:12
fabio_kreuschthese subrepositories would contain code shared by other projects17:13
=== beuno-lunch is now known as beuno
beunofabio_kreusch, no, bzr doesn't support nested trees at the moment17:16
beunothere is working going on to support it, but I don't know the state of it17:16
=== Tak|Work is now known as Tak
=== deryck[lunch] is now known as deryck
ankurda quick repo-organization question:18:15
ankurdi hv a bzr project in a dir A. Now i want to create a project such that root is dir B and A is sub-dir of B.18:16
ankurdSo, do i create a new project? coz I want to maintin the old log.18:16
ankurdor do I extend this project somehow18:16
abentleySo you want to have a new project B that contains your existing project, A?18:17
ankurdno I want the same project A to contain A and B both18:17
abentleyHow can A be a subdir of B and contain B?18:18
ankurdi mean the project should now hv B as root dir18:18
abentleyB is the root dir, and contains A?18:18
ankurdyeah18:18
abentleyThat sounds like what I said before: a new project, B, that contains your existing project, A.  What am I not getting?18:19
ankurdany ideas?18:21
abentleyankurd, I don't understand what you want, so I don't know how to help you get it.18:22
ankurdk lemme restate my problem18:22
abentleyYou may have missed this: "That sounds like what I said before: a new project, B, that contains your existing project, A.  What am I not getting?"18:22
ankurdi hv a project that has A as root dir18:23
ankurdI want this project to hv B as root dir now18:23
ankurdB is parent dir of A18:23
ankurdis that clearer?18:24
abentleyankurd, You can do "cd B; bzr init .; bzr join A."18:24
ankurdohh18:24
ankurdcool. thnx.18:25
ankurdi was looking for this join command18:25
abentleyankurd, np.18:25
abentleyankurd, You might need to do a commit in B before joining A.18:27
ankurdoh18:28
ankurdi dint do a commit.18:28
ankurdand did join18:28
ankurdnow wat?18:28
abentleyankurd, do a commit, and see if you get what you wanted.18:31
ankurdk. i wil try18:33
ankurdhey, i did what you said but now i have lost all logs from dir A18:44
ankurd?18:44
abentleyankurd, does your last revision show as a merge?  If you do "log -n0", do you see all your old history?19:06
ankurdbzr: ERROR: An inconsistent delta was supplied involving 'bzrm.bzrignore', 'bzrignore-20100601133919-09b2wh8pcslnnrih-1'19:08
ankurdreason: working tree does not contain new entry19:08
ankurdi get this error wen i try to commit after join19:08
abentleyankurd, if you run "bzr status", it should show a pending merge.  Does it?19:10
ankurdworking tree is out of date, run 'bzr update'19:10
ankurdrenamed:19:10
ankurd  / => bzrm/19:10
ankurdi dont think this is a pending merge!?19:11
abentleyankurd, bzrm is "A" in your description, right?  The project you wanted to be inside B?19:13
ankurdyeah19:13
abentleyankurd, please run "bzr revision-info --tree".19:16
ankurd0 legalos.lotr@gmail.com-20101210184654-5ry4l7wlfg90x8cu19:17
ankurdthis is the output19:17
ankurd?!?19:17
abentleyankurd, right, great.19:17
=== abentley_ is now known as abentley
lifelessmgz: https://bugs.launchpad.net/testtools/+bug/688719 https://bugs.launchpad.net/testtools/+bug/68872420:45
ubot5Ubuntu bug 688719 in testtools "MatchesException broken with Python 2.4" [Critical,Triaged]20:45
millunhi20:47
millunmy repo is atm called "src". how can i change that? in bzr explorer20:47
ryanpriorI want to share some code with a friend who's on Windows. He's only a beginning programmer and I don't want to overwhelm him with instructions for pulling code from a repository. How easy is the setup procedure for bzr on Windows?21:51
ryanprior(I'm on Ubuntu and bzr is, thankfully, easy as pie over here =D)21:51
mkanatryanprior: It's an installation package, on Windows.21:53
ryanpriormkanat: does it manage all the dependencies for you, or will I have to walk him through dependency building?21:54
mkanatryanprior: It should handle everything.21:54
ryanpriormkanat: thanks, we're going to give it a go.21:55
mkanatryanprior: Okay, cool.21:55
millunmy repo is atm called "src". how can i change that? in bzr explorer22:00
Pengmillun: As long as you don't break the structure, you can usually rename stuff to your heart's content through the OS's renaming tools.22:01
millunok22:03
ryanpriorI'm trying to share my code using "bzr push lp:~ryanprior/+junk/mycode" but I'm getting this error: bzr: ERROR: Connection closed: Unexpected end of message. Please check connectivity and permissions, and report a bug if problems persist.22:10
ryanpriorGoogle tells me that might be a Launchpad or bzr bug, but I'm still suspicious that I'm doing something wrong. Any ideas?22:11
mkanatryanprior: Did you log in with your LP id in bzr?22:12
ryanpriorI did "bzr launchpadlogin ryanprior" and it gave no output, so I assumed it worked.22:12
james_wryanprior, what does "ssh ryanprior@bazaar.launchpad.net" say?22:12
ryanpriorPermission denied (publickey). So I suppose I need to get my crypto in order somehow.22:13
=== Ursinha is now known as Ursinha-afk
mgzlifeless: is that not just one aspect of bug 675327? the branch I proposed should fix it.22:52
ubot5Launchpad bug 675327 in testtools "Raises/MatchesException regressions" [Critical,In progress] https://launchpad.net/bugs/67532722:52
mgzspiv/poolie: yeah, storing the url on the exception then using a __unicode__ method would be best, but getting it all matched up to handle the issues poolie mentioned in the bug will be the fun bit.22:55
=== Ursinha-afk is now known as Ursinha
lifelessmgz: perhaps it is23:01
lifelessmgz: I've done an audit/fixup of the testtools bug db23:02
lifelessmgz: in your mp, jml says there is more to go to be fixed23:02
mgzI've just looked at my emails and seen it, going through now.23:02
mgzthere isn't in the branch, but I think trunk may have broken something else in the mean time23:02
mgzI'll look into it now.23:02
=== Ursinha is now known as Ursinha-afk

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