/srv/irclogs.ubuntu.com/2012/12/12/#bzr.txt

=== Logan_ is now known as Guest74070
=== Logan__ is now known as Logan_
mwhudsonjelmer: samba 4!?07:54
superflyjam: Thanks for the advice yesterday, I am sorted.07:59
jamsuperfly: cheers!07:59
mmrazikhello. I'm using (indirectly) tarmac to merge this MP: https://code.launchpad.net/~didrocks/ubuntu-wallpapers/new-pkg/+merge/138988 and I'm getting the following trace:08:01
mmrazikhttp://pastebin.ubuntu.com/1427031/08:01
mmrazikany idea? There is a file in the branch which has u'\xf8' in the filename08:01
mmrazikmhm... export LANG=en_US.utf8 did the trick08:10
mgzmorning!08:19
superflyaloha08:19
jelmermgz: wazaa!08:39
mgzkwoor08:39
jelmermwhudson: I'm as surprised as you are08:40
mgzjelmer: was that the right nick?08:50
mgzI missed the relevent bit of the log...08:50
jelmermgz: yeah, response to mwhudson's surprised outcry over samba 4 :)08:52
mgzjelmer: should `bzr diff --old file:,branch=trunk --new file:,branch=feature` work? I can't seem to persuade it to (using merge --preview does)08:53
mgz...you've not gone and released it, surely?08:53
mgzyou have! shocking.08:53
jelmermgz: we have, yesterday08:54
jelmerhttp://stationary-traveller.eu/samba-4.0.0.html08:55
jelmermgz: in theory that should work, I think08:56
mgzpretty much everything else does08:56
jelmermgz: you know about the co: syntax in 2.6?08:57
mgznope, have been using file:,branch=08:58
mgzco: is an alias for that?08:58
jelmeryep08:58
mgzI'd say I didn't see the merge proposal, but I probably approved it, then forgot since08:59
jelmerI think that might be the case09:00
ychaoucheHi. I'm still looking for a way to know which branch I'm in. https://answers.launchpad.net/bzr/+question/21648509:23
mgzychaouche: `bzr info` tesll you09:24
ychaouchemgz: it doesn't : http://pastie.org/pastes/5515023/text09:25
mgz...you're question isn't really specific enough then09:27
mgzwhat exactly is the directory you're running that in?09:29
mgzbecause after your example commands what you have is two directories in the cwd, one named 'dev' and one named 'prod'09:29
mgzthe branch you're in is neither of those, so, where did it come from?09:30
ychaouchemgz: it's a copy of dev09:31
ychaouchea physical copy, created with the cp command09:31
mgzthen the way you tell which branch it is, is it's the one you copied...09:31
ychaouchecp ~/REPOS/BZR/sugarbee/dev ~/.zdesktop/zimlets-deployed/_dev_com_feeder_sugarbee09:32
ychaouchemgz: that was not my original question09:32
ychaoucheI'm anticipating when code is put on the test server by someone else09:33
mgzif you copy an abitrary directory structure, you can't tell apart from by inspection what it ise09:33
ychaouchemgz: is there another way then ?09:34
ychaouchea way to track branches ?09:34
mgzthe answer you want is probably to not use cp, but create an actual branch or checkout09:34
ychaouchecheckout09:34
ychaoucheok09:34
mgzeg, `bzr checkout --lightweight ~/REPOS/BZR/sugarbee/dev ~/.zdesktop/zimlets-deployed/_dev_com_feeder_sugarbee`09:35
ychaoucheah ok09:35
mgzand use `bzr update` to update it, or `bzr switch` to change the branch being used09:35
ychaouchemgz: with my current setup (physical copy), suppose If i'm commiting something in the destination branch, it won't be commited also in the source branch, right ?09:37
ychaouchebecause for bzr there's no relation between them09:38
mgzright.09:38
ychaouchegood09:38
ychaoucheso i'll use physical copy back to the source, to simulate a commit, and then use checkout on the destination branch again to do things right.09:38
mgzthe correct way of doing that (temp hacks to live etc) would be to `bzr switch -b ~/REPOS/BZR/sugarbee/livehack` first09:38
mgzin the checkout09:39
mgzthen you can commit without affecting trunk/whatever you're running from09:39
mgzbut also integrate the change back if needed later09:39
ychaouchemgz: on the contrary, I want them to affect each other09:41
ychaoucheI want to replicate the svn way of doing things, for now. I know I can easily change the workflow later because it's easy to decentralize.09:42
mgzin which case, the lightweight checkout already does what you want by default09:42
mgzremember to run `bzr update` on both sides if you have two trees though09:42
ychaouchemgz: no just one tree09:42
ychaoucheoh sorry no two working trees09:43
ychaoucheI'm not used to terminology yet ^^09:43
ychaouchebut since I'm checkouting from a branche, doesn't commiting in the checkouted branch also commits to the original branch ?09:43
ychaoucheI'll just have to update09:43
ychaoucheok09:43
ychaouchesorry, I'm a bit slow09:44
mgzno problem :)09:46
ychaoucheyeah I didn't realize that the original branch is also a working tree, so it needs to be updated.09:46
mgzsee for reference: http://doc.bazaar.canonical.com/bzr.2.5/en/user-guide/core_concepts.html09:46
mgzyou can create those branches without trees (or remove the trees) if you want to be closer to the centralised model, depends if you have seperate deployment and development workspaces or want one tree for everything09:48
ychaoucheI'll answer you in a second, I have a question first : the help for the checkout command says with the --lightweight option the usual operations need access to the original branche, so I'm loosing the decentralizing work here. Right ?09:49
ychaoucheI want to keep my working tree "local"09:50
ychaouchedecentralized, and then "merge back" or I guess "push" to the branch I checkouted from09:50
ychaoucheI want to simulate a decentralized environement on my own machine, to be able to reproduce those operations when going test/live09:50
ychaouchemgz: yeah I read the user-guide and the 5 minute intro already.09:51
ychaoucheBut I'll read the lightweight checkout again.09:52
ychaouchehttp://doc.bazaar.canonical.com/bzr.2.5/en/user-guide/using_checkouts.html#getting-a-lightweight-checkout09:52
ychaoucheand stacked branches09:53
mgzignore stacked branches, they're not what you want :)09:53
mgzyou can use checkouts in tandem with a decentralised workflow, it's just if there's *only* one branch and everything else is a checkout that you lose the win09:54
ychaoucheI'm not sure to fully understand what push does. Does it create an exact copy of the branch to another location ?10:34
ychaoucheIt seems that in bazaar, every working tree is a branch10:35
=== AfC1 is now known as AfC
mgzit transfers data from the respository and updates the branch pointer to the same as the local branch10:35
mgzit does not change the remote working tree, if one exists10:35
mgzand no, working tree and branch are seperate concepts10:36
mgzby default when you branch something you get all three of repository, branch, and tree10:37
=== mmrazik is now known as mmrazik|lunch
ychaouchemgz: this is how I intend to work http://i.imgur.com/T0uO7.png, in an answer to your previous question about wether I want centralized or decentralized model.11:04
ychaoucheAny comments appreciated, especially on how to improve this process if possible11:05
ychaouchebrb : lunch11:05
=== mmrazik|lunch is now known as mmrazik
j^so bzr not does ssl verification without SNI support? thats sad12:28
mgzI can't parse that...12:34
mgzychaouche: you probably just want to deploy to the test server using bzr-upload or something and not have any branches actually living there12:42
j^mgz: SNI = Server Name Indication allows multiple https vhosts per ip12:43
ychaouchemgz: suppose I use bzr-upload or just plain tarball deploying to the test server without having any branche there. Suppose I make a hotfix on the testserver. How can I merge those hotfixes back to the prod branch ?13:08
ychaoucheA merge obviously doesn't work : http://pastie.org/pastes/5515954/text13:51
ychaouchecfsb was created with a bzr export --format=tgz13:51
ychaouchemgz: besides, if I'm not using a branche in the test server, we're back to the beginning of our problem which is : how do I know what branch is it ? dev or prod ? :)13:53
ychaouchethat's why I imagined having also a REPO in the server13:54
ychaoucheinside the repo, the name of the name of the folder IS the name of the branch, so I know at any given time what branch is in what directory. In the /srv/www/, the folder containing the branch is names arbitrarily, so the only way I know which branch it contains is when I'm checkouting from the local repository.13:55
ychaoucheI hope that explains a little better what I'm trying to do and what problems I'm addressing.13:55
ychaoucheso you can parse the diagram ;)13:56
=== slank_away is now known as slank
=== slank is now known as slank_away
=== slank_away is now known as slank
=== mmrazik is now known as mmrazik|afk
jlfgood morning #bzr, i've been trying to find out how to show all files that were changed in a particular commit but i didn't see anything applicable in `bzr help commands' or the man page.  can anyone enlighten me?16:31
jpdsjlf: Sounds like: bzr status -r $REVISIONID.16:36
jlfdoesn't that show the state of my current tree with respect to $REVISIONID?16:37
mgzjlf: if you pass a revision range (or use -c $REV) it's like a diff across those revisions16:38
mgzooh, and a bug... requires a working tree even when it doesn't16:39
jlfmgz: that does it, thank you16:39
jlfjpds: and thanks to you as well16:40
mgzbug 39239116:41
ubot5Launchpad bug 392391 in Bazaar "bzr status with a revision range requires a working tree" [Medium,Confirmed] https://launchpad.net/bugs/39239116:41
ychaoucheNeed advice on establishing a good workflow https://answers.launchpad.net/bzr/+question/216615, please leave a message there. I have to go home now.16:55
ychaoucheTIA16:55
=== deryck is now known as deryck[lunch]
=== deryck[lunch] is now known as deryck
=== yofel_ is now known as yofel
=== lifeless_ is now known as lifeless

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