/srv/irclogs.ubuntu.com/2009/03/29/#bzr.txt

stopieHey all. Just learned of bazaar and find it to be a very vague concept in my mind and Ive done some looking for information on wiki and the bar webpage, and its not helping. I was wondering if anyone had a link to some information that might help explain how bzr does what it does and such. Thanks!02:36
johnjosephbachirstopie: have you used other SCMs before, like subversion or cvs?02:46
=== UdontKnow is now known as ObiWanQueNoob
devilsadvocatehi. can someone point me to a document which describes why version control is required? I need to convince a team that its needed.. would be nice to have all the arguments in one place07:10
cody-somervilleTheres a team that doesn't think its needed? :S07:13
cody-somervillehttp://ianclatworthy.files.wordpress.com/2007/10/dvcs-why-and-how3.pdf <-- heres a good resource07:13
devilsadvocatei really dont know what to do other than bang my head against a wall07:32
lifelessdevilsadvocate: are you the team lead?07:32
devilsadvocatethey want to do file renaming on ftp, etc07:32
devilsadvocatenot the lead, but its my responsibility to make sure different parts of the system work together, etc07:33
lifelessdevilsadvocate: well, if folk want to do it hard, and the lead agrees, just use bzr yourself07:33
devilsadvocateand i also am the one with the most experience in writng actual code, so i have a feeling i'll be doing a chunk of that work as well07:33
lifelessand show it off when ever a suitable time happens07:33
lifelessit will spread ;)07:34
devilsadvocatethe suitable time has already happened07:34
devilsadvocatewe ended up submitting a report that had different sections at different levels of recent, since it turned out people were editing different docs07:34
devilsadvocateand the argument that is used against it is that "we wont be able to make people wont use it"07:35
devilsadvocatecody-somerville, thanks for the link. it might just be enough to tip it over the edge (added to my threat of leaving the project)07:36
bialixgaryvdm: ping09:52
garyvdmHi Alex!09:52
garyvdmbialix: pong09:53
bialixhi Gary09:53
bialixcan you teach me about qlog internals a bit?09:53
garyvdmSure - Thats why I did that review - and did not just fix09:54
bialixthank you09:54
bialixin log.py I see method update_search09:54
bialixthere is special code paths for revid and revno09:54
bialixdo you want me to place tag filter there?09:54
garyvdmWe could.09:55
garyvdmIt depends on how you want it to behave09:55
garyvdmfor revid and revno - we don't filter - we just jump to the revision - cause there will only ever be 109:56
bialixmy intent to provide the search for specif tags09:56
garyvdmFor tag - your search might09:57
garyvdmbrb09:57
garyvdmsorry - I'll be back in 10 min09:57
bialixbtw, search for tags has one weak place: if tag in merged revision then it still collapsed. how can I force it to be visible?09:57
bialixok09:57
rustyDumb q: what's the best way of showing a change, ie. log + diff?10:05
bialixlog -p10:05
rustybialix: not in 1.6.1?10:06
bialixrusty: nope10:06
bialixupgrade?10:07
bialixgaryvdm: perhaps I understand your suggestion: I need to use self.sr_index_matched_revids dict, and fill it with matching keys. Is that right?10:08
rustybialix: thx, but sticking with ubuntu default pkgs.10:08
garyvdmbialix: Yes- if you want to filter.10:17
bialixbtw, there is something strange10:17
garyvdmFor revno, revid - we select, and not filter.  For message, author, we filter10:18
bialixyou're using self.sr_filter_re and self.sr_filter_regex in the same time10:18
bialixin constructor you define self.sr_filter_re10:18
garyvdmOh10:18
bialixit seems like a typo or bug10:18
garyvdmself.sr_filter_re is the one that gets used. I'll fix that though.10:19
bialixI have working filter for tags: http://pastebin.com/m4a3a752c10:21
bialixgaryvdm: how can I force merged revision to be visible?10:21
garyvdmAh10:21
bialixum?10:22
garyvdmhttp://pastebin.com/d2cb3b50710:23
garyvdmYou need to set self.branch_lines[branch_id][1] = True10:24
garyvdmFor the revisions, and the revisions that merge them10:24
garyvdmrecursively10:24
bialixoh10:25
bialixit will play badly with multiple branches?10:25
garyvdmNo10:26
garyvdmSee invaladate_filter_cache_revs to see how I find the revisions that merge them.10:26
garyvdmback in 1min10:27
* bialix -> lunch, back in 20 min10:28
garyvdmbialix: Please don't use sr_index_matched_revids. Create a new field, say sr_tag_matched_revids10:35
bialixwhy?10:37
garyvdmbialix: To make it easier to understand / read.10:43
garyvdmIt will work just as well if you don't.10:44
bialixwill do10:47
bialixI'll send the patch for review10:47
Tecanhow would i check this repository out ? https://launchpad.net/alarmclock10:49
lifelesstypically you can just do bzr branch lp:alarmclock10:50
Tecancool it worked ;)10:52
Tecanbut with a dash in it10:52
Tecanalarm-clock10:52
Tecani'm starting to like bzr alot. the website looks/works like a few million dollars10:53
=== mario_ is now known as pygi
=== thunderstruck is now known as gnomefreak
xiaohuihi, I am a newbie of bzr, could some tell me how to make a patch13:13
xiaohuiwhich command should I use13:13
jpdsxiaohui: 'bzr diff' will show you what uncommited changes you have.13:21
jpdsYou can redirect it to a new file with: bzr diff > my_patch1.diff13:22
xiaohuioh , thank you jpds13:25
luksor better, commit them and use: bzr send -o mypath.diff13:26
jpdsluks: Oh, did not know that, thanks.13:27
luksthis is dvcs, offline commits are one of it's main point :)13:27
luksand if the upstream is using bzr, they can just use bzr merge/pull mypatch.diff13:28
xiaohuijpds: I have done as your said , but I havn't seen the patch show the info about the added file13:37
bob2welcome to patches13:37
bob2what's the patch for?13:37
luksxiaohui: did you 'bzr add' the file?13:38
luksand seriously, use bzr send13:38
xiaohuioh  luks , I haven't do that13:38
xiaohuiI just used the bzr from this moring13:39
luksthe usul way of contributing patches to a project using bzr is to branch the remote branch, work on the branch, make a commit, bzr send the resulting patch13:40
luksthe patch produced by bzr send will then contain your name, the commit message, etc.13:40
luksand the maintainer will just merge it like if it was a normal branch13:41
luks*ussual13:41
luksbah, I can't type13:41
xiaohuiit works, thank you guys13:43
xiaohuiI will read the document later13:43
magciusHow do I change the default push location for a branch?13:56
bob2edit .bzr/branch/branch.conf or bzr push --remember somethingelse13:57
magciusIs the --remember switch documented?13:57
bob2bzr help push13:59
=== thunderstruck is now known as gnomefreak
=== ObiWanQueNoob is now known as UdontKnow
jribhi, is there a gui frontend for bzr on os-x?  I want to use bzr on a project, but I need to provide a nice gui for my friend on os-x or he will refuse :)15:48
jribIs there some way to configure bzr so that if I do « bzr branch foo », then it remembers the parent branch as the push location so that I can do « bzr push » without having to specify where I want to push?  In short, I want to be able to do: « bzr checkout foo; *hack*; bzr push », instead of: «bzr checkout foo; *hack*; bzr push foo »16:08
jriberm.  s/checkout/branch16:08
bob2no16:09
jribIs there a reason other than "no one has contributed the code" why that is?  Or at least why a configuration setting does not exist?16:10
cody-somervillejrib, probably to prevent accidental pushing16:32
cody-somervillejrib, however, I'm pretty sure checkout does remember. Infact, with a checkout, when you commit, you're committing to the remote branch16:32
cody-somervilleWhereas branch is actually creating a new branch that you commit to16:32
jpdsjrib: bzr push :parent16:35
cody-somervillethats a neat trick16:46
jribjpds: that will do, thanks16:53
jpds'tis a nifty shorthand, true. :)16:53
jribis there a gui frontend for bzr in os-x?17:03
cody-somervilleI think there is good bzr integration with netbeans17:10
jpdsjrib: Looks like QBzr runs on it: http://bazaar-vcs.org/MacOSXBundle17:10
jribthanks again17:11
=== goden is now known as eugeneoden
BlackLukeshi, I added a .bzrignore file in my project directory and typed on the terminal "bzr ignore ./config.cfg"18:02
BlackLukesbut I got this: "Warning: the following files are version controlled and match your ignore pattern: config.cfg"18:02
BlackLukesif I write bzr ignored, config.cfg is not showed. what should I do to ignore it?18:02
LarstiQBlackLukes: euh18:04
LarstiQBlackLukes: the warning tells you that the file is under version control18:05
LarstiQBlackLukes: in which case, even if it matches an ignore rule, it will not be ignored.18:06
BlackLukesI have to keep it under version control but it should ignore changes18:06
LarstiQthat doesn't make a lot of sense18:06
LarstiQBlackLukes: if you're not interested in versioning it, why keep it under version control?18:06
BlackLukesno it's not that case18:07
BlackLukesI have a configuration file that shouldn't change if a developer commit a changes to other files that automatically changes the configuration file (it's system dependent)18:08
LarstiQBlackLukes: so, why does it need to be versioned in the first place then?18:10
BlackLukesI have to keep the default value every time the application run.. if a developer commit a change, the conf file is changed so I have to manually change the conf file to default values18:11
LarstiQBlackLukes: ignores do not work the way you seem to want to use them, and I don't completely understand your situation so have trouble recommending a solution18:12
BlackLukesyeah you're right, it's very difficult to explain and maybe it's even an incorrect thought. I'll try to do a code workaround18:13
stbuehlerjust rename the file in version control to "config.cfg.default"18:15
BlackLukesand then I have to put under version control.. but what if I want to keep it unchanged?18:17
LarstiQBlackLukes: as stbuehler said, a common pattern with config files is to version a template, copy that to something unversioned (and ignored), changes to that won't propagate18:22
BlackLukesah yeah that make sense18:24
BlackLukesthanks, I'll do in this way18:24
LarstiQBlackLukes: ok, I hope that solves your use case :)18:24
stbuehleranother idea (if you have "include" available for your configs), is to have a versioned "config.default" and a "config"; the "config" includes "config.default" and tries to include "config.custom" if it exists18:25
BlackLukesyeah, another good way. I think I can do this also through code18:27
=== abentley1 is now known as abentley
Flare-laptopHow can I fix these errors: http://flare183.pastebin.ca/137598319:38
SamB[#|                  ] None ?   3257KB    24KB/s | copying revision 176/228719:41
* SamB wonders if he needs to pull a new version of bzr-svn19:41
SamBFlare-laptop: did you actually install bzr?19:42
Flare-laptopSamB: Yeap19:42
SamBwhere is bzrlib?19:42
Flare-laptopAnd it gives me this crap too: ImportError: Bad magic number in /usr/lib/python2.5/site-packages/bzrlib/__init__.pyc19:42
SamBOH19:42
SamBmaybe try reinstalling?19:43
Flare-laptop...19:43
Flare-laptopOk, I'll try that19:43
Flare-laptopfail19:43
Flare-laptopIt still gives me the same error19:43
SamBstill bad magic number?19:43
Flare-laptopYeap19:43
SamBthat's not good19:43
Flare-laptopYeah I know19:44
Flare-laptopIt works fine on my Ubuntu Laptop, but not on my Arch Linux Server19:44
Flare-laptop:(19:44
SamB% python --version19:44
SamBwhat's the output for you?19:44
Flare-laptopPython 2.6.119:44
SamBoh.19:44
Flare-laptopI have BOTH python 2.5 and 2.6 installed19:44
SamBand what is the shabang line on bzr?19:44
Flare-laptopSorry for the cpas19:45
Flare-laptopcaps*19:45
Flare-laptopshabang?19:45
SamBthe first line19:45
SamBit has a "#!" at the beginning19:45
Flare-laptopI'm confused19:45
SamBi.e., run "head $(which bzr)"19:46
SamBread off the first line19:46
Flare-laptopoh ok19:46
Flare-laptophold on19:46
=== serg_ is now known as serg
Flare-laptopOutput: http://flare183.pastebin.ca/137599819:46
Flare-laptopSamB: ^^19:47
SamBokay ... so it looks like you have python 2.6 trying to load bytecode compiled by python 2.519:48
Flare-laptopYeah, and I'm also having problems with my supybot not wanting to load either19:48
SamBout of the python 2.5 library directory, no less ...19:48
Flare-laptopSame problem too, I think19:48
SamBwhat does "echo $PYTHONPATH" tell you?19:49
SamBoh, btw, this is the shabang line:19:49
Flare-laptopOk, here is stupid part; when I go to install supybot, it installs python2.619:49
SamB#!/usr/bin/python19:49
Flare-laptophold on19:49
Flare-laptopahh ok19:49
SamBcalled that because it starts with a sharp and a bang19:49
SamB(# and !)19:49
Flare-laptoplol like crunchbang19:49
Flare-laptopwhoa wt*19:50
Flare-laptop[jesse@flare183 ~]$ echo #PYTHONPATH19:50
Flare-laptop[jesse@flare183 ~]$19:50
Flare-laptopThere's nothing there!19:50
SamBer, $, not #19:50
Flare-laptopoops19:50
* Flare-laptop facepalms19:50
SamBhehe19:50
Flare-laptop:S19:50
Flare-laptopSame thing19:50
SamBoh, okay19:51
SamBthat is very wierd ...19:51
Flare-laptopI agree19:51
* Flare-laptop wishes he had enough RAM to install Ubuntu Server19:51
garyvdmjam: Please can I chat to you about Bug 350796?19:51
ubottuLaunchpad bug 350796 in bzr "merge_depth from merge_sorted_revisions incorrect." [Undecided,New] https://launchpad.net/bugs/35079619:51
SamBmaybe you should ask in a forum (channel, mailing list) for Python on Arch19:51
Flare-laptopalright19:52
* SamB wishes the gcj runtime library on Debian was in smaller pieces ...19:59
Flare-laptopSamB: But what exactly should I say/put on the forums?20:01
* cody-somerville pouts at how difficult git is.20:46
* cody-somerville huggles his bzr.20:47
magciusWhy does bzr try to push through http on Windows?21:41
magciusInstead of through bzr+ssh?21:42
magciusIs pushing through http even possible (Launchpad here)21:42
jelmermagcius: are you specifying a http:// url?21:42
magciusjelmer, lp:*21:42
jelmermagcius: it will use http:// if you haven't logged in21:42
jelmertry "bzr lp-login"21:43
magciusjelmer, he tried it.21:47
magciusbzr noobie here21:57
magciusI did a bzr pull, now how do I merge the changes with the local working copy?21:57
jelmermagcius: bzr pull will automatically update the working tree21:57
magciusjelmer, hmm...21:58
magciusjelmer, it didn't appear to change anything in emacs.21:58
magciusjelmer, bzr says to use "merge" then "push". Even after I do that it does the same thing.22:10
magciusjelmer, oh, I had to merge, commit, then push.22:10
magciusJust a usability issue, that's all.22:11
jelmermagcius: "bzr pull" only works if you are behind on the branch you're pulling from, not if you have any local commits22:11
jelmerif you have any additional commits locally, you have to merge22:12
magciusjelmer, yeah, I fixed the pull issue. I am trying to push, it said to "merge" then "push"22:12
magciusI had to merge, then commit, then push.22:12
magciusJust an unhelpful error message, that's all.22:12
magciusIs there a quick how-to on bzr merging?22:45
stbuehlerjelmer: just wanted to give some feedback: bzr dpush does *not* give you the svn-revisions back, even if you had new commits pushed to upstream svn22:53
stbuehlerperhaps that works if you never used the normal push, didn't try that22:54
bob2magcius: maybe in the user's guide - it's mostly just a matter of 'merge, fix any conflicts, commit', though22:54
lifelessjelmer: ping22:56
lifelessjml: ping22:59
jmllifeless: pong.22:59
jmllifeless: I'm on a call with thumper at the moment.22:59
lifelessI have a tiny review I'd like done when you can - lp:subunit, the polish branch. Its a no-brainer22:59
lifelessI just got a mail titled 'using SubUnit for Python on Parrot' :)23:00
=== Spaz_ is now known as Spaz
jelmerlifeless: moin23:39
jelmerlifeless: one sec23:39
lifelessjelmer: hi23:44
lifelessjelmer: subunit, you put up an RFP23:44
jelmerlifeless: ah, yeah23:44
lifelessjelmer: its come a ways since then, and with my polish branch installs correctly AFAICT23:46
jelmerlifeless: did you request a merge or anything for the polish branch?23:46
lifelessyes23:46
jelmerlifeless: since I didn't see any email yet23:46
lifelessare you suscribed to trunk for reviews23:47
jelmerah, probably not23:47
lifelesshttps://code.edge.launchpad.net/subunit/+activereviews23:48
jelmerthanks23:48
jelmerhmm, subunit developers is the standard reviewer for lp:subunit23:49
lifelesssubscribe to trunk23:49
lifelessthe default subscribtion status changes when reviews were added23:49
lifelesss/changes/changed/23:49
lifelessexisting subscriptions were not updatd23:50
jelmerahh23:53

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