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

thumperlifeless: do you have some time to talk?00:24
lifelesssure00:25
lifelesshow would you like to talk?00:26
lifelessthumper: ^00:27
thumperlifeless: voice probably00:27
lifelessok00:27
lifelessskype me baby00:27
thumperok, just getting a game down for maia00:27
bob2jelmer: yeah, replied00:29
thumperlifeless: trying to skype, no answer00:29
lifelessthumper: sorry missed it00:29
mwhudsonjelmer: you around by any chance at all?01:19
jelmermwhudson: somewhat :-)01:19
mwhudsonjelmer: awake enough to talk about bzr-hg and incremental imports at all?01:19
mwhudsonor just a basic grounding in mercurial concepts i guess01:20
jelmermwhudson: Yeah, though planning to get some sleep soonish01:21
jelmermwhudson: anything in particular you'd like to know?01:21
mwhudsonjelmer: hm, i guess i'd like to know what remote.branches(unknowns) returns01:22
mwhudsonthis seems to be a use of the word 'branch' i don't usually use01:22
mwhudsonis a branch a run of commits with a single parent?01:22
jelmermwhudson: IIRC yes01:24
jelmermwhudson: so that allows you to mainly worry about merge commits and not waste any roundtrips on simple ones01:25
mwhudsonjelmer: ok, that makes some kind of sense01:25
mwhudsonjelmer: i like the ample docstrings and meaningful variable names in the mercurial source btw01:26
mwhudson</sarcasm>01:26
jelmer:-)01:26
mwhudsonjelmer: so unknowns takes a set of revision ids and returns ... what?  the branches that contain the unknown revisions ?01:28
mwhudsoner01:28
mwhudsonremote.branches01:28
jelmermy memory is failing01:29
* jelmer grabs the mercurial source01:29
james_wjelmer: dude!01:31
james_wyet more great patches!01:31
jelmerjames_w: hey!01:31
jelmermwhudson: unknowns the variable contains a set of revisions we have yet to fetch the branches for01:34
mwhudsonit seems branches for each revision walks back until it reaches a rev with 2 or 0 parents01:35
mwhudsoneach *passed* revision01:35
jelmermwhudson: when we fetch a branch we check if we know the base of that branch - if we do we know we don't have to check that branches' parents - the revisions we have to fetch are in between the base and the head of that branch01:35
jelmermwhudson: which revisions we need from that branch we figure out later using a binary search01:36
mwhudsonok, this is starting to make sense01:36
bluntedanyone familiar with the bazaar api?01:38
jelmerblunted: somewhat01:38
bluntedi cant figure out how to get the url of a branch from its object01:39
lifelessbranch.base01:39
mwhudsonjelmer: i still don't get where we can decide to limit the revisions we fetch01:40
mwhudsoni guess it's going to make the function quite a bit more complicated01:40
bluntedthanks much, the documentation i've found doesn't seem to include attributes... maybe i'm missing something01:41
jelmermwhudson: I'm sorry, I might've been more optimistic about that when my brain had lost the impression of what this function is doing :_)01:41
mwhudsonjelmer: heh heh01:41
jelmermwhudson: we definitely can't do much before the binary search01:42
jelmermwhudson: yeah, I think it'd indeed be too hard01:51
jelmermwhudson: it's a pity though, because you'll still have to process a lot of data you're going to discard later01:52
mwhudsonjelmer: i don't really understand how all the revisions from a completely unseen branch end up in the returned set :/01:52
jelmermwhudson: branches that aren't seen at all are already present locally01:52
mwhudsonjelmer: i mean a branch where neither head nor root are present locally01:53
mwhudsonit seems to me at some point you need to add all the revs from between(head, root) to the returned set01:53
jelmermwhudson: the returned set isn't a set of revisions to fetch, it's the set of tips that's missing01:54
jelmerhmm01:55
jelmerI should get some sleep before I talk more nonsense01:55
mwhudsonjelmer: oh01:55
mwhudsonjelmer: yes, probably sleep is good :-)01:55
jelmerthat last sentence (<jelmer> mwhudson: the returned set isn't a set of revisions to fetch, it's the set of tips that's missing) is gibberish01:56
mwhudsonjelmer: noted01:56
jelmerg'night!01:57
mwhudsonjelmer: talk you you on your monday i guess01:58
jelmermwhudson: yeah, happy to continue discussing this then - I guess it's not really urgent until the majority of the imports are fixed anyway?01:58
mwhudsonjelmer: no not really01:59
mwhudsonjelmer: it would be nice to make the code that passes limit= in the puller uniform across branch types01:59
mwhudsonbut that's no big deal01:59
Emzzzzhttp://imggmi.info/DSC-1268362455.jpg/ do my tits look big?03:00
=== zekopeko_ is now known as zekopeko
* igc lunch03:04
spivI started a bit early today, so I'm off.  Happy weekend everyone!05:10
vilahi all !07:30
* igc dinner08:46
=== weigon_ is now known as weigon
sjamaanHi09:18
sjamaanI get this error message in my apache log:  No handlers could be found for logger "bzr"09:18
sjamaanWhat's causing this?09:18
evantonhow do I purge a file completely from a bzr repository? I believe that doing bzr remove will leave traces of the file in older revision (please correct me if I'm wrong), so this doesn't suffice09:42
bob2yes, with difficulty09:44
evantonI believe it at least makes sense to expect for such a feature from bzr, because it's file-based09:46
bob2hm, it's not very file based09:46
evantonit would be harder for git, because excluding a file would change the sha checksum for that revision snapshot totally09:47
bob2that's not to do with file-ness, that's to do with identifying revisions based on content hashes09:47
bob2you can use fast-export/import for this, I think09:47
bob2or rebase09:48
sjamaanevanton: It has more to do with the fact that people already have the full history in their own branches09:49
sjamaanIf you kill a revision afterwards, their branch will be inconsistent with the master branch09:49
evantonsjamaan: not a problem in my case, since the branch is unique, but I see your point09:49
evantonI was thinking about building a branch mirror revision by revision, from the moment when the file I want to purge was included09:50
evantonand just recommiting each revision without including that file09:50
evantondoes this make sense?09:51
sjamaanI get this error message in my apache log:  No handlers could be found for logger "bzr". What's causing this?10:08
gouri'd like to use bzr with LP, but still keep using darcs for local development. now i'm curious if it is possible to configure bzr-explorer to use bzr-fast-import on certain repo and then push branch to LP. similar when pulling from LP (using fast-export) ?10:08
=== jelmer_ is now known as jelmer
gouri'm not sure whether hats in explorer are working here10:21
gourI read http://bazaarvcs.wordpress.com/2010/03/01/bazaar-explorers-killer-feature article but do not see docs about adding one's own hats10:29
sjamaanAfter installing the bzr desktop bundle on OS X, I don't see any new apps under Applications, and "bzr explorer" says "unknown command".  How do I open the explorer on OS X?11:03
goursjamaan: what bzr plugins says?11:03
sjamaangour: Just a sec11:04
sjamaangour: It lists qbzr, but not explorer11:07
goursjamaan: then it's not installed (properly)11:07
sjamaangour: Then what can I have done wrong?  I simply downloaded the desktop bundle and clicked through its installer11:08
sjamaanI retried using custom installation, but that doesn't make a difference11:08
goursjamaan: i do not know mac, but maybe it's not part of bundle?11:08
sjamaangour: I don't know mac either (helping out a colleague), but the docs all point to the bzr download page, and say you should download the desktop bundle as it contains explorer11:09
sjamaan"The latest Bazaar 2.x application bundles for OS X include Explorer. In some cases, you still need to install Qt binaries separately. See http://wiki.bazaar.canonical.com/MacOSXDownloads for details."11:10
sjamaan[http://doc.bazaar.canonical.com/explorer/en/install-osx.html]11:10
gourhmm11:10
sjamaanThere's only one desktop bundle too, only for the previous release11:10
sjamaanLuckily the OS X version matches my colleague's OS X version11:11
gour:-)11:11
sjamaanjeez, if I understand correctly the bundle is broken in some way and you need to go download a new version of the Qt SDK from the Trolltech site11:34
sjamaanWTF11:34
sjamaan[ http://www.oak-tree.us/blog/index.php/2009/05/12/pyqt-mac ]11:35
gour:-/11:36
sjamaanOr pay up and upgrade to 10.6, coz that works11:37
sjamaan:)11:37
sjamaanThat SDK is 550 Mb11:37
* sjamaan wonders how others were able to get bzr working on their macs11:38
sjamaanIt's not exactly obvious11:38
huntz0rWas wondering if someone could give me a real quick answer (not been able to find this out on the docs).  How can I "unstage" files or rather reset the current working tree? (I think that's the terminology)11:54
hmeland_huntz0r: I think you're looking for "bzr revert".11:57
huntz0rThats the one!!  Cheers hmeland_!11:58
=== salgado-afk is now known as salgado
=== mrevell is now known as mrevell-lunch
BjornWI'm looking for a howto for using bzr and I find the documentation not in depth enough. Is there another source available with more info?12:39
* SamB_XP hands BjornW a pair of 3D glasses12:41
gourBjornW: what did you try?12:41
BjornWI'm trying to setup a workflow for 2 people where one is on Windows and I'm on Ubuntu.12:42
SamB_XPBjornW: and ?12:44
gourBjornW: you can use it as both are on the same machine12:44
BjornWWhat I would like to achieve is have 1 master branch and merge from our local branches12:45
SamB_XPdoes the 'dozer have an SSH account on your machine ?12:45
BjornWSamB_XP: nope12:45
SamB_XPor on some machine you both have accounts on?12:45
BjornWSamB_XP: I think we can setup a server12:46
SamB_XPit's really quite simple to use bzr over ssh ... did you look at the wiki ?12:50
SamB_XPoh, and if by some chance the project you are (going to be) working on happens to be open source, you could just use launchpad instead of setting up your own server12:51
BjornWSamB_XP: would love to use LP, but this is not my project and the other person does not want to make this floss :(12:53
SamB_XPfear not -- that would only simplify it a teensy bit12:53
SamB_XPwell, I mean, once you get the permissions set up on the server so that you can both push to whatever branches you keep there12:56
SamB_XPthe issues involved are really no different from those you see with darcs or git, except that bzr works a lot better on Windows than I remember darcs working there :-)12:57
SamB_XPBjornW_: getting anywhere ?13:15
BjornW_SamB_XP: I'm now setting up my server. Just created a bzr repo13:15
BjornW_Trying to fix this issue for future collaboration as well :)13:17
* gour is quite satisfied with darcs, but will use bzr for publishing branches on LP13:17
SamB_XPBjornW_: http://wiki.bazaar.canonical.com/SharedRepositoryTutorial says that setting the permissions on a directory to "02770" should keep everything bzr puts under the directory group-writable13:19
SamB_XPat least, if you use bzr+ssh:// and not sftp://13:20
sjamaan:(13:20
SamB_XPsjamaan: ?13:21
sjamaanIt looks like my attempt to switch our company over to bzr has failed13:21
SamB_XPoh13:21
SamB_XPwhat are you using now ?13:21
sjamaansvn13:21
SamB_XPcould be worse!13:21
sjamaanTrue :)13:21
sjamaanThe GUI situation for OS X is horrible13:21
SamB_XPI heard about a professor who was making everyone in his class use CVS, and called the use of the CLI "unprofessional"!13:22
sjamaanheh13:22
idnarwait, what CVS GUI were they using then?13:22
sjamaantortoise?13:22
sjamaanIt's pretty good13:22
SamB_XPI think he was suggesting they use, say, Emacs' integration13:23
sjamaanhaha13:23
idnarTortoise is Windows only, isn't it?13:23
BjornW_SamB_XP: thanks!13:23
SamB_XPidnar: er ... maybe ?13:23
sjamaanidnar: yeah13:24
sjamaanMost schools are still 100% windows13:24
=== mrevell-lunch is now known as mrevell
BjornW_SamB_XP: how can I use a different user with bzr+ssh? Something like bzr+ssg://anotheruser@myserver.com/repos/trunk?13:58
BjornWbzr+ssh13:58
BjornW_how can I branch from a branch only a specific directory? Is this even possible?15:01
jelmerBjornT: no, this (partial checkouts) is not supported (yet)15:03
=== TheLyle is now known as IslandUsurper
=== salgado is now known as salgado-lunch
=== beuno is now known as beuno-lunch
NfNitLoopWhat do people in here generally use to handle 3-way merging when you encounter conflicts?16:20
NfNitLoopand how do you integrate w/ kde?  I remember last time I did this trying to call kdiff...16:21
NfNitLoopand it would open the .THIS, .OTHER, and .BASE files...16:22
NfNitLoopHrmm.  I guess I'm just a n00b at 3-way merging in general.16:22
* NfNitLoop does some more googling.16:22
jelmerNfNitLoop: I'm pretty sure there is some integration for things like kdiff in qbzr16:24
jelmerbut I have no experience with them16:24
NfNitLoopjelmer: so it does.  Thanks.16:31
NfNitLoopApparently I was just missing the point where 3way merge tools don't bother copying the modified .THIS over the versioned file for you.  I assumed I was doing something wrong. :p16:31
NfNitLoopOh well, it ended up being trivial anyway.  (My changes win!)  :p16:36
=== radoe_ is now known as radoe
=== deryck is now known as deryck[lunch]
=== salgado-lunch is now known as salgado
=== beuno-lunch is now known as beuno
=== mnepton is now known as mneptok
=== deryck[lunch] is now known as deryck
=== kfogel is now known as jimb_intestines
=== jimb_intestines is now known as kfogel
=== khmarbaise_ is now known as khmarbaise
aspiditesi can't seem to find a way to check out an earlier revision20:24
jelmeraspidites: bzr branch -r<revnum>20:25
Peng"bzr branch -r 123" "bzr revert -r 123" "bzr update -r 123"20:25
PengDepending on what you want.20:25
aspiditesjelmer: wow. that easy? how did i not see that. Thanks!20:25
Peng"bzr checkout -r 123" too! :D20:25
aspiditesbtw, is there a preferred method of resolving conflicts? doing "bzr merge" "bzr resolve filename" is what got me in this situation in the first place20:30
=== zekopeko_ is now known as zekopeko
aspiditesadding a bunch of <<<<'s and >>>'s to the file in question.20:30
NfNitLoopaspidites: the preferred method is to actually resolve your conflicts before running 'bzr resolve filename'.20:35
NfNitLoopresolve just *marks* the file as resolved, a human (i.e.: you) still has to make sense of the differnces and choose how to integrate them.20:35
NfNitLoopThis is not unique to bzr, by the way.  SVN and CVS have this same behavior.20:36
NfNitLoopThere are a couple ways to actually do the resolving, though.20:37
NfNitLoop1)  Read the file and remove the >>>> <<<< bits, making sure what code you leave in is how you want the merge to go.20:37
NfNitLoop1b) then run bzr resolve.   do that on all files.  Then do 'bzr commit' to finish your merge.20:38
NfNitLoopOr 2)  Use a GUI 3-way merge tool for more complicated merges.   as jelmer recommended to me earlier, qbzr has some integration for that.20:38
NfNitLoopso I did:  bzr qconflicts.   Double-clicked on each of my conflicts, merged changes in my GUI diff viewer.  Copied the .THIS file over the versioned file, then ran 'bzr resolve'.20:39
aspiditesNfNitLoop: thanks, i will try that20:44
aspiditesso if i understand correctly, the >>>'s etc are added during a merge to note conflicts. i then decide after sifting through the files which changes i want to commit, then do resolve on each of those files?21:00
Pengaspidites: You edit the file somehow to what you want, and then you use "bzr resolve" to tell bzr that you've resolved the conclits.21:01
PengErr.21:01
Pengconflicts*21:01
=== salgado is now known as salgado-afk
Milo-hey, I made a commit, and then pulled and had some conflicts which I couldn't handle at that time of day, so I did 'bzr revert', which for some reason removed my commit and all the changed made with it22:01
Milo-how do I undo revert?22:01
Milo-I know the files are reachable, since I had commited22:02
Milo-just like bzr uncommit lets you undo, so can bzr revert be undone?22:02
NfNitLoopMilo-: Did you do a 'bzr pull --overwrite'?22:03
NfNitLoopor a 'bzr merge'?22:03
Milo-actually, bzr update, checked my logs..22:03
NfNitLoopah, this is a bound branch?22:04
Milo-yes22:04
Milo-wasn't bound when I committed.22:04
NfNitLoopright, so you had local commits, then did an update, got conflicts, then reverted...22:04
NfNitLoopHrmm.22:04
Milo-yup22:04
NfNitLoopdid you do any commits after that?22:04
Milo-no22:04
NfNitLoopthat's good. :p22:04
NfNitLoopwhat does 'bzr status' say?22:04
Milo-says clean22:05
NfNitLoopHrmm.  Sounds like revert is acting differently on bound branches?   *reads*22:05
Milo-well, clean as in I have a lot of uncommitted changes, mainly binaries and such22:05
Milo-ahhh meh22:05
Milo-there is "dir.moved"22:05
Milo-I failed to see that .moved earlier:)22:06
NfNitLooplikely what you'll have to do is find the old commit in your log, resurrect it as a new branch, and merge those changes back in.22:07
Milo-Don't know how to get that commit from the log, since it is not visible22:07
NfNitLoopit's not in ~/bzr.log?22:07
Milo-oh, didn't know about such log :22:08
NfNitLoopyeah, so when you update a bound branch, it tries to merge your stuff with upstream.  When you reverted...22:09
NfNitLoopwell, usually revert only reverts files, did you do revert --forget-merges too?22:09
Milo-just 'bzr revert'22:10
NfNitLoopor do you have pending merges in your 'bzr status'?22:10
Milo-not according to bzr status22:10
lifelessNfNitLoop: 'bzr revert' will discard pending merges. 'bzr revert .' won't.22:10
lifelessjust FYI22:11
Milo-ah22:11
NfNitLoopoh?  Is that new?22:11
Milo-that explains it22:11
lifelessNfNitLoop: no22:11
NfNitLoopHuh.  I guess maybe I added the '.' when I ran it before without realizing.22:11
lifelessNfNitLoop: revert with no args reverts everything; revert of any path only reverts that path22:11
Milo-there were no harm done when it nuked some of my source code22:12
NfNitLoopMilo-: so when you ran revert, it reverted to upstream's branch.22:12
Milo-yeah seems so22:12
NfNitLoopand you no longer have a reference to your commit in your history.22:12
NfNitLoopso you have to go pluck it out of your log.22:12
Milo-no need22:12
Milo-I Only had spent 40 minutes on that feature anyways22:12
Milo-re-made the whole feature with better quality in less than 10 minutes :P22:12
NfNitLoophehe.22:13
NfNitLoopthat's how you'd get around that, though.22:13
Milo-came here to ask how it is done, in case I actually need something like that in the future22:13
NfNitLoopwithout the log... I'm not sure what you would do.22:13
NfNitLoopanyone else have a suggestion?22:13
fullermdheads22:20
NfNitLoopfullermd: ah, handy.22:28
NfNitLoopI figured there was a tool like that, but hadn't poked around bzrtools enough to find it.22:28
Kamping_Kaiserwow... i'm impressed with bzr-svn, merged in new changes without me doing anything.23:30
Kamping_Kaiserjelmer: thanks :)23:30
NfNitLoopKamping_Kaiser: isn't it awesome?23:30
Kamping_KaiserNfNitLoop: it just is.23:30
NfNitLoopWe use SVN at work and I use bzr for all my local branches for just that reason.23:31
NfNitLoopWell, plus I don't have to pollute the central repo w/ all my branches.23:31
NfNitLoopAnd when our SVN server goes down I can keep on working. :p23:31
Kamping_Kaiser:)23:31
Kamping_Kaiserinteresting. patches are replayed on top. wondered where the -rewrite dependency came from23:32
NfNitLoopKamping_Kaiser: it depends on how you do your development.23:33
NfNitLoopbut bzr-svn will warn you if they're not going to be linear when you try to push back to svn.23:33
Kamping_KaiserNfNitLoop: I only deal with r/o svn repos, so i haven't had a chance to encounter that yet23:34
NfNitLoopOh.  Then I'm not sure what you meant by "patches are replayed on top".23:35
NfNitLoop(or, for that matter, "the -rewrite dependency.")23:35
Kamping_KaiserNfNitLoop: bzr-svn in debian recommends bzr-rebase (which iirc is now bzr-rewrite)23:36
Kamping_KaiserNfNitLoop: and i was mistake about the replay, the changes were merged, but they don't have a commit associated with them23:38
wgrantKamping_Kaiser: If the branch you merge from doesn't exist on the svn server, then its revisions can't be recovered when you check out trunk again.23:45
wgrantIt results in a so-called 'ghost' revision.23:45
Kamping_Kaiserwgrant: itdoes exist - i pulled it with svn into its own branch, and with bzr into a branch i modify23:46

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