/srv/irclogs.ubuntu.com/2008/01/01/#bzr.txt

Pengbzr: ERROR: xmlrpclib.Fault: <Fault -1: "Unexpected Zope exception: Unauthorized: (<zope.app.publisher.xmlrpc.metaconfigure.BranchSetAPI object at 0x2aaabec5bd50>, '__call__', 'launchpad.AnyPerson')">01:06
PengWheee!01:06
PengApparently the launchpad plugin really wants my password.01:06
lifelessthats launchpad wanting it01:22
johnfIf I have a smart server whats the best way to have it send emails when commits are made? I was using bzr_hookless_email but it seems to have some issues with 1.0. Want to know if its the best way to do this sort of thing before fxiixing it04:43
datojohnf: what issues?04:46
datojohnf: it should work, but maybe you'd need to restart it if you upgrade your branches04:46
johnfI have it running out of cron04:46
johnflet me paste the bactrace somewhere04:47
datoyes, please04:47
dato!pastebin04:50
ubotupastebin is a service to post large texts so you don't flood the channel. The Ubuntu pastebin is at http://paste.ubuntu-nl.org (make sure you give us the URL for your paste - see also the #ubuntu channel topic)04:50
johnfdato: http://paste.ubuntu-nl.org/50358/04:53
johnfHavn't looked into the problem myself yet. Was wondering firstly if this is the best tool to use04:53
datojohnf: well, I wrote it, so I may be a bit biased. I find it convinient when it's difficult or cumbersome to get every committer to install and configure bzr-email themselves.04:54
johnfhehe04:55
johnfyeah I have the same problem.04:55
datojohnf: hm, let me try reproducing your problem.04:55
datojohnf: ok, got it, thanks for reporting!05:02
datojohnf: you can pull a fix from http://chistera.yi.org/~adeodato/code/bzr/bzr-hookless-email/, the launchpad branch is a mirror and will take a bit before it gets the fix.05:03
johnfdato: no problems. Was just having a look myself. Looks like you might need to lock the repository?05:03
datoyeah, that's what I did. looks like bzr-email will need updating as well. (that part of bzr-hookless-email came from bzr-email)05:04
lifelessjohnf: patch bzr to send a 'commit has occured' at the end of the transaction to the smart server05:16
lifelessjohnf: its on the TODO list05:16
lifelessjohnf: or perhaps if you really mean 'when the branch tip advances' patch bzr-email to hook into BranchHooks.set_revision_info and do emails then05:17
lifelessboth will run on the server and don't need a cron job etc05:17
lifelessjohnf: its really waiting for someone that wants it to do it :)05:17
lifelessalso, jan 1st. HOLIDAY.05:17
* dato is just waiting for friends to arrive to have breakfast :)05:18
johnfdato: thanks05:24
johnflifeless: I shall add it to my long list of things to do :)05:25
lifelessjohnf: we're back tomorrow; can we arrange to meet up say friday?05:52
johnflifeless: sure or earlier. I can drop past anyday with everything05:52
lifelesscool - well thursday sometime would be great. Anytime, just ring a bit before so I'm not out at the shops.05:56
induhi all07:31
induhappy new year07:31
indui need help in bazaar implementation07:31
indui created a repo using bzr init-repo, and then created branches under that, using bzr init07:32
indui am finding that the sub branches are independent and are no where related to the main branch which was created using bzr init-repo07:32
induam i going in right path ?07:33
Pengindu: bzr init-repo doesn't create branches.07:34
Pengindu: It's simply an optimization, so the data from all branches created under it will be stored in one place instead of duplicated in each branch.07:34
induPeng, could u please explain this clearly07:35
induhow does duplication be saved ?07:35
induPeng,  sorry,how does the duplication is not occured  ?07:36
Pengindu: If you have two branches of the same project, 99% of the history is identical, but all of it would be stored twice. Using a shared repo, it's only stored once.07:37
indu Peng here u mean branch as the one created  using bzr init ?07:38
Pengindu: Sure.07:39
Pengindu: If you just created the branch, there's no history, so it's not so relevant.07:39
PengI'm sorry, but I'm gonna go.07:39
PengBut yes, the branches are independent.07:40
* Peng wanders off.07:40
PengThere isn't really a way around that at the moment.07:40
deflatedHello. What do you think of taking Bazaar for backups?08:09
Pengdeflated: I think it's very useful to use a VCS on some of your files, but to back up your email or whatever is a bad idea.08:12
deflatedThank you for your response. It's meant for backuping my source codes. I plan to store them on a remote server. I only change approx. 10 files a day so that it's not that efficient to transfer *all files* via FTP to the server. What do you think of using Bazaar in this case or is there even a better way? If the application is stable I'll release it as open-source so I'll need to use a VCS but it's planned for the end of this year. For that time I ne08:20
deflatedSo Peng, what do you think? Are there any better alternatives? Here's an interesting article of someone who uses Bazaar as for backuping his data: http://www.singularity.be/node/635708:34
deflatedBut he uses rsync for remote backups. The remote server connects to his computer and gets all data.08:36
michaelkohwji have a web host that i can SSH into, but it doesn't have bzr installed. can I still push and pull from it over ssh?08:40
lifelessdeflated: bzr for that is fine :)08:40
lifelessmichaelkohwj: yes if they have python 2.5 you can dump a copy of bzr in your home dir and set BZR_REMOTE_PATH08:41
lifelesslater all08:41
michaelkohwjhm i see08:42
michaelkohwjlifeless: thanks08:42
deflatedOk, then I'll give it a try. Thank you very much!08:42
michaelkohwji can FTP over, but i can't seem to get it right:08:46
michaelkohwjbzr push --create-prefix ftp://user:pass@url.com/~/dir08:47
michaelkohwjoh, it works, but now: "but does not have a valid .bzr directory"08:48
michaelkohwj... --use-existing-dir08:48
michaelkohwjhi, how should I push to a remote server over ssh, that doesn't have bzr installed?09:17
michaelkohwji can't install bzr on it either09:17
michaelkohwjok, i got it working with ftp, but the source files aren't transferred09:21
michaelkohwjbzr push --create-prefix ftp://user:pass@url.com/dir --use-existing-directory -v just transfers .bzr09:26
michaelkohwjwhat shoul i do to push to a remote dir?09:26
michaelkohwjthanks!09:26
thumpermichaelkohwj: pushing doesn't create the working tree10:02
thumpermichaelkohwj: just the branch and repo if needed10:02
* thumper recalls someone working on pushing a working tree of files10:02
* thumper walks away again10:02
Pengmichaelkohwj: Use SFTP if you can.10:09
PengMicahElliott: (It's an FTP-like protocol tunnelled over SSH.)10:09
Pengthumper: push-and-update plugin.10:10
induhi, could someone give me a link for downloading loggerhead10:35
induI am not getting any10:35
michaelkohwjPeng: but if I pull from it, will the effect be the same?10:43
michaelkohwjPeng: let me explain more clearly:10:43
michaelkohwjPeng: X makes changes to the project and pushes it to the server10:43
michaelkohwjY then clones from the server, works on it, and then pushes it up.10:43
michaelkohwj(i'm not sure that i'm using the correct terms)10:44
michaelkohwjthen when X pulls from the server and merges, will X get Y's changes?10:44
Pengmichaelkohwj: Will doing what be the same?10:47
michaelkohwjPeng: um, such as pulling and pushing from and to a thumbdrive?10:49
michaelkohwj(sorry, i'm new to SCM)10:50
Pengmichaelkohwj: It doesn't matter what you push and pull to.10:50
michaelkohwjPeng: oh i see- the -diffs- are stored in the place i push to10:52
michaelkohwjis that right?10:52
Pengmichaelkohwj: Something like that, yeah.10:59
dleeMichael:  I think you're asking if A --push--> B and B <--pull-- A have the same effect.  I believe they do.  You might also be asking if changes pushed to server by one person will arrive at another person's local copy when that person then pulls from the server.  Again, yes, this should work.  Caveat:  I've been using Bazaar for about a week myself, but I've been using VC systems of various sorts for years.11:02
Peng(If one person pushing and another pulling didn't work, that wouldn't be much of a VCS...)11:03
dlee:)11:03
dleeI thought the question might be more about how push and pull were related, but at 5 AM after a lot of local activity, I don't trust my read :)11:04
michaelkohwjactually, i was just confused when pushing didn't place the files in the remote server, but instead placed .bzr/ in it only11:05
michaelkohwjso .bzr contains the diffs, and thus the actual working files are unnecessary?11:06
Pengmichaelkohwj: Yeah, .bzr contains all of the data. It would usually be a waste of bandwidth to create a working tree (and there would be other issues, like what if there are merge conflicts?).11:06
* michaelkohwj has been enlightened11:06
michaelkohwjthanks Peng and dlee11:06
dleeAh ok... .bzr contains everything necessary to reconstruct the local files.  It's just that it's not so easy for your "push"ing system to make the "push" receiver update the local files on that end.  You can't push your local files to remote because they may contain changes.  push and pull work with what's in .bzr, not what's in all the other files in your working tree.  Does that help?11:07
GaryvdMIf you push over a local transport, it will also push the working tree. But pushing over a remote transport will not push the working tree.11:09
GaryvdMWorking trees can easily be recreated from the repository (contained in the .bzr dir).11:09
dleeDoesn't a local-transport push still push the *committed* rev, not the actual local (pushing-side) working-tree files?11:10
michaelkohwjdlee: yes =)11:10
GaryvdMyes11:10
dleeA "no" to that would have been a shock...11:10
michaelkohwjthanks for the help, i understand now =)11:11
dleeI really hope I can talk my office into Bazaar now, even though they jumped at Svn very recently before I knew what they were doing :P11:11
michaelkohwjdlee: perhaps bzr-svn is a short-term solution? but changing everyone to bzr is probably better, i guess..11:16
dleeright on both counts imo11:16
* dlee wanders off perchance to sleep11:20
=== GaryvdM is now known as GaryvdM_away
=== GaryvdM_away is now known as GaryvdM
=== michaelkohwj is now known as kohwj
=== kohwj is now known as michaelkohwj
=== michaelkohwj is now known as kohwj
=== kohwj is now known as michaelkohwj
=== michaelkohwj is now known as kohwj
kohwjhi, when I try to push over sftp, i get a Permission deined:13:20
kohwjerror (errno 13). hold on, let me google it first13:21
kohwjhm not much luck. ftp works, though13:22
kohwjnever mind, i just solved it with rsync and bzr update13:45
kohwjbzr is really user-friendly, imo13:45
kohwjthank you bzr13:46
jelmerre15:20
Pengfwd!15:20
TFKylebcc!15:21
_markus__hi19:34
lifelessyo19:34
_markus__I'm interested in bzr to use it. I'm currently using svn. I've gone through the user guide but some questions are not answered. I'm not sure if bazaar is the right tool here. I've a central svn server with the projects (can't change this) and would like to check a version out and work offline on it, do offline commits and later merge this changes back to the svn repository. now, svn doesn't...19:37
_markus__...support something like local commits. Bazaar seems to do, but I'm unsure how I can work with both together ...19:37
Peng_markus__: You want to use both bzr and svn?19:41
_markus__Peng: well .. I don't know, honestly :) I mean, I'm forced to use svn on the central side. I thought bzr can fill me the gap of local commits and then push the changes to the live system. Maybe I understand this wrong.19:44
Peng_markus__: There's an excellent bzr-svn plugin that lets bzr interact with svn repos. (Minor pain to install though.)19:46
Peng_markus__: Of course, ideally your office would switch to bzr. ;)19:46
_markus__Peng: I've this plugin install and read about it .. but maybe I'm dumb but I've no plan in front how things work together :-/19:47
_markus__(I'm using debian testing, everything is packaged up)19:48
_markus__Peng: it's not only about the office, but also various open source projects, so it's not my choice, really19:48
Peng_markus__: I think you can just "bzr branch" from the svn repo, and then "bzr push" your changes back to it.19:48
_markus__hmm19:48
_markus__so easy? let me try ..19:48
Peng_markus__: Ideally, those FOSS projects would switch to bzr too . . . :)19:48
_markus__Peng: hmm .. is there a nice gui client such as TortoiseSVN? TortoiseSVN is really very useful19:49
Peng_markus__: There are a few GUI clients. QBzr (Qt), bzr-gtk (GTK+), and TortoiseBzr or something.19:50
_markus__Peng: hmm .. TortoiseBzr doesn't seem to be nearly somewhere were TortoiseSvn is ... anyway . bzr branch is running. Unexpectedly easy. This command seems to download the complete history information, am I right?19:54
jelmer_markus__: yes. It will be slow the first time but will cache some data for later use19:55
_markus__Hm .. seems to hang .. :/20:02
_markus__Jup, it hangs. Is there any other way without using bzr branch? I used strace, it now just sits there and hangs here "6043  poll("20:07
Odd_Bloke_markus__: Does it create anything in the expected directory?20:08
_markus__Odd_Bloke: no, it only created some files in ~/.bazaar/svn-cache/20:12
_markus__On the console I rea "fetching svn revision info  7/37". The complete svn repos is no more than 50MB20:13
Odd_Blokejelmer: ^20:23
LeoNerdYou're right. bzr+ssh is a lot faster than sftp over long-latency links20:28
LeoNerdThanks to whoever suggested that earlier20:28
lifelessLeoNerd: you using a pack repo or knits still ?20:43
LeoNerdHow do I tell?20:43
dleeLeoNerd: What's the top line from bzr info?20:49
LeoNerdStandalone tree (format: dirstate-tags)20:52
datothat's knits20:52
LeoNerdThat's in my checked out branch, not the (rempte) repo on the server20:53
PengRun "bzr info http://path.to/remote/repo".20:56
PengIf you're using a checkout, bzr info might've listed the server's format.20:56
LeoNerdOK.. Server says Repository branch (format: dirstate-tags)20:58
PengIf you don't need compatibility with bzr < 0.92, upgrading to pack-0.92 should really boost performance over dumb protocols (http, sftp).21:01
LeoNerdRight.. Well, it's only me that uses this really, so.. yeah.. I guess I can do that21:02
jelmerre21:20
Pengglob!21:20
jelmer_markus__: Sorry, not sure what could cause that. We're relying on the Subversion libraries there21:21
jelmerPeng: :-)21:21
jelmer_markus__: Does it always hang or does retrying work ok?21:21
mwhudsonlifeless: can you email me the loggerhead.conf file you are using for https://bugs.edge.launchpad.net/loggerhead/+bug/179347 ?21:28
ubotuLaunchpad bug 179347 in loggerhead "NotBranchError on startup" [Undecided,New]21:28
lifelessmwhudson: done21:29
mwhudsonlifeless: how totally strange21:36
lifelessmwhudson: I thought so.21:36
* mwhudson will look more tomorrow, too tired tonight21:36
lifelessthanks21:36
lifelessI grabbed your lp branch from bazaar.lp.net21:37
mwhudsonthat's the right place to go21:38
igcmorning21:49
* fullermd waves at igc.21:49
igchi fullermd21:50
lifelessmwhudson: consider relative urls for codebrowse, kthxsavebybandwidth22:28
lifelesse.g. consider http://codebrowse.launchpad.net/~lifeless/squid/squid3-trunk/files/cvs-1%3Ahno-20071220081046-d59dmpbuvvyioekf?file_id=src-19960222132353-t43j7l5jst5z-2822:29
pooliegood morning22:57
spivGood morning.22:59
=== asak_ is now known as asak

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