/srv/irclogs.ubuntu.com/2013/05/16/#bzr.txt

=== Logan__ is now known as Logan_
=== SamB_ is now known as SamB
=== Peng__ is now known as Peng
=== gthorslund_ is now known as gthorslund
Wiz_KeeDhey guys06:38
Wiz_KeeDis anyone online?06:45
bob2many06:45
Wiz_KeeDbob2, If I develop on my local enviroment and ocasionally want to push my modifications to the production server when i see fit.What is the best setup with bzr to do so?06:47
Wiz_KeeDAnd have a proper backup in case one of them goes down06:47
bob2are you sure you want to pick bzr?06:48
bob2and something like http://doc.bazaar.canonical.com/plugins/en/push-and-update-plugin.html06:49
Wiz_KeeDI was reffering to shared repository, where to place it how to work with it06:49
bob2no need to do that06:50
Wiz_KeeDhow come?06:50
bob2because there's no need to do that06:50
bob2the thing you are after is the above link06:51
bob2but, well, be sure to think about whether bzr is what you want to use for this06:51
Wiz_KeeDi pretty much have to, all the addons are on launchpad and bzr is used to retreive them06:51
Wiz_KeeDi might as well use the same thing06:52
bob2what is?06:52
bob2is this all about drupal06:52
Wiz_KeeDopenerp of the openobject framework06:53
bob2you'll probably want to talk to them directly06:54
Wiz_KeeDthis is for a personal project06:55
Wiz_KeeDI had a module that was versioned with bzr, then i split the module into multiple ones and tried to move the bzr tree to include the rest of the modules06:56
Wiz_KeeDi ended up losing most of my work06:56
bob2I'd carefully consider 'able to get support' when picking a dvcs06:56
bob2well, obviously back thigns up before doing anything dangerous06:56
bob2regardless of what you're doing06:56
Wiz_KeeDshould of thought of that sooner, i have some previous version but not the latest06:56
Wiz_KeeDand that sucks06:56
bob2but really really do consider "how easily can I get help" when picking a tool like a dvcs, especially if you don't have any experience with any of them06:57
Wiz_KeeDhow complicated can it be for basic tasks i need? it's not like i'm merging branches or working with a big team06:59
Wiz_KeeDjust need to backup and push my modifications that's pretty much it06:59
bob2yes07:00
bob2but tbh I'd suggest really thinking about it and picking something else07:00
bob2if you can't figure it out from the above docs07:00
Wiz_KeeDi don't imagine git being much easier07:01
Wiz_KeeDeither way it's the terms that are really bugging me branch,repository,tree, working tree07:01
Wiz_KeeDbut i'll figure it out sooner or late07:01
Wiz_KeeDr07:01
bob2it's not07:03
bob2but the problem isn't difficulty, it's supportability07:04
Wiz_KeeDwhat do you mean by that?07:05
bob2that you're going to continue to struggle07:05
Wiz_KeeDif it's not difficulty then why would i struggle?07:07
bob2ok then, best of luck07:09
Wiz_KeeDI'm asking because i don't know what you're refering to07:10
Wiz_KeeD:)07:31
Wiz_KeeDbob2, when moving files around in a versioned directory, are you supposed to add them with bzr add or can it figure out for himself that they have been moved?07:35
vilaWiz_KeeD: if you're moving versioned files, better mention it to bzr with 'bzr mv old_path new_path'07:36
Wiz_KeeDbut now that i did not to that,  removing/adding them shouldn't be much of an issue should it?07:36
vilaWiz_KeeD: if you forget to do that, you can still catch up before commit with 'bzr mv --after old_path new_path'07:36
vilaWiz_KeeD: remove/add and mv are different07:37
Wiz_KeeDof course07:37
vilaremove/add is saying bzr: I don't care about the old one. I care about the new one. They are different files.07:37
Wiz_KeeDyes you are right07:38
vilamv is saying: old and new are the same file, I'm changing its name07:38
Wiz_KeeDso bzr mv --after file.xml new_dir/file.xml07:38
Wiz_KeeD?07:38
vilaplease keep track of that so that if I do modifications to old in a different branch and merge it here, I want these changes to be carried over07:38
vilaWiz_KeeD: yes07:38
Wiz_KeeDok let me do that, thanks for the tip man07:39
vilaWiz_KeeD: explicit is better than implicit07:39
Wiz_KeeDwhat do you mean?07:40
Wiz_KeeDcan bzr move take multiple arguments?07:40
vilaWiz_KeeD: 'bzr mv --auto' will try to guess what you did and should be reasonably accurate but you know better and you will always be right when saying which file/dir has been renamed07:40
vilaWiz_KeeD: bzr mv --help07:40
Wiz_KeeDahhh that what you were reffering to, i was looking at the manual for that07:40
Wiz_KeeDwhat if it's wrong, there must be a way to step back and do the explicit move yourself07:41
vilayeah, 'bzr mv wrong good'07:41
vilaWiz_KeeD: as long as you don't commit, you're free to change your mind07:42
Wiz_KeeDaluart/purchase_view.xml => aluart/view/purchase_view.xml (assuming this would have been an auto move and wrong, which is not_07:42
vilaWiz_KeeD: well, even after committing you can still change your mind...07:42
Wiz_KeeDvila i have a question...i have a production server where i upload my modules and they go into production.on my local machine i develop...what is the best possible setup to have for this environment to have proper backup on both machines and be able to push my modifications07:43
Wiz_KeeD?07:43
vilaWiz_KeeD: generally it boils down to: can you put the branch on the production server without fear of people accessing your source to read them or write them07:44
Wiz_KeeDyeah there's no problem for that07:44
vilaWiz_KeeD: if you can, as bob2 mentioned, push_and_update is the most transparent way07:44
Wiz_KeeDbzr+ssh, it's secure and the server is not widely available07:44
Wiz_KeeDso i have to install a bzr plugin for that07:44
Wiz_KeeDa repository is not needed for this job?07:44
vilaWiz_KeeD: if you can't, the bzr-upload plugin will upload the modified files without requiring a remote branch07:45
Wiz_KeeDis there any downside to the remote branch?07:45
Wiz_KeeDi did this setup before and just did bzr push :parent07:45
vilaWiz_KeeD: repository and branch have different meanings in bzr, you generally should use and think about branches07:45
vilaWiz_KeeD: (hold on, I'm trying to answer your questions in order ;)07:46
vilaWiz_KeeD: a repository is where a branch will store the revisions that defines the branch history07:46
vilaWiz_KeeD: a repository can be used by a single branch or by several branches07:47
Wiz_KeeDisn't the branch history stored in the branch itself?07:48
vilaWiz_KeeD: when you use multiple branches that shares a lot of history, using a shared repository makes sense but is a conscious and explicit decision. If you don't do it, things will still work but each branch will consume a bit more disk space07:48
vilaWiz_KeeD: no, the branch only stores a pointer to the most recent revision, the revisions themselves are in the repository07:48
vilaWiz_KeeD: so, when dealing with branches, you rarely have to think about the repository which is an implementation detail07:48
vilaWiz_KeeD: if you want to think about it, well, you think about it when creating it, knowing that creating branches in directorieS below the shared repo will use that07:49
vilaWiz_KeeD: are things clearer about branches and repository ?07:50
Wiz_KeeDto get things straight...a BRANCH is basically a mirror-copy version of the original content07:50
Wiz_KeeDwhich is what defines the distributed version control system07:50
Wiz_KeeDa repository is a central location where information about versions and changes reside as you said07:51
vilaWiz_KeeD: you can think of it this way, under the hood, there is no difference between a mirror-copy and the original content since they are both defined by a revision identifier07:52
Wiz_KeeDso when i'm able to see all the changes that have been done on my localhost, that means i copied the repository as well?07:52
vilaWiz_KeeD: yes07:52
Wiz_KeeDahh, starting to make sense07:52
Wiz_KeeDso there is no "master repository"07:52
vilaWiz_KeeD: but again, things are clearer if you think about branches07:52
vilaWiz_KeeD: there are branches, master or trunk or HEAD generally have a special social meaning: that's where people share a common definition of some code07:53
vilaWiz_KeeD: people can be reduced to yourself ;)07:53
Wiz_KeeDwhat do you mean?07:53
Wiz_KeeDahh07:53
vilaWiz_KeeD: that you can put the same branch in different places, what you do with them is up to you and people using them07:54
Wiz_KeeDIs a branch a state of the code at any given moment?07:54
Wiz_KeeDWithout the revision history07:54
vilait is a state of the code at a given moment as well as the history07:55
Wiz_KeeDbut you said branches don't hold revisions07:55
Wiz_KeeDmaybe they hold some sort of identifier or tag or revision number07:55
Wiz_KeeDbut no more?07:55
vilaWiz_KeeD: exactly07:55
Wiz_KeeDstarting to make sense here, thank God for your patience vila :))07:56
vilaso by using that identifier, you're referring to the revision definition which also includes its parent revisions07:56
vilawhen you do a commit, there is a single parent07:56
vilawhen you do a merge, there are two parents07:56
Wiz_KeeDSo the reason you guys suggested i use push and update is not to have two separate repositories just one on my localhost and one in the production environment?07:57
Wiz_KeeDand not one*07:57
vilayou can merge several parents at once and commit that, the resulting revisions will have even more parents but it's... rarely used07:57
Wiz_KeeDThe thing is...if i have a repository only on localhost, and just push changes to a branch on the server07:58
vilaWiz_KeeD: indeed, I asked you if you wanted a remote branch or not (the repositories will be handled for you so we can stop talking about them now)07:58
Wiz_KeeDWhat if something happened to my computer, how can i do reverts and see changes on the server?07:58
vilaWiz_KeeD: suppose you lose your computer or needs to start on a different computer,07:59
vilaWiz_KeeD: on the new computer you do 'bzr branch <remote_url> <local_url>'08:00
Wiz_KeeDand i'll have the full log of changes?08:00
vilayes08:00
Wiz_KeeDi like using qlog for example08:00
vilathat's what dvcs is about08:00
vilayou have the whole branch history and you can work offline08:00
vilayou don't need access to the server anymore, hence distributed08:01
vilawhereas in a centralized vcs, you need access to the server to get access to the history08:01
Wiz_KeeDyeah i read about that08:01
Wiz_KeeDbut that means the repository is copied as well if you can see all the changes08:01
vilaWiz_KeeD: now, let's stop talking about repositories, that's not what we care about, we care only about branches08:01
Wiz_KeeDIt's still a concept problem in my head that's why i keep bugging them08:02
vilaWiz_KeeD: what we care about too is working trees08:02
Wiz_KeeDif branches are only a version of data at a given moment with a identifier08:02
Wiz_KeeDthen it means that without a repository you cannot revert or see a full log08:02
vilaWiz_KeeD: right, one repository will always be there08:03
Wiz_KeeDthat's why i'm curious about the repositories and how they are created08:03
vilaha ok08:03
Wiz_KeeDwhere? on the server? or with the branch?08:03
vilaWiz_KeeD: both are possible08:03
vilaWiz_KeeD: in the simplest scenarios, each branch has its own repository08:03
Wiz_KeeD"when you use multiple branches that shares a lot of history, using a shared repository makes sense but is a conscious and explicit decision. If you don't do it, things will still work but each branch will consume a bit more disk space"08:04
vilayes08:04
vilabut if your history is small you probably don't care08:04
Wiz_KeeDlet me look up the definition for a shared repository08:04
Wiz_KeeDah this is it08:06
Wiz_KeeDBecause all branches store all revisions and each branch is related to another branch at some version, you have a lot of duplicate revisions stored on your computer.08:06
* vila nods08:07
Wiz_KeeDwhat were you trying to say about working-trees?08:08
vilaWiz_KeeD: pedantically: branches don't store revisions, repositories do. But a branch is always associated with a repository. So you can safely forget the repository and think of a branch as revision pointer and a repository where this revision and its ancestry is stored08:09
Wiz_KeeDahhh that makes much more sense08:09
vilaWiz_KeeD: the working tree is where you work (doh ;), a working tree is associated to a branch08:09
Wiz_KeeDeven with a shared repository, the actual repo is copied as well08:09
vilaWiz_KeeD: yup08:09
Wiz_KeeDbecause if it waren't it wouldn't be a dvcs08:10
Wiz_KeeDIf you had to use the repository from the server it would be a centralized version control system?08:10
Wiz_KeeDalways needing the server to see changes, commit, revert08:10
vilaWiz_KeeD: that is, when you pull a branch (or merge or whatever), the revisions involved are copied from the remote branch's repository to the local one08:10
vilaWiz_KeeD: yup08:10
Wiz_KeeDslowly comming together08:11
vilaso the working tree (WT) also keeps track of the changes versus the branch it is associated with08:12
Wiz_KeeDconfusing08:12
vilabzr diff and bzr status will tell you what are these changes08:12
Wiz_KeeDanother question about shared repositories, when there is a simple repository on the server, 3 people do a pull (branch initially) all make modifications08:12
vilabzr commit will record these changes in a revision and makes the wt in sync with its branch08:12
Wiz_KeeDand then push to the server08:12
vilaWiz_KeeD: the first to push succeeds08:13
Wiz_KeeDokay08:13
Wiz_KeeDthen08:13
vilaWiz_KeeD: the others are told that their branch has diverged08:13
vilaWiz_KeeD: they cannot push08:13
Wiz_KeeDand they need to merge?08:13
vilaWiz_KeeD: they have two choices08:13
Wiz_KeeDyes...08:14
vilaWiz_KeeD: 1) they merge, commit and then they can push08:14
vilaWiz_KeeD: 2) they 'bzr push --overwrite'08:14
Wiz_KeeDand kill the poor guy's work :))08:14
Wiz_KeeDbastards08:14
vilanot kill08:14
vilamove it aside08:14
Wiz_KeeDoverwrite it08:14
vilayeah08:14
vilabut the pushed revision is still in the remote repo08:15
Wiz_KeeDahhhhhhhhhhh08:15
vilabut the remote branch does not refer to it anymore08:15
Wiz_KeeDsweet sweeeet08:15
Wiz_KeeDnow, the difference of this case if it's a regular repository or a shared repository08:15
vilaso push --overwrite is disruptive as far as the sharing is concerned08:15
vilano08:15
vilathe branches matters here, the repo is still just a place to put revisions08:16
vila*matter08:16
Wiz_KeeDhttp://wiki.bazaar.canonical.com/SharedRepositoryTutorial08:16
Wiz_KeeDWouldn't it be great if they could all share the revisions they have in common? This is where shared repositories come into play.08:16
vilayes, that's what shared repos are about08:17
Wiz_KeeDshare in what way?08:17
vilaha, good point08:17
vilathey are shared because all branches will add the revisions they need into it08:17
vilaand will also find the revisions they need into it08:18
Wiz_KeeDhmm08:19
vilaso if you have several local branches that at one point were the same remote branch, when creating or updating one of these local branches, you will download only the missing revisions from the remote branch (and its associated repo)08:19
Wiz_KeeDso it's not a separate entity08:19
Wiz_KeeDthat makes sense08:20
vilainstead of downloading all the revisions that are part of the whole branch history08:20
Wiz_KeeDif you create a branch from scratch it will download all the revision anyway08:20
Wiz_KeeDnow returning to my setup08:20
Wiz_KeeDthere is no reason to make a shared repository you said08:22
Wiz_KeeDvila?08:26
vilaWiz_KeeD: it's up to you, if you understand how it works and what are the fallouts, create one. If you doubts, use standalone branches and revisit that decision later.08:26
vila*if you *have* doubts08:26
vilaWiz_KeeD: if your history is small enough it won't really change your life08:27
Wiz_KeeDit's just me working on it, not 800 people around the world08:27
Wiz_KeeDI do tend to commit more frequently in order to prevent loss of data08:27
vilaWiz_KeeD: good practice !08:27
vilaWiz_KeeD: especially if you also push often08:28
vilaWiz_KeeD: because then you get a remote backup for free08:28
vilaWiz_KeeD: and at the same time, a local backup of your remote08:28
vilaWiz_KeeD: and if you want yet another backup, well, push your branch on yet another server ;)08:29
Wiz_KeeDI think i would do that vila08:30
Wiz_KeeDand it's nice that you do a backup of every revision until then, not just the lame backup of the last version08:30
Wiz_KeeDSo i create a branch on localhost, push it to the server and maybe a 3rd one08:30
Wiz_KeeDover bzr+ssh08:30
hikikohello, I got the error can't delete ... because it is not empty in bzr... the documentation says that bzr can't resolve it and depends on the case etc ... anyone who could help me to fix it please? :)08:30
Wiz_KeeDwhat does push AND update do?08:31
vilaWiz_KeeD: ha, back to wts08:31
Wiz_KeeDsure08:31
vilahikiko: hi, can you wait a bit while I reply to Wiz_KeeD ?08:31
Wiz_KeeDhikiko's sounds more urgent, i can wait08:32
Wiz_KeeDi'm getting a free lecture anyway :)))08:32
hikikosure vila08:32
vilaWiz_KeeD: so, if you have a remote branch, you don't always need the associated wt to be in sync08:32
Wiz_KeeDokay...08:33
vilaWiz_KeeD: for example, if you push to that 3rd place, what you care about there is to be able to create a branch and a wt locally, you don't care about having a wt in that 3rd place08:33
Wiz_KeeDthat is correct yes08:33
vilaWiz_KeeD: but on your production server you *need* a wt08:33
vilaWiz_KeeD: now, push will only update your remote branch  but *not* the remote wt08:34
Wiz_KeeDthis is just for pure backup locations, the non-working tree08:34
vilaWiz_KeeD: to update the remote wt you can:08:34
vila1) connect to the server, do 'bzr update' after you've pushed. By pushing new revisions, you've changed the remote branch, now you want the wt to be in sync again with that branch08:35
vila2) use push_and_update that will do the above for you ;)08:35
vilahikiko: have you read 'bzr help  conflict-types' ?08:36
Wiz_KeeDSo basically vila, when you push to a branch, it updates the branch information but the working tree (the actual state of the code in regards to the information stored in the branch)08:38
Wiz_KeeDis not updated08:38
Wiz_KeeDhence you must do update in order to bring the files to the state of the latest changes08:38
vilaWiz_KeeD: exactly08:38
Wiz_KeeDwhat if you do, pull...modify something and then update08:38
Wiz_KeeDyou lose your modifications?08:38
vilaWiz_KeeD: hard question08:39
vilaWiz_KeeD: you should never lose your modifications08:39
Wiz_KeeDand what does the checkout command do08:39
Wiz_KeeDwait08:40
Wiz_KeeDjust read it now08:40
vilaWiz_KeeD: but you may end up in situations when you don't know anymore what your modifications are because they are mixed with other modifications you asked for08:40
vilaWiz_KeeD: bzr tries to protect you from that but obey your orders in the ned08:40
vilaend08:40
Wiz_KeeDhaha indeed08:41
Wiz_KeeDFinally it's starting to make some sense08:41
vilaWiz_KeeD: if you want to be on the safe side, bzr diff and bzr status will tell you about your pending changes08:41
Wiz_KeeDSo having a branch with no working tree is useful only for pushing and pulling without doing actual development there08:41
vilaWiz_KeeD: if you check those changes before issuing a bzr command that may change them, you should be sage08:41
Wiz_KeeDNo working tree, no actual files are generated, just the bzr data08:42
vilaWiz_KeeD: exactly08:42
Wiz_KeeDWhy the hell don't they make a legend of some sort?08:42
vilalegend ?08:42
Wiz_KeeDA repository is the place where all changes are tracked in regards to branches, branches are a copy of the code as a set of instructions and revisions and a working tree is a physical representation of the branch information that generates the actual content from the branch08:43
Wiz_KeeDor something like that08:43
Wiz_KeeDSo you know what is what...08:43
Wiz_KeeDSo i could make a branch on a 3rd server without a working tree pull from it on my localhost and production server with working tree08:44
Wiz_KeeDand in order to do that i pull and checkout08:44
Wiz_KeeDif you do a pull it does update the working tree no?08:44
vilaWiz_KeeD: yeah, if there is a wt... can be confusing but is generally what you expect08:46
Wiz_KeeDhmm08:48
vilaWiz_KeeD: I think you're on the right track, if you understand what are a repo, a branch and a wt, you should better understand which command affect each part in which way. From there, using the right commands to match your workflow and the layout of your branches across your various PCs should become clearer08:48
Wiz_KeeDslowly but surely08:48
Wiz_KeeDi have a repository initiated on the production server08:50
Wiz_KeeDhow can i remove that08:50
Wiz_KeeDjust the repository, keep the files08:50
vilaWiz_KeeD: now to understand what you mean here, I need you to properly use repo and branches when they are involved ;)08:51
vilaWiz_KeeD: more to the point:08:52
Wiz_KeeDi have created a shared repository sorry08:52
Wiz_KeeDi did bzr init-repo dir08:52
Wiz_KeeDthen bzr init dir08:52
vilaWiz_KeeD: if you have a shared repo setup on the remote server and have created branches that use that shared repo you should NOT remove the repo or your branches will be broken08:52
vilaWiz_KeeD: then you're good, keep going08:53
Wiz_KeeDwell isn't creating a shared repository something we agreed was not neccesairy?08:53
Wiz_KeeDI did it because it says so here http://doc.bazaar.canonical.com/latest/en/mini-tutorial/08:53
vilaWiz_KeeD: if you want your mind, use 'bzr info' on branches and repository to see how they are configured (you can also use 'bzr config' for that as long as you issue the command in the related directry)08:53
vilaWiz_KeeD: it is not necessary but once you do it, references are kept in the branches08:54
vilaWiz_KeeD: see 'bzr reconfigure --help' if you want to tell bzr what you want to change08:54
vilaWiz_KeeD: in other words: 'bzr init-repo project ; cd project ; bzr init trunk' will create 'trunk' as a branch using 'project' as its repository08:56
vilaWiz_KeeD: whereas 'bzr inti-repo dir; bzr init dir' will create a shared repo BUT the 'dir' branch will use that repo as ?08:57
vilaWiz_KeeD: a shared repo or as branch's private repo ?08:57
vilaWiz_KeeD: note that the tutorial says: 'bzr init-repo sample' and 'bzr init sample/trunk'08:58
vilaWiz_KeeD: I don't remember precisely when they were fixed but at some point there were bugs in bzr if you used a shared repo as a branch's private repo, so double-check with 'bzr info'08:59
vilaWiz_KeeD: and re-read 'bzr init-repo --help' to make sure you understand the different layouts09:00
vilaWiz_KeeD: (I'm not saying you don't, just that I don't know if you do ;)09:00
vilaWiz_KeeD: and many people (including me ;) had to learn it the hard way ;)09:01
vilaWiz_KeeD: oh, and because it also helps me countless times, when in doubt, also use 'bzr missing' to understand how branches differ09:02
vilaWiz_KeeD: and use 'bzr qlog' to understand what your branch's history is (qlog is provided by the qbzr plugin)09:03
vilahikiko: 'bzr qlog' can also helps you understand why you end up with conflicts which is generally a good way to understand how to solve them09:04
hikikovila, sorry I was on a meeting, yes I just found a way to do it, not the best one it was just a hack09:06
hikikobut seems to worj09:06
vilahikiko: careful with hacks while resolving conflicts, they sometimes come back to hunt you :) But if you're out of trouble, good !09:06
hikikoi merged with a previous version, deleted using rm the directory that was causing the conflict then diff and patch and commit09:07
hikikoand it seemed to work09:07
vilahikiko: you didn't issue any 'bzr resolve' command ?09:07
vilahikiko: anyway, if 'bzr commit' was happy and you didn't commit any file ending with '.THIS' or '.OTHER' or '.BASE' or '.moved' (you get the idea ;), you should be safe09:11
vilahikiko: 'bzr st -c-1' should tell you09:11
hikiko:D09:13
hikikoyes everything is fine vila09:13
hikikothank you!!09:13
vilahikiko: great, have a nice day ;)09:13
hikikoyou too09:13
Wiz_KeeDsorry i was away a second09:31
Wiz_KeeDhmm09:33
Wiz_KeeDi should remove the repository all together09:33
Wiz_KeeDvila, in case there is a branch on the server, i pull it, the server dies somehow and then i recreate it on the server09:34
Wiz_KeeDthe initial branch from where it was pulled will be missing right?09:34
Wiz_KeeDstill there vila?09:37
=== ubot5` is now known as ubot5
vilaWiz_KeeD: yes, it will be missing, your local branch will still refer to it in its branch.conf file (in the .bzr/branch directory)09:39
Wiz_KeeDdunno how good that is09:39
Wiz_KeeDin another tutorial it says if you do bzr branch branch then it makes a independent copy if you do bzr checkout it gets the actual branch that you will merge later on09:39
vilaWiz_KeeD: 'bzr info' and 'bzr config' will tell you that, that's the parent_location config option09:39
Wiz_KeeDidk for my development case how it would be better09:39
Wiz_KeeDi guess a separate branch would be better, don't ask me why :)09:40
vilaWiz_KeeD: that's true, at the time you did bzr branch and later bzr pull, your remote and local branches were in sync09:40
vilaWiz_KeeD: if you want your local branch to refer to a different parent you should do: 'bzr config parent_location=<new_url>`09:40
vilaWiz_KeeD: or 'bzr pull --remember <new_url>'09:41
Wiz_KeeDhmm interesting09:41
Wiz_KeeDWhat would you do in this scenario vila? You have the modules that run into the framework on the production server, and you develop on your local server09:42
Wiz_KeeDYou can test on local and push just when you want and you are sure it's okay09:42
Wiz_KeeDCreate a branch on server, bzr branch on local then push and update?09:42
vilayup09:42
vilacreating and keeping in sync as many branches you need to hold the framework and the modules09:43
Wiz_KeeDwell 2 in this case i guess09:49
vilaWiz_KeeD: you know better than me ;) If all modules are in the same branch and the framework in another, then yes, 2 should do09:50
Wiz_KeeDlet me try that setup09:55
Wiz_KeeDdoes it make a difference where the "parent" branch is, so to speak?09:55
Wiz_KeeDnow i have the shared repository and the branch in the same place09:56
Wiz_KeeDthe best way to have just the branch and remove the shared repository out of the equation?09:57
Wiz_KeeDvila?09:58
vilaWiz_KeeD: bzr reconfigure09:59
Wiz_KeeD--standalone09:59
vilayup10:00
Wiz_KeeDbzr: ERROR: '/opt/openerp/extra/' is already standalone.10:00
Wiz_KeeDyet bzr info says   repository branch: .10:00
vilagood then10:00
Wiz_KeeDhow is it good, it says it's a shared repository still, no?10:01
Wiz_KeeDor not10:01
Wiz_KeeD?10:01
viladoes it says 'shared repository:  some_path' ?10:01
vila*say10:03
Wiz_KeeDhmm10:05
Wiz_KeeDi guess not10:05
Wiz_KeeDthough i did init-repo on it10:05
Wiz_KeeDshould be ok then and i can push modifications10:05
Wiz_KeeDbut you say it will not be updated unless i do update as well10:05
Wiz_KeeDor push-update10:05
vilayes, try it, start with an up-to-date remote tree (bzr diff and bzr status outputs should be empty)10:06
vilapush from local10:06
vilacheck bzr diff and bzr status again10:06
vilado bzr update10:06
Wiz_KeeDi have to install the plugin?10:06
vilacheck bzr diff and bzr status again10:06
vilaWiz_KeeD: not yet10:06
Wiz_KeeDwell i did bzr branch over bzr+ssh10:07
Wiz_KeeDmade some changes, commited (or i should now)10:07
vilaWiz_KeeD: now, install the plugin, push from local, check bzr diff and bzr status once more10:07
Wiz_KeeDi have to check a tutorial on how to install it10:07
vilabzr branch lp:bzr-<plugin_name> ~/.bazaar/plugins/<plugIn_name> if you want to install from source10:08
vilaWiz_KeeD: don't forget to remove the leading 'bzr-' which is illegal as  a python module name10:09
vilaWiz_KeeD: use 'bzr plugins -v' before and after the install to check10:10
Wiz_KeeDah the plugin is on bazaar?10:30
Wiz_KeeDon launchpad sorr10:30
Wiz_KeeDwhat other options are there?10:30
Wiz_KeeDugh bzr: ERROR: Parent of "/home/wiz/.bazaar/plugins/push_and_update" does not exist.10:34
Wiz_KeeDbzr branch lp:bzr-push-and-update ~/.bazaar/plugins/push_and_update does not work10:35
Wiz_KeeDhm, i had to create the directory myself10:36
Wiz_KeeDstrange10:36
Wiz_KeeDvila, now i have to do bzr push-and-update :parent10:39
Wiz_KeeDright?10:39
Wiz_KeeDalso setup a ssh key so i don't enter the password 20 times10:40
vilaWiz_KeeD: yup, yeah, the .bazaar/plugins should be created manually. I think there is a bug about creating automatically but I don't remember the details10:43
vilaWiz_KeeD: yup, setting an ssh key is the way to go10:43
Wiz_KeeDi created the plugins dir myself10:43
* vila nods10:44
Wiz_KeeDYAY it worked so quick10:44
Wiz_KeeDssh-copy-id user@example.com10:44
Wiz_KeeD:o10:44
Wiz_KeeDand that's it!10:44
Wiz_KeeDi use the same one for launchpad, should be good10:44
Wiz_KeeDi see it makes 3 ssh connections when i do bzr push-and-update10:45
vilaWiz_KeeD: $HOME/.bzr.log may contain more details10:45
vilaWiz_KeeD: lunch time here, bbl10:45
Wiz_KeeDenjoy your lunch vila!10:45
=== mmrazik is now known as mmrazik|afk
=== mmrazik|afk is now known as mmrazik
=== wedgwood_away is now known as wedgwood
Wiz_KeeDvila, still there?15:50
jelmerhi Wiz_KeeD16:45
Wiz_KeeDhello jelmer, how are you?16:46
jelmerwell, yourself?16:48
Wiz_KeeDworking on the project now that i've solved most of my bzr problems16:52
Wiz_KeeDthanks to vila16:52
Wiz_KeeDi was wondering, if you do a push and update on a branch and the tree of that branch has uncommited modifications...what happens?16:53
jelmerit merges the changes and reports conflicts if there were any16:54
Wiz_KeeDugh...17:08
Wiz_KeeDand i can just push-and-update --overwrite yes?17:08
=== mmrazik is now known as mmrazik|afk
=== mmrazik|afk is now known as mmrazik
=== Peng__ is now known as Peng
=== yofel_ is now known as yofel
=== wedgwood is now known as wedgwood_away
=== SamB_ is now known as SamB

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