/srv/irclogs.ubuntu.com/2012/03/04/#bzr.txt

kbulgrieninteresting... bzr status sometimes fails to report status if the file happens to not have read perms for the user.00:04
kbulgrienie `bzr add this; bzr status` shows added.00:05
kbulgrien`bzr add this; chmod a-r this; bzr status` shows nothing00:05
kbulgrien`bzr add this; chmod a-r this; bzr status this` shows status00:06
kbulgrienreally, there's a good reason I'd like status in this case...00:06
kbulgrienbut I guess that's kind of wierd.  oh well.00:07
kbulgrienhmm. I wonder if that is true for both heavy and light checkouts.  I'm in a light checkout.00:07
kbulgrienhmm. something happened.  maybe I was crosseyed.  It's now showing status.00:10
kbulgrienI was crosseyed.00:11
kbulgrienhum. somehow I have made things so bzr status hangs.00:25
kbulgrienstrace is unhelpful00:27
kbulgrienI guess I am hosed.  I don't know how to fix.00:29
kbulgrienbzr check shows nothing bad.00:31
kbulgrienafaict, only bzr status is messed.01:00
kbulgrienAnd as long as I put in explicit file names, bzr status is ok, just not `bzr status` or it hangs solid.01:02
kbulgrienappears that 2.5.0 has the problem fixed.\02:41
kbulgrienfor that matter 2.4.2 is fixed.02:58
kbulgrienhead is hurting.  having hard time figuring out what I did wrong.  set up repo, init an area under it, checked out somewhere else. added, committed, but can't see anything going into the repo.03:32
kbulgrienAnyone want to help.  Shared repo tutorial isnt very tutorial03:33
stlsainti changed my default python now bzr has stopped working03:56
bob2what did you change it to04:16
bob2kbulgrien, it's unclear what you did04:16
bob2pastebin shell history?04:17
kbulgrienwell, shell history is so scattered, not sure pastebin will help here.04:23
kbulgrienI guess I could pastebin a reconstruction04:24
kbulgrienI don't know how to set up a new "lockstep" project.04:24
kbulgrienI've obviously done it wrong because there is nothing going into the shared repo04:25
kbulgrienI can't push or pull04:25
kbulgrienIt says there's nothing.04:25
kbulgrienthe shared repo data shows the revision that is in my checkout, but all the goods are in the checkout and won't go up into the repo04:26
bob2I think you're just confused about trees vs branches04:29
kbulgrienI come from cvs background04:29
bob2condolences04:30
kbulgrienit works04:30
kbulgrienno need to feel sorry04:30
bob2anyway, it's still not clear what you're saying, to me04:30
bob2do you mean "I made a repo, with init-repo --no-trees, then did 'bzr init' in some dir, then added and commited some files, then pushed to the repo, but the 'branch' dir, in the repo, is empty?"?04:31
kbulgrienbzr init-repo --no-trees top; bzr init-repo --no-trees top/mid; bzr init top/mid/bot;04:33
kbulgriensomewhere else I did bzr checkout --lightweight top/mid/bot .04:34
kbulgrienI probably should not have done --lightweight04:34
kbulgrienI did adds and commits in the checkout.04:34
bob2why did you make two nested repositories?04:34
bob2and is the problem you're asking about that 'top/mid/bot' doesn't have all your files in it?04:35
kbulgrienI thought I was making a repository for multiple projects04:35
bob2not sure what you mean04:35
bob2but you don't need (or want) to nest repos04:35
bob2just init a branch somewhere inside the repository04:35
kbulgrienyes, there are no files in top/mid/bot04:36
bob2that's what no-trees means04:36
bob2all the rev data is in .bzr in the /repo root/ and .bzr in the /branch/ has some pointers (and no data itself)04:36
kbulgrienthen why do docs say to use no-trees for centralized server repos04:36
bob2because it's a good idea04:36
bob2since 'bzr push' doesn't update checked out files04:36
kbulgrienwhat is a centralized server if it has no data04:36
bob2and newbies get immensely confused by that04:36
bob2:-/04:36
bob2it has /all the revision data/04:37
bob215:36:28 < bob2> all the rev data is in .bzr in the /repo root/ and .bzr in the /branch/ has some pointers (and no data itself)04:37
kbulgrienThe commit comments don't do me any good without the data04:37
bob2you're confused04:37
bob2all the data is there04:37
bob2there is just no checked out copies of the working tree04:37
bob2that's what --no-trees does - not check out the files04:37
kbulgrienI am looking at the file system.04:37
kbulgrienthere is no data04:37
kbulgrienonly meta data04:37
bob2false, fortunately04:38
bob2one last time: all the revision data is in the .bzr dir of the /repository/ (ie in the root), the .bzr dir in the /branch in the repo/ just refers to the revision data in the repo itself04:38
kbulgrien du04:39
kbulgrien1.0K./.bzr/branch-lock04:39
kbulgrien1.0K./.bzr/branch/lock04:39
kbulgrien5.0K./.bzr/branch04:39
kbulgrien9.0K./.bzr04:39
kbulgrien10K.04:39
bob2this is all unrelated to whether there is a workign tree or not04:39
kbulgrienI committed more than 10k04:39
bob2please read what I said04:39
bob2that's the contents of top/mid/bot/.bzr04:39
bob2"the .bzr dir in the /branch in the repo/ just refers to the revision data in the repo itself"04:39
bob2"all the revision data is in the .bzr dir of the /repository/ (ie in the root)" -> du -sh top/mid/.bzr04:39
kbulgrienok04:40
kbulgrienI see that04:40
kbulgrienI think04:41
kbulgrienyes. I see a repository folder that has packs and stuff.04:42
bob2bzr has branches (mutable pointers to a revision), repositories (big piles of revision data) and working trees (your checked out files, with enough info to be able to get pristine copies)04:42
bob2^ important model information04:42
kbulgrienwell, I can see what youre saying, but setting up a repository to me isn't nearly so clear as for cvs.04:46
kbulgrienI don't know that I've done what I wanted to do.04:46
bob2I'd start over04:47
bob2cd /srv/bzr ; bzr init-repo --no-trees something04:47
bob2mkdir something/projectname/branchname04:47
bob2cd !$04:47
bob2bzr init04:47
kbulgrienyou do nothing at the projectname level?04:47
bob2cd ~/something04:47
bob2bzr checkout /srv/bzr/something/projectname/branchname projectname04:48
bob2cd projectname04:48
bob2bzr add .... ; bzr commit -m'first commit111'04:49
bob2correct04:49
kbulgrienok04:49
bob2^ so it's just a matter of: make a repo (one time thing), make a branch in it (per-branch thing), check it out somewhere and then use it04:50
kbulgrienok, thanks for your patience.04:54
bob2progress?04:54
kbulgrienwell, I'm doing something a bit unconventional, so the setup is a little more complex than that.04:55
bob2unconventional how?04:55
kbulgrienperms and stuff04:55
kbulgrienI'm trying to version control changes I make to an OS.04:56
bob2do you mean /etc04:57
kbulgrienyeah, but sparsely04:57
kbulgrienI only track what I mess with.04:57
bob2I'd not bother and instead use etckeeper04:58
kbulgrienI'll look it up.  Part of the thing is that I need/want to learn bzr so I can transition workk over.04:59
kbulgrienI'm not really using it to preserve etc, but to preserve the knowledge of what I have to tweak to do what I want to do.05:00
kbulgrienI'm not really backing up etc per se.05:00
kbulgrienah, its a frontend to bzr...05:02
kbulgriento do this in cvs I wrote my own front end05:02
bob2(and git and hg)05:02
kbulgrienok05:02
kbulgrienwell, then it bears looking at for sure.05:02
kbulgrienI already had to make a wrapper script for files I had to sudo to get access to.05:03
kbulgrienbut it was way simpler than what I had to do for cvs05:03
kbulgriencool05:13
kbulgrienokay, managed to even keep the history in the checkout05:13
kbulgrienand then I checked out somewhere else and got the goods.05:13
kbulgrienI was able to push the original checkout into the remade repository.05:14
kbulgriennow the data is under "top/.bzr""05:15
kbulgrienwell even if I should have used etckeeper for this, it gave me a real world problem to solve that forced some learning.05:16
kbulgrienin the process, I found that 2.3.1 (mageia) had a bug with respect to no read perms in the checkout.05:17
sbarcteamhi.07:35
sbarcteamLet's assume I have a repository at rev. N07:35
sbarcteamI have a checkout branch (with bound=True)07:37
sbarcteamat location B at the same revision.07:37
sbarcteam(the 1st repo is at location A)07:37
sbarcteamnow, I am doing changes in B, and do a normal commit (not the one with --local)07:38
sbarcteamand before that commmit I do some changes in A07:38
sbarcteamand do not commit them.07:38
sbarcteamso, I have 1) dirty working dir, 2) updates on the way already in the repo history07:39
sbarcteamI want to merge both the update and the dirty working dir.07:39
sbarcteamwhat is the right (bzr) way to do this ?07:39
sbarcteamI thought I could commit the dirty work dir, but bzr doesn't allow.07:40
lifelessyou can commit --local, or you can just update.07:42
lifelessI would just update.07:42
sbarcteam#lifeless: so, If I commit --local and then07:43
sbarcteamthere's importance to not07:43
lifelessor you could shelve the work, and then update and then unshelve07:43
sbarcteamshelving is not a good idea.07:43
sbarcteamIt is a running django code.07:44
sbarcteamSo I want to commit the work running, and merge it off-line, test it and only then to deploy the merged code.07:44
sbarcteamWhat would happen if I uncommit on the location B.07:44
sbarcteamthen commit on A,07:44
lifelessyou can use merge --uncommitted to grab the uncommitted work.07:45
sbarcteamthen update on B07:45
sbarcteamand remerge.07:45
lifelessthat work work too07:45
sbarcteamOK.07:45
sbarcteamSo: on B (the checkout branch) uncommit the last merge, then on A: commit changes, then on B: update, and merge.07:46
sbarcteamright ?07:46
sbarcteam(and then I'd have to update A of course)07:46
lifelessyes07:49
wilxCan bzr sign-my-commits not use keychain/gpg-agent?10:00
hnoIs it possible to "unmerge" a merge in such way that it do not get expunged from the originating branch if it later pulls/merges changes?12:27
wilxI do not understand the question entirely. However, it is possible to uncommit the last commit.12:28
maxbhno: Only if you can uncommit the merge commit, or arrange for the originating branch to (merge; revert .) the unmerging commit14:16
hnomaxb, ok, not quite what I am looking for.15:01
hnoIt's very unlikely it's the last commit. May be many versions back, and development in the branch may have continued after merge.15:02
hnoI guess what I am really looking for is kind of a large distributed bzr-loom with loose threading.15:07
=== Quintasan_ is now known as Quintasan
=== yofel_ is now known as yofel
=== Omni|Work is now known as Omni|AFK

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