/srv/irclogs.ubuntu.com/2008/12/25/#bzr.txt

jelmerJc2k, re00:12
jelmerJc2k, k00:14
Jc2k :)00:17
Odd_BlokeMerry Christmas, #bzr. :)01:46
jelmermerry christmas Odd_Bloke :-)02:00
SnowyOwlHello colleagues, and Merry Christmas!04:05
SnowyOwlI keep getting 'ImportError: no module named commands' with TortoiseBzr from bzr-setup-1.10-1.exe04:07
SnowyOwlon several systems, most of them were working well with bzr-setup-1.9.exe04:08
=== Mario__ is now known as pygi
=== mark1 is now known as markh
=== mark1 is now known as markh
Spazmerry christmas :)13:17
=== magcius_ is now known as magcius
Jc2kmerry christmas.13:44
jelmermerry christmas :-)13:44
jelmerhi Jc2k13:44
Jc2k*blinks*13:44
Jc2ki was just going to ping you jelmer :)13:45
Jc2kpush and clone against server.py are working again13:45
jelmerah cool13:49
* jelmer merges13:49
Jc2khopefully pull too, really need tests gah :p13:49
magciusIs bzr daemonless?14:00
jelmermagcius, not sure what you mean with daemonless14:02
magciusDoes there need to be a server running like traditional VCS toold?14:02
magciustools*14:02
jelmermagcius, you can pull / push to a remote server without a bzr-specific daemon necessarily running on that server14:02
magciusjelmer, so it uses WebDAV?14:03
jelmermagcius: But you can optionally use a server on the remote side, for better performance14:03
jelmermagcius, the main "dumb" transport that seems to be used is sftp14:03
jelmermagcius, ftp is also supported out of the box, and there is a plugin for webdav14:03
magciusAh. Okay.14:03
jelmerJc2k: I'm working on getting packs fixed, and on supporting fetch from remote in bzr-git14:06
Jc2kjelmer: okie dokie. i'm tempted to move the pack generation out of server.py and make client.py use it14:06
jelmerJc2k: Go for it :-)14:07
Jc2kjelmer: im a bit cautious of moving anything to pack.py as i need to go via the repo object.. dont like the bouncy-around-dependencies :\ am i just being over sensitive, or shall i add packwriter.py/packbuilder.py?14:09
magciusIs there a bzr emacs ... err.. hook?14:09
asabilmagcius: there is the emacs dvc mode iirc, and it does support bzr14:10
jelmerJc2k, yeah, same here. What do you need the repo object for?14:10
magciusasabil, not according to this here HOWTO14:11
asabilmagcius: http://www.xsteve.at/prg/emacs_dvc/dvc.html#table14:11
Jc2kjelmer: if i'm building a pack, i walk the dag to work out what objects to send. currently i use the repo both for the tree() /commit() methods and because in theory i might be generating a pack out of loose objects14:12
jelmerJc2k, perhaps just extract out a function that works out what objects to send based on a list of shas and a callback for get_object ?14:13
Jc2kit would need def pack_contents(want, have, get_commit, get_tree)..14:14
Jc2ki guess i could also follow the bzr pattern and have a wrapper on the repo object that fills in get_commit and get_tree for me14:15
iahello. for example, i create branch from other place. does exist some way to check for available changes in origin branch without 'bzr update' run?14:16
jelmerJc2k, You can just use get_object() rather than get_commit / get_tree; they do the same thing14:18
jelmeria, "bzr missing <url>"14:18
iajelmer: oh, thank you very much. that's exactly what i looking for :-)14:21
=== magcius_ is now known as magcius
=== magcius_ is now known as magcius
=== Mario__ is now known as pygi
jelmerJc2k, updating my samba tree is actually already pretty quick16:36
=== magcius_ is now known as magcius
=== magcius_ is now known as magcius
=== magcius_ is now known as magcius
sohailfor bzr, how can I get the last checkin to a specific directory?18:38
sohailwith svn, I'd just do svn log /path/to/dir | head -n 1 or something18:38
magciussohail, do you want the checkin time or the revision number?18:40
sohailmagcius, I want the revision number18:40
sohailI tried bzr revno /path/to/dir but that gives me the revno for the whole repo not that directory18:40
beunosohail, changes to the dir, or anything in it?18:41
sohailbeuno, anything in it actually18:41
magciusI think each revision is a branch, so it can't distinguish non-changed files18:41
beunosohail, right, I don't think you can do that with the bzr client18:41
beunomaybe bzrlib, if you're into python18:41
sohail:-O18:41
sohailoh well, I need it to overcome a slight design miscalculation in my build automation but I'm still surprised18:42
sohailI'd rather fix that than figure out bzrlib :-)18:42
sohailthanks for your help!18:42
beuno:)18:42
beunofile bugs, everyone lines bugs in bzr18:43
sohailI assume you mean to say likes bugs18:44
beunoah, yes18:44
beunoI do18:44
A_Bachim looking for configuration eclipse + bazaar plugin help...19:13
=== asac_ is now known as asac
mtaylorlifeless: around?21:20
bewst1bzr-svn is giving me headaches.  I'm trying to push and it tells me the branches have diverged and I need to merge first, which is certainly false.  I merge anyway and it says "nothing to do," and I loop back to the beginning :(.  Any help?21:58
jelmerbewst1, did you commit your merge?21:58
jelmerbewst1, or do you perhaps have any local changes?21:59
jelmerbewst1, what version of bzr-svn are you using?21:59
bewst1jelmer: I don't know what it means to "commit a merge."  I did commit one file that I have changed, but I still have some changed files in my working copy that I don't want to push.  So, yes, I have local changes22:01
jelmerbewst1, and the branch you're pushing to has no changes you don't have locally?22:01
bewst1That's correct22:01
bewst1double checking...22:02
bewst1Why does everything seem to go so slowly?22:02
bewst1Yep, pull says "no revisions to pull" and merge says "nothing to do."22:03
jelmerbewst1, and you're pulling from the same location that you're pushing to?22:03
jelmerbewst1, what does "bzr missing <push-url>" say?22:03
bewst1yes, pull and push locations match22:06
jelmerbewst1, what version of bzr-svn are you running?22:06
bewst1bzr missing says I have 4 extra revisions.22:06
bewst1How to check the bzr-svn version?22:06
jelmerbewst1, "bzr plugins" should print it22:07
bewst10.4.1322:07
bewst1It's what Intrepid gives me by default22:07
bewst1I don't know what this "4 extra revisions" business is; I'm going to look at it22:08
bewst1Oh, it also says I'm missing 13 revisions22:08
jelmerbewst1, that would explain the divergence22:09
jelmernot sure why pull doesn't do anything though22:10
bewst1How is that possible?  Those revisions are basically the whole history of the file22:10
bewst1Maybe I did a lightweight branch?22:10
jelmerbewst1, did you change the branching scheme recently?22:10
jelmerbewst1, is the branch public?22:10
bewst1Sorry, n00b.  What is a branching scheme?22:10
bewst1The svn branch is not public22:11
jelmerbewst1, if you don't know I guess you haven't changed it :-)22:11
bewst1the bzr branch is in a local repo on my machine22:11
bewst1I don't know from public bzr branches22:11
bewst1The svn branch is... a branch of some svn trunk.  The 13 branches missing appear to be those that were made on trunk before the svn branch22:12
bewst1Does that help?22:12
bewst1The 4 "extra" revisions appear to be the ones made in the svn branch plus the one I committed to my bzr repo and am trying to push22:14
jelmerbewst1, if you run "bzr missing --show-ids" are the revision ids for the revisions the same?22:14
bewst1Sorry, the same as /what/?22:15
jelmerbewst1, the revisions in the svn branch as reported by "bzr missing"22:16
jelmersince "bzr missing" would report some revisions twice in the "missing" and the "extra" listings22:17
bewst1?? without the --show-ids, no ids are reported.  Do you mean "are the revisions numbers the same?"22:17
jelmerbewst1, no, the revision ids22:18
jelmerbewst1, if you run "bzr missing --show-ids", it should report a list of revisions that's missing locally and a list of revisions that's extra locally22:18
bewst1jelmer: yes22:18
jelmerbewst1, for each revision it should print the revision id22:18
bewst1ues22:18
bewst1yes22:18
bewst1compare that id with what?22:18
jelmerbewst1, if I understand you correctly, some revisions are listed in both the first and the last list22:19
bewst1first? last?  Sorry, I don't know what you mean22:19
jelmerbewst1, some revisions are in both the "locally missing" /and/ the "locally extra" list, right?22:19
bewst1no22:20
jelmernot sure I follow you then22:20
bewst1The "locally extra" list contains revisions made in the svn branch, plus the one I committed to my local bzr repo.  The "locally missing" list contains revisions made in the svn trunk before the svn branch point22:20
bewst1Taken together that appears to be *all* of the revisions of the one file that I changed in the local repo22:21
bewst1Sorry, I should have said "directory," not "file"22:22
jelmerbewst1, can you pastebin the "bzr missing" output? just the revision-id for each commit should be sufficient22:22
bewst1http://dpaste.com/102508/22:26
bewst1The only revision made in the bzr repo is on line 122:27
bewst1Lines 2-4 are revisions made to the svn branch22:27
bewst1The rest are revisions made to the svn trunk22:27
bewst1jelmer: nothing jumps out at you?22:29
jelmerbewst1, it does actually22:29
jelmerbewst1, the branching scheme has changed underneath you22:30
bewst1possibly when we upgraded to svn 1.5?22:30
bewst1I'm still not sure what a branching scheme is ;-)22:31
jelmerbewst1, (fwiw, this bug is fixed in bzr-svn 0.5, which no longer has branching schemes)22:31
jelmerbewst1, it should be possible to work around it though22:31
bewst1Why don't I just upgrade?22:32
bewst1I'd rather get something that works than get involved in workarounds.22:32
jelmerbewst1, 0.5 is still in development, and requires bzr 1.1022:32
jelmerbewst1, the workaround shouldn't be too bad22:32
bewst1listening22:33
jelmerbewst1, in ~/.bazaar/subversion.conf, set "branching-scheme = trunk2" in the section [bbad15d5-7c10-0410-ba9e-f711d5c1d17a]22:33
bewst1How is it possible that the branching scheme, which is not a concept I even know about, has changed?22:33
jelmerbewst1, bzr-svn detects it based on the URL used22:33
bewst1Oh... well, there's a little problem with the svn+ prefix which I have occasionally ommitted and then added back22:34
bewst1bzr-svn complained that it was deprecated, but then wouldn't do something unless I supplied it.22:34
jelmerbewst1, yeah, that's a known bug (in bzr itself)22:35
bewst1OK, so I'll try this workaround22:36
jelmermaybe also set "branching-scheme-mandatory = True"22:37
bewst1jelmer: same result without mandatory.  Will try that next22:38
bewst1btw, it changes the branching scheme back to what it was when it fails22:39
bewst1It's not failing... yet.  But damn it's slow22:40
bewst1Finally it asked for my svn password twice and failed with an internal error.22:41
jelmerinternal error?22:41
bewst1http://dpaste.com/102509/22:42
bewst1I've gotta say, this first encounter with bzr is a bit of a nightmare.22:43
jelmerbewst1, wait.. weren't you trying to push to boost-consulting/site/branches/seo ?22:44
bewst1I know DVC is supposed to speed up development, but I could've gone a long way further with SVN by now.  Is it worth trying to figure this out, or should I come back when 1.5 is out?22:44
jelmerbewst1, I would recommend trying again when bzr-svn 0.5 is out22:45
bewst1Well, I was in a subdirectory of seo called utils, and was trying to push that22:45
* LarstiQ would say trying to back on svn is the main source of pain here22:45
jelmerbewst1, that prevents all this mess with branching schemes22:45
jelmerbewst1, you can't push subdirectories in bzr22:45
jelmerbewst1, at least that explains why it was switching to a different branching scheme22:46
bewst1Oh, I totally messed this up.  I'm an idiot.  Let me try again.22:46
jelmeryou probably want to push to boost-consulting/site/trunk I think?22:46
jelmerbewst1, you're not an idiot, but bzr-svn 0.4 exposed some internals that really should be hidden from the user..22:47
bewst1I was even pushing to the trunk.  Gah.  But now it says no new revisions to push22:47
bewst1Do I need to revert the branching scheme?  I didn't save it :(22:48
jelmerbewst1, if you push to trunk it should use the right branching scheme22:48
bewst1jelmer: I didn't want to push to trunk!22:48
bewst1I was being a fool22:48
jelmerbewst1, are you sure the revision isn't in svn yet?22:48
bewst1Will look.22:48
bewst1it is!22:50
bewst1OK, will try some more.  Any idea what the release date for 0.5 /might/ be?22:51
jelmerbewst1, roughly a month from now I hope22:51
bewst1That might be worth hanging on for22:51
jelmerthere is a release candidate out that people found a few bugs in, I plan to fix those and release another RC in a week or two22:51
bewst1kewl; thanks22:52
jelmerunless any significant bugs come up in that RC, I will release that as 0.522:52
bewst1Does bzr-svn interoperate properly with svn 1.5 branch/merge tracking?22:53
jelmerbewst1, somewhat22:53
jelmerbewst1, only for full merges (no cherrypicking)22:53
jelmerbewst1, since none of the main DVCS'es do cherrypicking tracking22:53
jelmer(yet)22:53
bewst1Sorry, what constitutes a full merge?22:53
jelmerbewst1, if you "svn merge" a branch, it will track that22:54
jelmerbewst1, if you "svn merge -c" a specific revision only or a revision range, it won't22:54
bewst1jelmer, OK, thanks.  So if you think you might want to do something like that, just create separate bzr branches for each such separate change?23:00
jelmerbewst1, for example23:07

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