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

latexeranybody have any suggestions for good "stastics tools" for bzr branches?00:11
beunolatexer, there is a stats plugin written by jam, but I'm not sure what kind of statistics you're looking for00:14
beunolatexer, bzr branch lp:bzr-stats ~/.bazaar/plugins/stats00:15
beunothat should get it installed  :)00:15
latexeryeah, i checked that out, it's pretty slim on stats though.00:15
latexeri'm thinking something web based, show commit timelines, LoC added/removed maybe, etc.00:15
beunolatexer, well, not currently, no00:16
beunoI don't see it very far away, or too complicated even00:16
beunobut it hasn't been done00:16
latexerfair enough.00:16
=== mw is now known as mw|out
=== samurai is now known as samiam
ischnura__Hi04:00
ischnura__I have been playing with the gtk front end of bzr04:00
ischnura__and I could not get the nautilus integration working04:01
ischnura__does someone know how to get the plugin to work?04:03
beunoischnura__, what version of bzr-gtk?04:12
beunoit was enabled in 0.9304:13
beunoer, disabled04:13
beunoso you should try 0.9404:13
=== rockstar` is now known as rockstar
Kamping_Kaiseri find bzr a little strange at times :/ rename a file and it lists it as 'removed' name it back and re add it and its both removed and added ;|04:22
ischnura__I am back sorry for the delay04:23
ischnura__I am using Hardy with the version from the repositories04:24
ischnura__0.9304:24
ischnura__beuno, Is there some configuration that I need to do in nautilus?04:26
bob2Kamping_Kaiser: that's what bzr mv is for04:27
Kamping_Kaiserbob2, yeah. i'm still getting used to having an rcs (and as such not using coreutils)04:27
bob2(not using bzr mv does fracture the files history by storing a delete and an add)04:28
Kamping_Kaiserdrat.04:28
beunoischnura__, well, I'd use 0.94, where it's enabled by default, and many performance issues fixed04:28
ischnura__beuno, thanks04:29
ischnura__I will get the latest version then04:29
bob2'bzr mv --after oldname newname' will fix it if you haven't commited04:29
Kamping_Kaiseri had commited, but i've reverted that change. bzr seems happy with it now for some reason.04:32
bob2for reference, if you haven't commited anything else, 'bzr uncommit' might be simpler04:33
Kamping_Kaiserneat04:33
Odd_BlokeKamping_Kaiser: See also 'bzr mv --after'.04:39
Kamping_Kaiserthanks.04:40
bob2another idea might be to alias commit to 'commit --strict'04:40
Kamping_Kaiserlooks like bzr has everything covered, if only i stopped to think and look in doco *heh*04:40
bob2every vcs except for rcs and cvs have mv commands, fwiw04:41
Odd_BlokeAnd most other VCSs don't track moves at all.04:43
ischnura__beuno, I have read the README file in the 0.94 version04:49
ischnura__they talk about installing a the python-nautilus package04:50
ischnura__and to paste the installation files in .bazaar/plugins/gtk and the nautilus python script in  ./nautilus/python-extensions ...04:51
ischnura__the problem is that it is still not working did you do any other extra configuration?04:52
ischnura__beuno, did you do any extra configuration?04:52
beunoischnura__, try restarting nautilus04:54
ischnura__sudo killall nautilus04:54
ischnura__but still not work...04:54
ischnura__I will try to restart the system...04:55
ischnura__beuno, I will let you know if it works04:55
ischnura_beuno, no luck05:39
ischnura_I still can not get the nautilus integration to work...05:39
ischnura_beuno, did you have to do any other configuration to get it to work?05:40
gourmorning07:20
gourwhat do you think about 1st item in http://bramcohen.livejournal.com/52148.html ?07:20
spivgour: well, having two sets of half-done work is generally worse than having one finished thing07:24
spivSo from that perspective, it's good to minimise the number of things you are doing at once.07:25
spivBut I think he's too extreme.  Sometimes it's unavoidable.  Sometimes you do have a long-lived experiment, or need to collaborate with someone in a different timezone (e.g. "does this change fix the bug for you?").07:26
spivIn fact, one of the great things about one-branch-per-feature is that if work on one feature isn't mature yet, that doesn't interfere with landing a different feature.07:27
spivHe says in the comments "I just plan out what I'm going to do and then start typing, with very little experimentation and patch management."07:28
gourright. branches are also not so expensive when we have shared repos07:28
gourand can be easily discarded when feature is merged back07:29
spivThat's fine if you're the only person working on the code, and you don't have process where all code is reviewed by someone else before it lands.07:29
* gour is accustomed to darcs where branching is quite normal operation07:29
gouryes, that's what i was doing with darcs, not pushing stuff 'out' which is not stable07:30
=== ndim_ is now known as ndim
=== phanatic_ is now known as phanatic
=== weigon__ is now known as weigon
Odd_Blokeabentley: Is the BundleBuggy "This change has been merged." message a new feature?  I like it. :)09:59
gourwill new bzr-gtk still have dependency on seahorse?10:06
sabdflif it does, i hope seahorse learns to pop up in front of the window it's being used in, instead of hiding away10:39
RAOFI think that's focus stealing prevention.  In my experience it happens under compiz but not metacity.10:42
gourwhy seahorse and some extra gnome-stuff? gpa is not enough?10:45
antoranzWhat's up, guys!15:48
antoranzanybody awake?15:48
antoranzI wanted to ask how to "efficiently" handle "new lines" between diferent architectures?15:49
bob2hello15:49
bob2ideally, use an editor that will not mess them up15:49
antoranzbut is there a way to make bazaar "figure out" how to handle the noe lines by itself?15:50
bob2it handles them fine15:51
antoranzperhaps with an option when run?15:51
antoranzYesterday I made a brnach of my project on a M$ mox15:51
bob2if  you're asking for it to translate between platform native line endings, that's under development15:51
antoranzand when a line was edited (on wordpad) when you sae the diff of the file, it was replaced from top to bottom (because of the new lines)15:52
bob2right, notepad messed it up by not using the existing line ending format15:52
bob2afaik auto translation is under development but close15:52
antoranznotepad is not even an editor. :-)15:53
bob2well, wordpad15:53
antoranzand wordpad is close to noet being one either. :-D15:53
antoranzso it's under development.15:53
antoranzIs there a timeframe to have it on the stable or trial versions?15:54
antoranznow... a question not directly involved with bazaar but close.....15:54
antoranzlet's say I will stick with the other guy working on windows.15:55
antoranzand have his file replaced everytime.15:55
antoranzi could "merge" his changes (which will make bazaar think the file has been rewritten from top to bottom)15:55
bob2it's reallyt not a platform issue per se, it's an editor one15:56
antoranz(yes... that's hat I told the guy.... that he needed to set up his editor to use Unix new lines.... and you know what he replyed? Hold on to your chair: He was very happy using windows and won't install GNU/Linux... HUH?!?)15:57
bob2(I don't know when it will be released, but there's been increased chatter about it on the list)15:57
antoranzso... as I was saying.... I get his files replacing mine completely.... is there a command (or series of commands) that I could run on GNU/Linux to replace all the M$ new lines for unix ones?15:58
antoranzJust curious15:59
bob2sure, dos2unix15:59
antoranzor even better: series of command on windows he can run so he doesn't mess up the files? say just before committing15:59
Pilkyantoranz: is your friend using notepad for editing?15:59
bob2on the flip side, most unix editors are competent enough to just not damage files with windows line endings16:00
bob2so if you conceded defeat and use them, you should be ok16:00
antoranzI just don't know what he will be using... it was just a "trial baloon"16:00
Pilkyif so, I strongly recommend something like notepad 2.0 which I believe can work with unix line endings16:00
antoranzok... you make it an editor problem and that's it. I don't know how I will be coping with that... I guess I can work dos2unix to "correct" HIS problem on my side.16:01
bob2no, you misunderstand16:01
bob2your editor will probably be happy with the line endings16:02
antoranzOh.. I know... kate has no problem with that at all.16:02
antoranzbut when he save (not saves... save) a file, if he's not careful, he will mess up bazaar and it won't be able to see line changes but file replacement instead16:03
bob2how so?16:03
antoranzsay... I make a file... 100 lines long and put it in my repository16:04
bob2unless you convert back on your end, it'll be fine16:04
antoranzhe "merges" it into his repo16:04
antoranzopens it.... say.. in wordpad16:04
antoranzhe adds two lines16:04
antoranzsaves it16:04
antoranzif he does a diff, bazaar won't see the two-line change16:05
bob2ah, yes, that will suck, if you want this scheme to work, you'd need to add files with windows line endings, too16:05
antoranzhe will think the file as it was was completely removed and added 102 lines of code to replace it16:05
antoranzI know.... that's exactly what we're taling about. The problem is that he won't install GNU/Linux so he can have the lines the way I want (man... I'm still wondering at his lack of understanding of the problem :-S)16:07
antoranz:-)16:07
bob2hehe16:07
fullermdTake off and nuke the site from orbit.  It's the only way to be sure.16:07
bob2well, at the moment you can either: use windows line endings yourself, or insist he uses a competent editor or use dos2unix a lot16:08
antoranzok... bottomline: bazaar agnostic new lines recognition is on the way16:08
bob2at some point :)16:08
antoranzI can use dos2unix to "correct other people's carelessness"16:09
antoranzis there a tool that does the opposite for the windows side?16:10
bob2well, if you run it after every merge from him and before he sees your tree, yeah16:10
bob2unix2dos16:10
antoranzfor windows? OK.....  that's will do it... at the worst, I could add a batch file to the project that he could run before he commits.16:11
antoranzman.... do I hate people at Microsoft16:11
fullermdCould be worse; you could have Mac newlines mixed in too   :p16:11
antoranzyeah! ;.)16:12
antoranzI have never programmed for the CMD.16:14
antoranzhow can I build a while read line; do ; ; ; ; done < filelist.txt16:14
antoranzif anybody knows, I mean16:15
nameantoranz: if he's got python i could help you :D16:16
antoranzwell.... If he didin't have it, bazaar installed it for him, cause bazaar is working16:19
antoranzand that's obvious..... use python to do the job16:20
antoranzas a matter of fact, I've been trying to get my head in python for a while... perhaps it could be a nice exercise to begin with16:21
antoranz:-)16:21
nameantoranz: should i write a file ending replacer for multiple files for you?16:21
antoranznope... don't worry... I'll do it myself. ;-)16:22
nameantoranz: okay..16:22
antoranzthat's anyway, name16:22
nameit's not really hard anyway :)16:22
namelook at os.listdir16:22
nameand just replace ;) "\r\n" with "\n" or counterwise16:23
nameif you got any questions, just ask me, query if you want16:23
antoranzok. :-)16:23
antoranzlet me give it a try. ;-)16:23
nameofcourse ;)16:23
bob2os.walk would be simpler16:24
namebob2: ah right, forgot that it could be multiple dirs :)16:25
antoranzI won't start that high... I'll setup a file where the files that have to be checked will be.16:27
antoranzI will think of simpler ways later16:27
antoranz(once I get a grip on python)16:27
namehttp://diveintopython.org is good16:27
name(if you have some programming knowledge)16:29
bob2if tou can't get this person to understand the issue, you might be better off just doing the work on your side16:29
antoranzbob2: Well... after his response that "he won't install GNU/Linux", I'm starting to wonder if I'm better of by myself. :-D16:30
namelol16:30
antoranzbut well.... I'll just create this script just in case I'm stuck with him. :-)16:31
nameand learning python is always good ;)16:31
antoranzI know.. I know... I was just waiting for one excuse to come by... and it's here... so.... let's not waste anymore time, right? ;-)16:32
antoranzlet's see how I go,.16:32
nameantoranz: nopaste it so i can check how you did it :)16:32
antoranzok... I'll call dos2unix (to begin with).16:33
antoranz(i mean... for my python script)16:33
antoranzI'll do the whole job from the script later16:33
namelol16:33
antoranzdon't laugh! :-)16:34
antoranzI mean.. I'll create a script that will call dos2unix16:34
antoranza python script.... I'll change it later to do the converion by itself.16:34
namewhat's the point of the script them o.O16:34
antoranzgive me a break, guys! :-D16:35
antoranzthat I can't make a while read line < file_with_filenames on cmd... can I?16:35
antoranz:-P16:35
nameantoranz: think the python way, query? :D16:35
antoranzwhat?16:36
antoranz:-)16:36
antoranzI'm sorry: say what?16:37
nameantoranz: if i can query you for that is offtopic here16:37
antoranzif you can query me for what? :-S Man... I'm dizzy already16:37
nameantoranz: about your script16:38
antoranzyea, my script16:38
antoranzwan't to see how it's going?16:38
antoranzI've made huge leaps forward16:38
antoranzhttp://www.pastebin.ca/102799416:39
nameantoranz: WOW!16:40
antoranzTold you! :-D16:40
namei can't speak spanish tho16:40
antoranzwell.... the first line is not important... but the rest of the script speaks for itself.... doesn't it?16:41
antoranzdo you recomend to use tabs or spaces for indentation?16:42
nameantoranz: that file contains the files to be converted, eh?16:42
antoranzyes... (to begin with)16:43
namei think i just wrote your script ;)16:43
antoranzI already know that python uses indentation to figure out "blocks"16:43
antoranzso which do you recommend to use?16:43
namei use spaces, but with the tab key16:44
namemy ide does it well :)16:44
antoranzok16:44
bob2pep8 (the python style guidelines) say 4 spaces16:44
bob2but like name says, it is your ide's problem to sort that out when you hit tab16:44
nameWingIDE for the rule!16:45
antoranzwhat do I have to import to use fopen?16:46
namenothing16:46
nameuse open16:46
nameor file, it's the same16:46
antoranzit worked with open16:48
nameantoranz: loops are not the same as in C, for is not the same as C for...16:48
antoranzgive me a minute,... I think I almost got V1.016:49
namelol i sent u a paste o.O16:50
antoranzwhat do you "pass" dos2unix? the name of the file and it will reconvert it?16:50
antoranzno new file is created?16:50
nameu don't need dos2unix, just use replace of python16:50
antoranzcome on, guys... that's V2.016:51
nameit's easier to do anyway ^^16:52
namemessing with subprocesses is not easy for windows16:52
bob2it should be pretty easy with the subprocess module16:52
antoranzV1.0: http://www.pastebin.ca/102800316:54
antoranzlet me commit it in the repository ;-)16:54
namewhy in gods name so complicated o.O16:55
antoranzman... I'm a rookie! Give me a break16:55
antoranzin a few minutes i'll have it working _your_ way16:56
nameusing external tools is just as hard or easy as using python internals16:56
namei tell you i've had loads of problems with subprocesses, namely wesnoth.exe for windows16:56
antoranzlet it go, man.... com eon... breath... count to ten. :-)16:57
namei just warn you.16:57
antoranzI'll do the change in a few minutes... hold on16:57
namei had hundres of running processes with windows and loops and subprocess, tho it worked fine with linux16:59
name*hundreds17:01
namebasically what u want is open(file, "w").write(open(file).read().replace("\r\n", "\n"))17:02
nameno guarantee for that tho :)17:03
antoranzas I'm reading the filename from another file, I have a \n at the end of the filename17:03
antoranzhow can I remove it?17:03
nameantoranz: using readlines17:03
namefile.readlines()17:04
antoranzsame thing: No such file or directory: 'interfaz_standalone.php\n'17:07
namethen use .strip on the string, tho it should not happen17:07
antoranzI hate python already. :-D17:07
nameantoranz: it just hates you ;)17:08
nameshow me your code17:08
nameand i'm sure it'll be PEBKAC17:08
name;-)17:08
antoranzarchivo = archivo.replace("\n", "")17:09
antoranzI'm not stupid, man... I know how to program, man... I just don't know my "resources" nor sytax with python... take it easy17:09
nameyes, that's what i mean17:10
namebut that replace will make it hard to tell between the lines17:10
antoranzno no.. that's just for the name of the file I have to process17:12
antoranzsee ho it's going17:12
namesure but aren't there multiple files in that file?17:12
antoranzyes, there are17:12
antoranzsee how it's going17:12
antoranzlet me put it in  the pastebin17:12
antoranzhttp://www.pastebin.ca/102801117:14
lifelessgour: the gtk dependency will be removed17:15
lifelessgour: it should really be 'optional usage' but its buggy right now17:15
=== andrea-bs_ is now known as andrea-bs
antoranzguys.... I have to go for a while... I'll come back later to continue working on it17:17
antoranzthanks for your kind help17:17
antoranzname: thank you, man17:17
namenp, look at the code i sent you in query17:17
antoranzI saw it... but I have to go to by some groceries17:18
nameokay hf17:18
antoranzI'll come back to work on it later... I promise17:18
namelol17:18
antoranztake care.17:18
gourlifeless: you mean seahorse dependency? what is bzr-gtk without gtk?17:27
Pietergtk doesn't depend on seahorse17:29
gourPieter: bzr-gtk was crashing without seahorse17:29
gourmy question is seahorse is really required for bzr-gtk 'cause it brings some gnome-stuff deps, instead of e.g. gpa17:30
gours/is seahorse/is if seahorse/17:33
jelmergour: The explicit dependency on seahorse is a bug17:38
jelmerit's going to be fixed in the next release17:38
gourjelmer: thanks. that's i wanted to hear ;)17:40
abentleyOdd_Bloke: Indeed.  Just implemented yesterday.17:41
lifelessgour: I thought that was what I said ? :P17:44
gourlifeless: "the gtk dependency will be removed" is not quite the same17:47
gourlifeless: how can bzr-gtk be without gtk?17:47
lifelessmeh :)17:48
lifelessI mean the erroneous dependency *of* bzr-gtk17:48
gournp ;)17:49
antoranzOK... I'm back! Hell... I'm very sleepy19:04
antoranz|-)19:04
antoranzOK... got it... perhaps it's a little rough... but it does the trick (just tried it)19:25
antoranzhttp://www.pastebin.ca/102809919:27
antoranzthanks for your help, guys!19:30
antoranzI'll be coming once in a while to see what I can help with.19:31
antoranzC ya!19:31
PilkyIf I've just pushed to a launchpad and my friend hasn't changed anything since he last pushed, should he do bzr merge or bzr pull?20:24
Pilkyor are they both equivalent in this case?20:24
radixPilky: he should just pull20:26
Pilkyok, cool20:26
Solarionhmm20:31
Solarionmy repo seems horked20:31
SolarionI think I unknowingly shut down during a very long operation20:31
Solarionany recommendations?20:32
Solarionbug #23464720:38
ubottuLaunchpad bug 234647 in bzr "bzr dies with parse error on corrupted history" [Undecided,New] https://launchpad.net/bugs/23464720:38
Solarionubottu: thanks20:38
ubottuYou're welcome! But keep in mind I'm just a bot ;-)20:38
gourubottu: it's nice that you help people here ;)20:40
ubottugour: Error: I am only a bot, please don't think I'm intelligent :)20:40
gourahh, i expected some more intelligence20:41
Pieterhow can I pull all branches at once?22:07
VerterokPieter: if you have bzrtools installed, bzr multi-pull22:07
Pieterright, thanks22:08
=== mario_ is now known as pygi
lamalexbzr won't add my directory! I do bzr add dirname and nothing happens22:57
lamalexit's listed as unknown in bzr status22:57

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