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

AmanicAdoes anybody know if there is a way to determine weather a revid is between 2 other revid's in the revision history?01:35
jelmerAmanicA, there's no standard version01:36
jelmers/verison/function/01:37
jelmerbut you can of course iterate over the ancestors of revision 1 and look for your revision until you hit revision 201:37
AmanicAis there a way though?01:37
AmanicAdo you know of an example I can find somewhere01:38
AmanicA(eg. which command does something like this)01:38
jelmernot aware of anything of the top of my head, sorry01:38
AmanicAthx01:38
jelmeriterating over ancestors should be pretty easy with a Graph object though01:40
AmanicAjelmer: thanks a lot, I got it working! :)02:36
lifelessAmanicA: graph.heads() perhaps too03:33
AmanicAlifeless: thanks, I ended up using graph.is_ancestor which claims it uses graph.heads()03:40
AmanicA(its used for `bzr tags -r 1..2` which I submitted two seconds ago :)03:41
cammoblammoI'm running bzr 1.5 on Debian. I mainly use it for syncing a heap of text files between a few machines, although I also follow a couple of software projects with it as well. Is there anything to be gained by compiling and installing 1.10?03:56
lifelesscammoblammo: speed04:02
cammoblammolifeless: Speed's not a huge factor, although it's always nice. I have had problems pulling from a project's server lately though---is that a possible cause?04:11
lifelesscammoblammo: anything is a possible cause. details needed to analyse04:12
cammoblammolifeless: I knew you'd say that ;-) I'll try to replicate it when I get a chance. It's not a problem.04:13
=== mark1 is now known as markh
=== fsagsagsa is now known as pygi
=== fta_out is now known as fta
Enisseohi everyone!14:57
EnisseoLast time I came here, I've been suggested to use the bzr upload plugin, and it works perfectly14:58
Enisseoexcept one thing14:58
Enisseothe ftp upload makes all the uploaded files having a specific "chmod"14:59
Enisseowhich prevent the server to execute them14:59
Enisseoso I need to use SSH to change the "chmod" of these files14:59
EnisseoCan the plugin (or bazaar) do this itself?15:00
Enisseo(info: I upload from Windows to an Unix ftp server)15:01
LarstiQEnisseo: possibly, but I'm guessing this is going to be very ftp server dependant.15:01
EnisseoLarstiQ: you mean that this is a global option for all bzr branches?15:03
LarstiQEnisseo: no, I mean that it may not always be possible to chmod files on an ftp server, since there are a lot of broken ftp servers out there.15:04
LarstiQEnisseo: can you ftp manually to your server, and chmod them that way, instead of sshing in?15:04
LarstiQEnisseo: if not, then there isn't much that can be done unfortunately.15:05
EnisseoLarstiQ: well, what I want is to use the bzr upload plugin, which is great but does not apply the expected rights to the file it uploads15:06
* LarstiQ nods at Enisseo 15:06
LarstiQEnisseo: so could you tell me if it is possible to chmod using ftp?15:07
LarstiQEnisseo: another option for you personally, would be to use sftp instead of ftp15:07
duckxHy15:17
duckxI was wondering if there is any way to unsplit a tree ?15:17
LarstiQduckx: if you did `bzr split` before, `bzr join`15:18
duckxOk thx ;)15:18
duckxI have a try now15:18
duckx-> bzr: ERROR: Cannot join apache2/.  Trees have the same root15:26
duckxIn my case bzr is used to store revision for the /etc of my servers15:27
duckxI initialised /etc (bzr init) & /etc/apache2 (Both contains a .bzr subdirectory)15:27
duckx-> I converted the /etc directory to the --dirstate-with-subtree format ...15:28
jelmerduckx: there should't be a need to use a -subtree format, -rich-root (e.g. 1.9-rich-root) should be sufficient15:28
duckxbzr version is 1.515:28
duckxok15:28
jelmerin that case, --rich-root-pack probably15:29
duckxok15:29
duckxLet me retry15:29
duckxWell quite logicaly I hit this :15:30
duckxbzr: ERROR: Cannot convert to format <RepositoryFormatKnitPack4>.  Does not support nested trees15:30
duckxIn both trees (/etc & /etc/apache2) Tree root is .15:32
duckxWhich could explain the thing (bug) I hit, as the path are not expanded15:32
* LarstiQ only knows how to change the treeroots via bzrlib15:32
duckx;)15:33
LarstiQduckx: I suppose you have multiple servers?15:34
duckxIndeed ;)15:34
duckxChanges on the servers are then send to mailing list through the mail plugin15:35
jensenHi. Do I need to open up for any special port numbers, in order to access a remote bazaar repository, using the bzr+ssh protocol? (other than port 22)15:35
duckxNop15:35
duckxI am on the server15:35
LarstiQjensen: no, it's just ssh15:35
jensenLarstiQ: hum,15:35
duckxIt is local commit15:35
jelmerduckx: you can't go back after you've upgraded to -subtree, unfortunately15:35
duckxThat is quite logical15:36
LarstiQduckx: how willing are you to experiment?15:36
jelmerduckx: What are you trying to do exactly though? A one-time join? Since it'll be problematic keeping "apache2" up-to-date afterwards15:37
duckxWell, that a kind of test server15:37
duckxHistory of revision are not so important15:37
jensenLarstiQ: I've made a ssh tunnel to the remote machine (which is not directly accesible from my current location), I am able to successfully connect to it with a standard ssh client, but for some reason, bzr fails, with an "ERROR: Connection close: ..."-message.15:37
jelmerduckx: you'd want "bzr join --reference" for that, which is still experimental15:37
duckxok lets test15:37
LarstiQjensen: the two tree roots are still the same then?15:38
jensenyeah, it should be.15:39
duckxIndeed bzr: ERROR: Cannot join apache2/.  Trees have the same root id.15:39
LarstiQehm15:39
LarstiQs/jensen/jelmer/15:39
LarstiQduckx: is it an option to `bzr init` and use a rich-root format from the start, so that it will set the tree root to something unique?15:40
LarstiQduckx: if not, you could 'from bzrlib.workingtree import WorkingTree; WorkingTree.open(".").set_root_id("something-unique")'15:41
jensenLarstiQ: hehe,15:41
LarstiQjensen: which client are you using to set up the tunnel?15:41
jenseni'm using putty.15:41
duckxHmm, I thing I will get ride of the revision on my apache2 conf, and add them to the /etc root tree15:41
jensenLarstiQ: is that a problem?15:42
LarstiQjensen: I've seen some problems in this area before, having to do with aliases of tunnels15:42
jensenaliases?15:42
LarstiQduckx: or that :)15:42
LarstiQjensen: doesn't ring a bell? good :)15:42
jensenHum, I can see, that i get far enough, to get the servers key fingerprint...15:43
jensenLarstiQ: hehe15:43
LarstiQjensen: did you check ~/.bzr.log for more information on the connection close?15:43
LarstiQjensen: can it find bzr on the server?15:43
jensenLarstiQ: No, just a sec.15:43
jensenLarstiQ: I believe so, the exact same command works perfectly, when i remote desktop to a desktop on the internal network.15:44
jensenLarstiQ: hm, is the ~/.bzr.log located some place else on windows?15:45
jensen+file15:45
LarstiQyes :)15:45
jensen:)15:45
LarstiQiirc it says where if you run `bzr --version`?15:46
jensen1.915:46
jensenoh, sorry15:46
jensenmisread that. :)15:46
jensenyes, it does, thanks.15:46
jensenhm, nothing but a Traceback, orginating in bzrlib/smart/message.pyo, L247, does'nt really ring a bell for me.15:49
LarstiQcould you pastebin me the traceback?15:49
jensenOf course, just a sec.15:49
jensenLarstiQ: http://pastebin.com/m257da06d15:51
jensens/<username>/username/, s/<bzr-path>/full-path/ ...15:52
LarstiQoh feh15:52
LarstiQand not a bzrlib install with source15:52
jensenThose should be correct, again, same command works internally on the network.15:52
jensenLarstiQ: should I get that?15:53
LarstiQjensen: hmm, first try if bzr gets to log something on the server15:53
jensenhm, doesn't seem like it..15:57
duckxMe again ...15:57
duckxI removed my .bzr in the subtree ...15:57
duckxWorks fine now ;)15:57
jensenLarstiQ: No activity when I make a new attempt.15:58
LarstiQjensen: I'm having my doubts it is finding a bzr to execute at the remote end15:59
jensenLarstiQ: it is possible, but it seems strange, that everything works fine from the other desktop.15:59
LarstiQjensen: does that desktop have the same ssh tunnel?16:00
jensenNo, it is on the same internal network, so it can connect directly to the server.16:01
duckxbzrlib.errors.InvalidURL: Invalid url supplied to transport: "file://hestia/etc/": local urls must start with file:///16:24
duckxhmmm, this is not rfc compliant dudes ;)16:24
duckxIn my case it would be really nice if the host could appear in the base info of a branch16:26
LarstiQduckx: interesting16:30
LarstiQduckx: what would that do if the host is not the local host as well?16:30
duckxLarstiQ: I have got no idea ...16:35
duckxMay be the best test would be to use urllib2 & have a try16:35
LarstiQduckx: sounds fair16:36
duckxhttp://pastebin.com/d65b05eb116:39
duckxHere is the trace I have for an unknown host lookup16:39
duckxWorks fine with the right hosts16:39
LarstiQduckx: will you submit a patch?16:41
duckxHmm, first I would like to determine the best to implement it16:42
duckxBecause putting it by default would break one workflow16:42
duckxscp your tree to another host16:42
LarstiQit is only used in bzrlib.urlutils.local_path_from_url16:43
LarstiQ(the posix and win32 variants)16:43
LarstiQduckx: right16:43
duckxbzr will break if the host could not be lookup16:43
duckxI am more thinking to a switch to init ....16:44
duckxLike add hostname16:44
duckxsorry --add-hostname or something16:44
LarstiQmaybe we should take a step back16:44
LarstiQwhat is it you want to accomplish?16:44
duckxWell, when I commit my modification on my server (Still on the /etc tree) the branch.base is append to the mail subject16:45
LarstiQright16:45
duckxthat is on my case file:///etc16:45
duckxEach time I commit on a server I should specify on what server I was working on16:46
duckxeg: Subject: MY_HOST I did some stuff on it16:46
duckxSo I tried to find out a way to add the server automaticaly16:47
duckxThat has a sense only if you work locally16:47
LarstiQmaybe it is a better idea to add an option to the emailing hook?16:47
duckxYeah, but options are parsed from the bazaar.conf configfile16:47
duckxWhere you only have static information16:47
LarstiQ'include hostname in email subjects'16:48
duckxlol ;) That is what I was trying to say ;)16:48
duckxSo best way is to patch email plugin right16:48
LarstiQI think so16:48
duckxK16:48
fullermdAt one time, I think lifeless discussed adding templating capability to the email thingy...   I don't know how far that ever got.16:48
fullermdBut if it were completeish, adding a %h escape or something wouldn't be much work I'd think.16:49
LarstiQthat would the more general step16:49
duckxWell, I am ready to hack a bit on email module ...16:50
duckxBut I prefer to follow your instructions/point of view ;)16:50
LarstiQduckx: if you have enough time, see if there has been work done on templating, if not, ask lifeless about his plans. And then implement them :)16:51
duckxShort term could be a commit_include_host option in the config file  ?16:52
LarstiQsomething like that, yes16:52
duckxok16:52
LarstiQI'd say subject_include_host16:53
duckxOk I am on it ;)16:53
LarstiQduckx: you'll be at fosdem I assume?16:53
duckxlol, I don't even know where it takes place ;)16:53
LarstiQBrussels!16:54
duckxWell, it is not far away ...16:54
duckxMay be it will be a good time to find a job @ canonical ... ;)16:54
duckx-> my current job breaks my xxx16:54
duckxI am currently working @ a banck doing some wired Unix Admin tasks ...16:57
fullermdBetter than wireless admin tasks  ;>16:58
duckxOk patch ready ;)17:16
duckxLarstiQ: What the best way to submit it ?17:18
LarstiQduckx: the email plugin README doesn't mention anything?17:19
duckxLet me check17:20
duckxThis should be send to the mailing list ;)17:20
LarstiQpl17:30
LarstiQok17:30
LarstiQmake sure to include in the subject that it is for the email plugin17:30
duckxok17:37
LarstiQduckx: bzr/doc/developers/HACKING.txt on the code review process might be helpful too17:38
duckxOk let me have a look at it17:46
duckxTime to go see my parents17:56
duckxThx for your help dudes !17:56
duckxSee you17:56
LarstiQduckx: have fun!18:02
dilemahi19:07
dilemai have a problem to get a connection via ftp to my webspace19:11
dilemai have no chance to init my webspace as a branch19:12
dilemaany idea19:38
thumperdilema: so how do you get access?20:06
dilemaper ftp20:06
thumperdilema: can't you just go bzr init ftp://whatever?20:07
dilemamatthias@matthias-laptop:/var/www/mydomain.de$ bzr init ftp://mydomain.de@mydomain.de/home/www/mydomain.de/htdocs/test/test20:10
dilemathumper, he required a pw20:10
dilemathumper, he gets it20:11
dilemathumper, then nothing happen20:11
thumperdilema: when you say nothing happens, does it hang?20:11
dilemathumper, i mean no feedback20:11
thumperdilema: I'm not sure if you normally get feedback...20:12
dilemathumper, ok20:12
thumperwhat if you then go `bzr info ftp://mydomain.de@mydomain.de/home/www/mydomain.de/htdocs/test/test`20:12
dilemathumper, wait ..20:14
dilemathumper, ok it looks nice, or? -> branch root: ftp://mydomain.de@mydomain.de/home/www/mydomain.de/htdocs/test/test/20:14
dilemathumper, and sthing like Standalone branch (format: pack-0.92)20:15
garyvdmHi. What work around are there for bug 302698?20:15
ubottuLaunchpad bug 302698 in bzr ""BzrCheckError: Internal check failed: Newly created pack file <bzrlib.repofmt.pack_repo.NewPack object at 0x2e23f90> has delta references to items not in its repository:" on pushing a stacked branch" [High,Confirmed] https://launchpad.net/bugs/30269820:15
thumperdilema: yes you have a branch there20:15
dilemathumper, so i can work with20:15
thumpergaryvdm: not sure, but when you find it, I'd like to know20:15
thumperdilema: yes20:16
dilemathumper, thx ;)20:16
thumpergaryvdm: I'd ask jam when he arrives, or poolie20:16
garyvdmthumper: I actualy know 2, but they are both pain full. 1. Delete branch and start again. 2. Install old version of bzr (1.9).20:17
garyvdmI'm trying to find a deb for 1.9 intrepid. I'm only able to find 1.10.20:21
=== asac_ is now known as asac
spivgaryvdm: installing 1.9 isn't a good workaround; 1.9 has the same problem, but doesn't notice it.  i.e. it appears to succeed, but makes a repo with missing data that will cause problems later on.21:55
spivgaryvdm: although the traceback in that bug involves autopack, which suggests the repo already had this problem in it.21:57
spivgaryvdm: if there's a more recent traceback, could you pastebin it/21:57
spiv?21:57
garyvdmHi spiv.22:02
spivgaryvdm: hi22:03
garyvdmWhich repo would have the problem? The repo that I'm pushing from, or the repo that I'm pushing to, or the repo that I'm skated on?22:03
garyvdm*stacked22:04
spivThe one you are pushing to.22:04
garyvdmI can reproduce the bug as follows:22:05
garyvdmDelete the branch that I'm pushing to (lp:~qbzr-dev/qbzr/threadless-throbber/)22:05
garyvdmpush -r -1 (gets stacked on lp:qbzr)22:06
garyvdmpush - get error22:06
spivCan you pastebin the traceback for that error?22:06
garyvdmok22:06
spivThe one in the bug involves autopacking, but a fresh push shouldn't.22:07
garyvdmhttp://pastebin.com/m2284da7322:10
spivgaryvdm: and that's with 1.10?22:13
spiv(final?)22:13
garyvdmYes - deb from ppa22:13
spivHuh, interesting, it hasn't taken the code path that it's supposed to if the target repo is stacked on another.22:15
spivi.e. it's taken the code path for unstacked repos.22:15
garyvdmSorry - that went over my head.22:16
spivThat's ok :)22:16
spivBasically, it looks like that part of the code thinks the target is not stacked.22:17
garyvdmok22:17
spivHmm, lp:qbzr is in pack-0.92 format, which means that's probably correct.22:18
spivWhat does info -v report in your local branch?  (pastebin again)22:18
garyvdmAh - I've recently changed the format on my local. When that stack happend - the repo was using 1.922:20
spivOk, that's interesting.22:20
garyvdmhttp://pastebin.com/d2d1ed0f622:21
spivCan you tar up the local repo and put it somewhere?  (maybe chinstrap?)22:21
garyvdmok22:21
spiv(I'm thinking that perhaps I was wrong, that this might actually be an issue in your local repo after all)22:23
garyvdmSorry - whats the url for chinstrap22:23
spivgaryvdm: ah, nevermind, just mail it to me at andrew.bennetts@canonical.com22:24
garyvdmok22:24
garyvdmOk - I've sent it. I'm in South Africa - so it will get to you in Telkom time.22:26
garyvdm3.4mb22:26
spivOk.  Thanks!22:28
spivgaryvdm: got it22:32
garyvdmI'm busy trying the following: I've done an upgrade --1.6 on both repo and branch, and now trying to see if I can reproduce.22:34
garyvdmThats local branch and repo.22:34
garyvdmOk - That worked22:37
spivgaryvdm: interesting.  I haven't been able to reproduce so far.22:40
garyvdmI upgraded to --1.9 and then pushed a new rev and it also worked. I'm confused now.22:40
garyvdmOk - let me try one more thing - going afk22:40
garyvdmspiv: Revised steps to reproduce:22:50
garyvdm1 - delete remote branch22:50
garyvdm2 - *use bzr 1.11dev rev 3409*22:51
garyvdm3. push -r -122:51
garyvdm4. push - get erro22:51
garyvdmstep 4 can be with 1.11 dev or 1.1022:51
garyvdmbut step 3 must be with 1.11dev22:52
spivgaryvdm: I'll try that22:53
garyvdm*rev 390422:54
spivgaryvdm: I have r3904, but I can't seem to reproduce :(23:04
garyvdmOk - I did step 3 on my windows box (cause I'm running 1.11dev on it)23:05
garyvdmI don't know what's different there.23:06
garyvdmI'm going busy branching bzr.dev to my ubuntu box to see if I can reproduce it.23:07
spivgaryvdm: hmm.  so from a different source repo?23:08
garyvdmYes23:08
spivgaryvdm: try running "bzr check" on that repo or branch, just in case.23:10
garyvdmSomeone else suggestive that when I first had the problem. It came up clean23:11
spivYeah, I thought it probably would.  It was worth checking :)23:12
garyvdmI was not able to reproduce on my ubuntu box. I'll sign in to irc from my windows box.23:23
GaryvdMspiv: I was not able to reproduce on ubuntu, but I was able to reproduce on windows. Here is another pastebin: http://pastebin.com/mc2183f123:31
spivGaryvdM: it seems likely that there's something different about that repository.23:36
GaryvdMI ran bzr check again, and noticed something I didnot notice before: 4 inconsistent parents (http://pastebin.com/m79361e1)23:36
spivGaryvdM: likely it has delta records at different points than the other one?23:37
GaryvdMCan I send you another tar?23:37
spivSure.23:37
spivYou can correct the inconsistent parents with bzr reconcile IIRC.23:38
spivMy guess is that that isn't the issue, but I'm not very confident about that.23:38
=== verterok is now known as verterok|away
GaryvdMspiv: reconcile did not fix.23:55
GaryvdMDid you get my tar?23:55
spivGaryvdM: ah, yes23:56

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