/srv/irclogs.ubuntu.com/2014/11/24/#bzr.txt

=== r0bby_ is now known as robbyoconnor
=== BasicMBP is now known as BasicOSX
=== c74d is now known as Guest13071
=== c74d is now known as Guest10552
peetaurWhat's the easiest way to split up a big patch into a bunch of smaller ones?20:27
mgrandiwell, you can either commit only some of the files at a time20:35
mgrandior you can select only certain parts of files to commit, although i believe that requires staging (this is easiest in bzr explorer -> stage)20:36
mgrandierr, shelve20:36
peetauris bzr explorer some other tool?20:38
mgrandiits a GUI for bazaar, makes certain things eaiser20:38
mgrandieasier*20:38
peetaurhow do I make a local commit? I split one of my patches manually and it won't let me commit, since it seems to want to send to the remote.20:38
peetaurbzr: ERROR: Cannot lock LockDir(http://bazaar.launchpad.net/~apparmor-dev/apparmor/master/.bzr/branch/lock): Transport operation not possible: http does not support mkdir()20:38
mgrandiyou append --local when you do bzr commit, although thats weird that its doing that, is it bound to the http version of the branch?20:39
mgrandiprobably should unbind the branch, 'bzr unbind'20:40
mgrandiand rebind it with the correct url, "bzr branch lp:apparmor"20:40
mgrandierr "bzr bind lp:apparmor"20:41
peetaurand then I can commit locally?20:42
mgrandiif you 'bind' a branch, it wants to commit to remote after you commit locally, sort of like svn20:42
mgrandiif you only want to commit locally now, just 'bzr unbind'20:42
peetaurokay so I did the bind thing and same sort of thing     bzr: ERROR: Cannot lock LockDir(chroot-72202384:///%2Bbranch/apparmor/.bzr/branch/lock): Transport operation not possible: readonly transport20:47
peetaurso I have to unbind every time I want to commit locally?20:47
peetaurno way to add multiple remotes like with git, and choose when and where to push?20:47
mgrandiwhat is chroot-72202384?20:48
peetaurno idea :D20:48
mgrandiBind is just a convince, to make it act like SVN, its not really like a git remote20:48
mgrandijelmer: do you have any idea what his problem is?20:49
mgrandiyou can just leave it 'unbound', and then when you are ready, you commit it, and push it to launchpad, then you can do a merge request there20:49
peetaurk, I think that answers an unasked question.. so when I bind, I'm binding to my own personal thing then20:50
peetaurcan people choose individual commits from my online version?20:50
peetaur(without manually editing that is)20:50
mgrandithey can set the branch tip to be a certain commit and merge that20:51
mgrandialthough i'm pretty sure merging one commit is preferable then a bunch of them20:52
mgrandiyou can have multiple commits, like commit 1: fixed thing, part 1, commit 2: part 2, commit 3: finished feature, and then at commit 3 they merge it20:53
peetaurk, well I have a feature, a few fixes, and some typos, and 2 major performance fixes (one or the other or both takes a certain audit.log processing down from unknown >1h to 5 min :))20:54
peetaurwell actually one of the bugs is 1/2 performance fixes20:54
mgrandiwell usually in all version controls, a merge request should be 1 thing20:54
peetaurso I can just dump that there and they won't scream?20:54
mgrandiso 1 merge for a feature, 1 for the bug fixes, etc20:54
peetaurcan I request one feature merged even if my online thing has a bunch?20:55
mgrandii'd probably ask on wherever apparmor's irc is and see if they have a preference20:55
peetaurk, I think they just want email on the list20:55
peetaurbut the online thing would be an interesting option, like if I could link them to my patches there or something20:56
mgrandithat too, you can just generate a patch file20:56
mgrandii would just have it so you have the base that you branched off of20:56
mgrandione patch file that goes from base -> code with feature20:56
mgrandione that is base -> code with bug fixes20:56
mgrandione with base -> log improvements, tec20:56
mgrandietc*20:56
peetaurwhat I was planning was to split my commit into a few, then do like "git diff oldremote commit1" and send, then "git diff commit1 commit2" etc20:57
peetaurdoes that plan make sense with bzr?20:57
peetaurso to merge my question and your question...   you say file, but I say commit. Can bzr do diffs between local commits like git can?20:57
mgrandiyeah20:58
mgrandi"bzr diff -p1" is equivalent to "bzr diff --prefix old/:new/", and20:58
mgrandi  produces patches suitable for "patch -p1"20:58
peetaurI have been simply using "diff" and patch -p1 seems happy :D20:59
peetaur"bzr diff" that is20:59
peetauror maybe I imagined it20:59
peetaurhttps://bugs.launchpad.net/bzr-historycache/+bug/382957  how do I disable plugins?21:01
ubot5Launchpad bug 382957 in Bazaar History Cache "bzr: ERROR: Transport operation not possible: readonly transport" [Low,Confirmed]21:01
mgrandiso you are using bzr-historycache?21:02
peetaurI don't think so https://bpaste.net/show/7281d000cfdc21:02
peetaurso is that not my bug?21:03
mgrandican you paste the entire traceback when you are getting the 'transport operation not possible'?21:04
peetaurthere is no trace, only that line21:04
peetauris this related then? do I need to create a new branch? https://answers.launchpad.net/launchpad/+question/15470421:05
mgrandione sec21:08
mgrandiare you sure your branch is unbound?21:09
mgrandibzr info -v21:09
mgrandipaste that in pastebin21:09
peetaurI am not sure of anything... I don't know bzr at all :D  https://bpaste.net/show/cfc4a9afda0921:11
peetaurit is not unbound21:11
mgrandiso run bzr unbind just to be sure21:11
peetaurbecause I ran "bzr bind lp:apparmor"21:12
peetaurbut I wanted to put it on lp to test it21:12
mgrandijust run 'bzr unbind', don't need to specify a url21:12
mgrandiyou need to create a branch on launchpad i believe21:12
mgrandior fork it21:12
mgrandisomehow on bzr21:14
mgrandione sec let me find it21:14
mgrandiok21:17
mgrandiyou branched lp:apparmor21:18
mgrandifor something i did a while ago, it says for me (except it was lp:bzr)21:18
mgrandihttps://gist.github.com/anonymous/6086156f7e6d80caeb8121:18
mgrandiso try bzr push lp:~<USERNAME>/bzr/<BRANCH_NAME>21:18
peetaurpush, or bind?21:21
mgrandipush21:21
mgrandithat will put your branch on launchpad21:21
mgrandiand then you can go to "https://code.launchpad.net/~apparmor-dev/apparmor/master", and click "propose for merging"21:22
peetaurhow can someone view my branch without a propose for merging?21:24
peetauroh I guess I found it.... clicked "code" tab at the top of my page https://code.launchpad.net/~peter-maloney/bzr/peter21:25
mgrandiyeah21:26
mgrandiyou put that as the "Target Branch" when you are "registering a merge"21:26
mgrandi(when you are here: https://code.launchpad.net/~apparmor-dev/apparmor/master/+register-merge)21:26
peetauryes but the apparmor project does it on the mailing list, so I'll play around with the lp pushing, but not do the merge request21:31
mgrandiok21:33
peetaurso thanks for all the help21:36
peetaurand I decided that copying my bzr repo, using vimdiff one file at a time, then commiting the copied repo works for splitting patches21:37
mgrandiok! let me know if you have any more questions =)21:49
peetaur(copying bzr repo, then "bzr revert" that is)22:10

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