/srv/irclogs.ubuntu.com/2012/11/23/#bzr.txt

=== mmrazik is now known as mmrazik|otp
MerwinHi guys. I'm stuck with Bazaar. I moved abzr colocated repo from a dir to an other, and now it doesn't work in the new one08:12
Merwin(openassur)thibaut@PC-Thibaut:~/OpenAssur/addons-opas$ bzr revno08:13
Merwinbzr: ERROR: Not a branch: "/home/thibaut/OpenAssur/addons-opas/.bzr/branches/trunk/08:13
MerwinI changed the path in .bzr/branch/location/ because it pointed to the old one.08:15
Merwinbzr colo-fixup give me the same error :-(08:18
=== mmrazik|otp is now known as mmrazik
mgzmorning09:19
Wiz_KeeDhello guys!09:24
Wiz_KeeDcan anyone tell me how i can download a branch from local to the dev server?09:27
mgzthere are lots of ways to upload a branch, which is best depends on exactly what you're trying to do09:29
Wiz_KeeDhello mgz and thank you for answering09:30
Wiz_KeeDwell...09:30
mgzyou can either push the branch over sftp, or if you really just care about the tree, use something like the bzr-upload plugin09:31
Wiz_KeeDi have a development server to which i have ssh and root access09:31
Wiz_KeeDand i have the branch on my laptop09:31
Wiz_KeeDboth running ubuntu09:31
mgzwhat's easy then is to install bzr on the server and push using bzr+ssh, just remember that won't create a working tree on the server by itself09:32
Wiz_KeeDi cannot access my laptop from the dev environment since i have no access to the intranet09:32
Wiz_KeeDi have bzr installed on the dev server09:33
Wiz_KeeDhow do i do that mgz? :O and what's actually a working tree?09:33
Wiz_KeeDas in i cannot revert to older version and such?09:33
Wiz_KeeDi can only pull?09:33
mgzyou can do pretty much anything you'd do locally over bzr+ssh09:34
Wiz_KeeDthen what's the problem?09:34
Wiz_KeeDany tutorial or suggestions on how i can do that?09:34
Wiz_KeeDi find it highly unpractical and unprofessional to just copy paste the files when i have bzr on both environments09:35
mgzsee: http://doc.bazaar.canonical.com/beta/en/user-guide/core_concepts.html09:36
mgzthen read `bzr help push`09:37
mgzbut if what you really want is the contents of the tree in a specific place on the dev server to say, actually get the code run, you may want to look at bzr-upload instead09:38
mgzpush mirrors the repository and the branch, but does not update the tree09:38
Wiz_KeeDit's my lack of knowledge09:46
Wiz_KeeDthat's at play here09:46
Wiz_KeeDi do want the contents of the code in a specific place where it is loaded by a framework09:47
mgztry getting that plugin and experimenting with it then09:51
Wiz_KeeDhmm so i have to install that plugin10:01
Wiz_KeeDcan't i create a repository on the dev and push from local?10:01
Wiz_KeeDi'd love to take the tutorial from 0 but right now i'm in a bit of a hurry10:01
mgzas I said at the start, you can do this in a bunch of different ways, I'm trying to poke you towards the one that's closest to what you actually need10:02
mgzif you're basically doing deployment of the code to your server, using bzr-upload is likely the easiest to set up correctly10:03
Wiz_KeeDthis is the plugin right http://doc.bazaar.canonical.com/plugins/en/push-and-update-plugin.html10:03
Wiz_KeeDyes that's it, deployment of code to the server10:04
Wiz_KeeDsorry for being such a douche10:04
mgzWiz_KeeD: actually no, I was talking about https://launchpad.net/bzr-upload but you can try that one if you like10:08
Wiz_KeeDthat is for the case where bzr is not installed on the dev server10:11
mgzit works for that, but is also fine for just mirroring your tree. is probably the closest to what you do now.10:13
Wiz_KeeDhttps://launchpad.net/bzr-push-and-update10:13
=== mmrazik is now known as mmrazik|otp
Wiz_KeeDso for developing locally and updating the changes to the server when done which one of the two would you recommend considering my precarious knowledge and the fact that the server has bzr on it and i have ssh access?10:14
mgzfeel free to try the push and update one, mirroring the branch as well might be handy.10:17
Wiz_KeeDi think i'll go with the bzr-upload you said10:20
Wiz_KeeDhow do i install the plugin10:20
Wiz_KeeDi'm looking at this and i can't understand http://doc.bazaar.canonical.com/plugins/en/plugin-installation.html10:20
Wiz_KeeDi have no plugin directory10:20
mgzsimplest way is `mkdir ~/.bazaar/plugins` then `bzr branch lp:bzr-upload ~/.bazaar/plugins/upload`10:22
Wiz_KeeDhmm, let me try10:24
Wiz_KeeDok done that10:25
Wiz_KeeDit shows in plugins now10:26
Wiz_KeeDit's ready to work?10:26
mgzshould be.10:26
Wiz_KeeDwhere's the documentation for this10:28
mgz`bzr help upload` also on the plugin doc page on the web page you were looking at earlier10:29
mgzI'm presuming you have sftp as you have ssh10:29
Wiz_KeeDthat idk :-s is that kind of like a ssl for ftp?10:30
Wiz_KeeDfound this though10:30
Wiz_KeeDhttp://wiki.bazaar.canonical.com/BazaarUploadForWebDev10:30
=== mmrazik|otp is now known as mmrazik
=== mmrazik is now known as mmrazik|lunch
Wiz_KeeDi am making a sftp user right now mgz11:02
Wiz_KeeDanother option without using sftp and such?11:02
Wiz_KeeDlike idk, make the repository on the dev and pull, make changes and push back? would that be sane? and it would avoid using ssh or sftp11:03
mgzwell, just running update after push is enough if having the branch in place is acceptable11:06
mgzthe other plugin you looked at did say it boiled down to push followed by `ssh LOC bzr update`11:08
Wiz_KeeDmgz, a friend suggested i just do bzr+ssh//user@hostname/full/path11:30
mgzthat's not an action, it's a location.11:32
mgzalso, you probably want to stick your username in locations.conf rather than in the url11:32
Wiz_KeeDi didn't fully understand sorry11:33
mgzpushing over ssh then updating the tree is fine, you just need to do both bits.11:33
Wiz_KeeDis there something wrong with pushing?11:33
Wiz_KeeDwhich both bits?11:33
mgzliterally, `bzr push bzr+ssh//hostname/~/path && ssh hostname bzr checkout "~/path"` then switch checkout to update atfer the first time11:37
=== mmrazik|lunch is now known as mmrazik
mgzhuh, bzr-ch is a project... I guess our docs don't explain you don't need to create a project just to translate our docs... not in chinese yet at any rate12:45
Wiz_KeeDmgz, ok, what if i transfer the branch to the development server, pull the files on my local, make changes and push them back?12:46
Wiz_KeeDhow's that?12:46
mgzI don't follow. Did you try what I suggested and it didn't work in some regard?12:50
mgzyou just need to create a tree on the remote side then keep it updated, if you want to go down the branch mirroring route.12:50
mgzI hate to be all perl about this, but there is more than one way to do it, just pick one and do that.12:51
Wiz_KeeDi see13:04
Wiz_KeeDi've placed the repository on the dev server and now i want to pull it13:04
Wiz_KeeDhow do i do that? bzr branch hostname...13:04
Wiz_KeeD?13:04
mgz'pull' optionally with --remember.13:05
Wiz_KeeDpull from where, i need to install the branch on my local13:06
Wiz_KeeDfrom the dev server13:06
mgzI don't see how you're solving the working tree update.13:06
mgzI don't know where you've put things so can't tell you what paths to use.13:08
Wiz_KeeDhm13:09
Wiz_KeeDOn my local ubuntu where i develop i have the files in /opt/openerp/projects/project-name and on the development server i have them in /opt/openerp/project-name13:10
Wiz_KeeDi have transfered the branches from local to the development server via bzr upload13:10
Wiz_KeeDand now i'd like to pull the branches fom the dev to the localhost so when i do push and pull it will automatically make the neccesairy changes13:11
fullermdOK, now I'm all confused about who's confused   :p13:11
Wiz_KeeDhave i've been clear enough?13:11
bobweaverhello there I am having a weired problem  http://paste.ubuntu.com/1380291/19:55
bobweaveras you can see there is room on the drive19:55
bobweaverlooking at log now19:59
vilabobweaver: not enough on /tmp ?20:03
vilatry setting TMP (or is it TMPDIR) to somewhere else while running the command may be20:03
bobweavernope friend also suggested that I removed /tmp adn still nothing20:04
bobweaverok I will try that20:04
bobweaverback to normal20:14
bobweaverthanks vila20:14
=== yofel_ is now known as yofel
=== r0bby is now known as robbyoconnor
=== r0bby is now known as robbyoconnor

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