/srv/irclogs.ubuntu.com/2010/12/23/#bzr.txt

knighthawkokay so I'm new to bzr but been using svn for years. Thought I understood Bzr differences but now not so sure.00:10
knighthawkI created a repos on my local machine using bzr init.00:10
knighthawkThen after a few revisions I realized I was going to need a central repos and created it with init-repo00:10
knighthawkthen using bzr export I copied the files over and thought I had a central repos all set up.00:11
knighthawkI could pull from it but not commit to it.00:11
knighthawkI think because it didn't have a working tree.00:11
knighthawkso I used 'bzr update .' to create a tree in the repos00:12
knighthawkthe problem is (I think) that my original branch seems to have its own repo and doesn't seem to be tracking from the central repo. So I *think* all I want to do is update something to tell my local copy to use the branch at the central repos as its trunk now.00:15
spivYou may find the "bzr info" and "bzr reconfigure" commands helpful00:15
knighthawkbut I'm not *sure* that's what I want and don't know how to do it yet. (though If I'm confident that's what I want to do I'm sure I can look up the commands)00:16
knighthawkthanks spiv00:16
spivBut also I think you are confusing some concepts00:16
spivA shared repository is independent of whether a branch/checkout is "tracking" (as you put it) another branch.00:16
spivA shared repository, the thing you create with "bzr init-repo", is basically just a storage (and speed) optimization.00:17
spivIt doesn't actually affect the behaviour of the branches that use it.00:17
knighthawkyeah I'm not too clear about what's not working there. At first everyone could pull or checkout but no could commit and I don't think they could update from the central repo. Now that I have a working tree there that may change but it seems from what I'm reading that I shouldn't need a working tree at the shared repo00:19
spiv"bzr info" is useful for inspecting how things are connected.00:25
knighthawkokay so I think what I want to do is from my local host branch run 'bzr reconfigure --use-shared <path/to/shared/repo>'00:39
knighthawkthen it seems like I don't need the working tree in the shared repo (is there any reason I should remove the tree that's there?)00:40
knighthawkWhen I tried that I got 'bzr: ERROR: sftp://repo/path/branchName/.bzr / is not a local path'00:45
spivA branch can only use a shared repository in one of its parent directories.00:54
knighthawkspiv, I'm in the top level directory for the branch. (if that's what you mean)02:17
=== mtaylor|afk is now known as mtaylor
spivknighthawk: no, I mean that if you branch is at directory /a/b/c/your_branch, then the shared repository has to be at /a/b/c, /a/b, /a, or /.02:54
=== Ursinha is now known as Ursinha-afk
=== mm-mysql_ is now known as mm-mysql
knighthawk ah thanks spiv04:51
knighthawkokay so no errors now but bzr info still says its a stand alone branch04:55
spivknighthawk: 'bzr reconfigure --use-shared' will change that, if there's a shared repo it can use (i.e. there's one in a parent directory)05:03
knighthawkspiv, so before I was trying 'bzr reconfigure --use-shared sftp://path/to/repo/project' now I'm doing 'bzr reconfigure --use shared sftp://path/top/repo/' and like I said no errors now. but bzr info hasn't seemed to update.05:10
spivknighthawk: You're doing 'bzr info sftp://path/to/repo/project' ?05:21
=== spiv changed the topic of #bzr to: Bazaar version control | try https://answers.launchpad.net/bzr for more help | http://irclogs.ubuntu.com/ | Patch pilot: Santa Claus | | 2.3b4 is officially out ! (rm vila)
vilahi all !07:46
vilayeah for Santa Claus, best pp ever :)07:50
spivvila: :)07:51
mkanatlol07:52
vilaspiv: before you leave: enjoy your... leave :) and Happy Christmas !07:52
spivvila: thanks, you too!07:53
spivvila: so to leave with a bit of a negative review on one of your patches :(07:53
spivvila: it looks like a step towards the right fix, but not yet a complete fix.07:54
spivs/so/sorry/07:54
spivWow, I'm so sorry I couldn't even type the word!07:54
vilawell done (reading now), if it doesn't fix it, better to catch it now :)07:54
vilaok, read07:55
vilahehe, I said it and will keep saying and thinking it, importing symbols is confusing :)07:56
vilaREPORT_ONLY_FIRST_FAILURE is defined only in doctest, so it should be prefixed07:56
spivAll the more reason for consecutive lines to be consistent ;)07:57
vilaDocTestSuite is redefined in bzrlib.tests and is the one we want to use so should *not* be prefixed07:57
spivOh, redefined with the same name?  Ew.07:57
spiv*That* is confusing.07:57
vilaright07:57
spivRename to BzrDocTestSuite perhaps?07:57
vilashould I rename it BzrDocTestSi... :)07:58
vilanow, whether this fix 321320 is a bit blurry, it *fixes* the issue with brnchbuilder as EMAIL is now set correctly, but HOME is still problematic07:59
vilamore broadly, setting evn vars to None is always ok, setting them to specific values is always tricky07:59
vilaI think I said that in the comments, but you rightly point that we have been wrong with HOME08:00
vilaso coming back the beginning of the discussion: I see nothing negative here :)08:00
spivIt doesn't fix the branchbuilder issue for me: it still executes gnome-gpg, as specified by my ~/.bazaar/bazaar.conf08:01
vilayup08:01
vilamy bad, I don't encounter the issue and failed to check it08:01
spivTo be fair it helps, because HOME is now set to the cwd rather than my actual HOME08:02
spivBut sometimes my cwd == $HOME :)08:02
vilayup, that's wrong anyway08:02
spiv(Also there are other ugly side effects like spewing .bzr.log into odd places)08:02
vilastill ???08:03
spivWell, into the cwd08:03
viladoctests spew .bzr.log files ??08:03
vilasuspicion or fact ?08:03
vilagrr, two different threads08:03
viladid you see .bzr.log files ?08:03
spivvila: Well, when my cwd == $HOME, the tests wrote to my ~/.bzr.log08:03
vilabah, I can check that08:03
vilahmm08:04
spivHmm, but apparently not to the other dir I tried?08:04
spivOdd.08:04
vilaanyway, mgz + spiv 1 - 0 vila, back to drawing board :)08:05
spivAnyway, set HOME to a temporary dir in doctests and I'll stop caring :P08:05
vilayup08:05
vilamgz was asking for roughly the same thing in different words08:05
spivIt may mean pulling out more of the isolation code into functions08:05
vilaexactly his words :)08:05
spivOh, and your branch isn't linked to the bug!08:06
* spiv just noticed08:06
vilaI resisted a bit because doctests use setUp/tearDown, no way to have a addCleanup there08:06
vilahaha freudian slip !08:06
spivOk, EOD and EOY for me here.08:07
spivFWIW I think addCleanup is possible08:07
vilathanks for the review and the discussion !08:07
spivYou could build it with bzrlib.cleanups perhaps08:07
spivBut, really gone now :)08:07
vilayeah, no *easy* way to have08:07
vilawow, setting HOME to None doesn't annoy our test suite *at all*...08:26
vilaI wonder if... it doesn't get set by some lower level layer though... or what will happen on other OSes...08:27
AfCvila: you have no $HOME08:39
vilayeah, looks like Linux is friendly with the homeless ones, why am I not surprised :)08:40
* vila runs it on babune to see how other OSes consider homeless tests :D08:40
fullermdThat's not really homeless, though, it's only virtually homeless.08:41
vilafullermd: is this just a joke or are you trying to convey some intuition there ? HHOS08:42
vilaI find it hard to believe that you can run that much code without HOME being set...08:43
vilabut I can't deny successful test either...08:44
vilatestS even, ~24000 and some08:44
fullermdWell, what's it need $HOME for, anyway?  Just looking up bazaar.conf and plugins, neither of which it needs?08:44
vilafor bzr itself, yes, but no other lower level stuff ?08:44
vilano unix centrism at all ? Nowhere ?08:45
vila.bzr.log in addition to plugins and config files, may be apport stuff too...08:47
vilabut apport is disabled most of the time and .bzr.log files... may handle being homeless08:47
fullermdActually, doesn't the test suite override $HOME for that stuff anyway?08:50
spivAlmost all the test suite overrides $HOME, yeah.  Off the top of my head the only bits that don't are doctests, and vila's fixing that...08:53
vilafullermd: that's the issue I'm looking at, it wasn't for the doctests, now it does (in a pending submission), I changed it to make HOME == `pwd` and spiv raised some valid concerns when pwd == $HOME (the real one)08:53
vilaso I tried setting HOME to None (aka deleting it from os.environ) and wow, it passes08:53
* spiv isn't really here, of course.08:54
vilaI think I will set it to some tmp dir, just because it's... scary , but the experiment is worth a try08:54
vilanothing beats what the English expression for demonstrating something by checking that the opposite is absurd ?08:55
glyphHey #bzr-ers08:55
glyphI'm happy these days using bzr as a Subversion client, I hardly ever have to invoke 'svn' itself any more08:56
glyphbut, increasingly I am being called upon to look at and work with repositories in Git or Mercurial, and it seems like the plugins for interacting with those are pretty primitive.08:56
glyphWhich seems weird, given that as DVCSes their data models are more similar to bzr's than svn's is.08:56
glyphIs there a plan in the works for improving support for them?08:57
vilaglyph: given that the plugins main author is joining the bzr team next year, I'm very tempted to say the situation can only improve...08:58
=== vila is now known as vila-afk
bob2vila-afk: jelmer?08:59
vila-afkbob2: himself09:00
bob2oh, cool09:00
glyphvila-afk: "next year" like "in a week, when it's january" or like "in 12 months"?09:02
vila-afkglyph: the former, but make that a month09:02
* vila-afk really afk now !09:02
glyphokay that is awesome.09:03
glyphthanks for the info :)09:03
=== Ursinha-afk is now known as Ursinha
mxchi12:57
mxcis it normal for bzr to need to send 100kb to the server to commit a change which consists ofa  single line in a single file?12:58
Pengmxc: Yeah, probably. It needs to find out what it has to send. Is it using a smart protocol (e.g. bzr+ssh, not sftp)?13:04
mxcnope, sftp13:04
Pengmxc: Oh, then that definitely sounds normal.13:04
mxcoh, ok13:04
PengMore or less. I mean, I don't know the exact usage expected, but it sounds about right to me.13:05
PengOver a dumb protocol, it can't just ask the server "What do I need to send?", it has to go digging around in the repository's files.13:06
PengPlus, it likely grabs more data then necessary sometimes to reduce roundtrips.13:06
PengAnyway I'm about to pass out from hunger bbiab13:07
mxcis there anyhting dangerous if i unbind my repo and rebind to hte same repo using bzr+ssh isntead of sftp?13:07
PengProbably not? There should be a "switch" command or such.13:09
PengIf you mean a branch rather than a checkout, just push/pull --remember.13:09
PengWhich is safe as can be.13:10
=== frakturfreak_ is now known as frakturfreak
taconehello, is there a way to have multiple push locations ? (i.e. every "bzr push" will push to 2 different locations)15:02
* mgedmin would like15:03
jelmertacone: not with stock Bazaar, there might be a plugin that does15:03
taconei only found bzr-push-and-update but I'm not sure it's doing that. the documentation is confusing15:04
jelmerno, bzr-push-and-update doesn't provide that15:05
taconeoh, ok.15:06
mgedmindoes bzr push lock the source branch?15:06
jelmermgedmin: it should only read-lock15:07
* mgedmin is considering a plugin to mirror his branches in the background, while he continues working in the foreground15:07
mgedminso that would mean I can't bzr commit if there's a push going on15:07
mgedminhm15:07
jelmermgedmin: I think that should work15:07
taconejelmer: maybe the repo-push plugin ?15:16
jelmertacone: that pushes an entire repository, it doesn't push to multiple locations15:17
jelmertacone: I think you'd either have to write your own or use a shell script or something like that15:17
taconeguess i'll go for a shell script. thanks15:17
=== joey is now known as Rinchen
=== Rinchen is now known as Launchpad
=== Launchpad is now known as joey
=== joey is now known as linaro
=== linaro is now known as launchpad
=== launchpad is now known as joey
frathgebercould anyone please update me what's the current status on nested subtree support in bzr? my experiments with bzr join --reference (still in beta i know) concluded that this feature isn't quite useable yet (at least for what i wanted to do)16:26
frathgeberwhat's the current best practice then for nested subtrees?16:26
jelmerfrathgeber: nested trees are not supported yet - there are a few plugins that provide similar functionality16:28
jelmerbzr-externals being the most notable one probably16:28
frathgeberjelmer: thanks, that's what i figured from some research16:31
frathgeberproblem is i want to bootstrap my dotfile configuration from a bzr repo when deploying on a new machine. and if that depends on a bzr plugin already installed it somehow defeats the point16:32
frathgeberany good idea what i could do in this case?16:33
=== jelmer_ is now known as jelmer
=== Ursinha is now known as Ursinha-lunch
=== vila-afk is now known as vila
lifelessmgz: how is testtools trunk looking to you?17:50
mgzC:\bzr\testtools>testtools\run.py testtools.tests.test_suite17:51
mgzTests running...17:51
mgzRan 586 tests in 2.688s17:51
mgzOK17:51
lifelessrighto17:54
lifelesswill do a 0.9.9 todayish17:54
lifelesshey17:54
mgzwhat did 0.9.8 miss?17:54
lifelessdid you see I rewrote a bunch of stuff in testrepository17:54
* mgz looks at the log17:54
lifelessI was wondering if if you could update your patch[es]17:54
lifelessand then I'll merge them17:55
mgzwill do.17:55
lifelessmgz: 0.9.8 missed two defects in testresult.time() handling17:56
lifelesswhich got highlighted when testrepository started depending on it for parallel test partitioning17:56
mgzugh, datetime is such a pain.17:56
lifelessyes, the 'no timezone' instances are BONG17:57
lifelessI really don't understand why they did that. I mean, for simple floats, time.time() stuff - understandable. But /datetime/ ?!17:57
lifelesssorry, ‽17:57
mgzah, that's what these DocTestMatches failures are about, should have thought of it before18:16
mgz(Pdb) actual18:16
mgz"True True True\r\n['b:\\\\temp\\\\tmpgohhtz\\\\testr', 'foo bar', 'baz']\r\n"18:16
mgzit's dumb about newlines!18:16
mgzfixing the last two failures is hard, because the actual code is bad and wrong18:31
mgz    elements = [command] + list(testargs)18:32
mgz    cmd = ' '.join(elements)18:32
mgzyou can't do that, it's unsafe.18:32
mgzthe problem is that TestListingFixture wants a string for `self.template = cmd_template`18:32
mgznot a list, which could be used safely.18:32
mgzhow much of a breaking change would it be to just fix that lifeless?18:33
=== Ursinha-lunch is now known as Ursinha
hazmatjust noticed bzr replaced a '!!' in my commit message with 'bzr stat' seems odd.19:21
lifelessmgz: TestListingFixture hasn't been in a release19:35
lifelessmgz: so there are no api concerns about it at all19:35
lifelesshazmat: thats your shell19:36
lifelesshazmat: almost certainly19:36
zygalifeless, hi, is there any guide or doc about using bzr on nfs19:39
lifelesszyga: don't do it?19:39
zygalifeless, I have a tiny standalone branch19:39
zygaseveral dozen KB19:39
lifelesszyga: the branch and repo formats will work fine on nfs, as they do even on ftp19:40
hazmatlifeless, indeed it is19:40
zygabzr status on that branch takes megabytes of transfer and does not complete19:40
lifelessthe working tree needs reliable operating system locks.19:40
zygalifeless, I have nfs4 so locks should also work19:40
zygabut I worry about just not working fast enough for anything19:40
lifelesszyga: we get a constant stream of 'does not work on nfs' -> 'check your locks' -> 'oh! that works'19:41
zygaright now it's taking ~40Mbit to bzr status in that 10 file branch19:41
lifelesszyga: however, the many megs of transfer is a kernel bug19:41
lifelesshttps://bugs.launchpad.net/ubuntu/+source/linux/+bug/48044419:41
ubot5Ubuntu bug 480444 in linux (Ubuntu) "packet storm with linux NFSv4 client when calling ftruncate()" [High,Triaged]19:41
zygaoh19:41
zygathat's new! :)19:41
lifeless200919:41
zygathanks, that at least makes the debugging operation far shorter19:43
lifelesszyga: de nada19:44
lifelessmgz: why the change in testcommand from cmd = .., repeated to daisy-changed .replaces ?19:45
lifelessmgz: I find the latter an uncommon style in python, even though its hyper-common in (say) smalltalk19:46
lifelessoh, .replace instead of re19:46
lifelessmgz: why?19:47
lifelessmgz: also, why are you not looking for bin/testr in the test_setup change?19:49
mgz<lifeless> mgz: why? <- see latest comment and re.sub documentation20:03
mgz<http://docs.python.org/library/re.html#re.sub>20:03
mgz"repl can be a string or a function; if it is a string, any backslash escapes in it are processed. That is, \n is converted to a single newline character, \r is converted to a linefeed, and so forth."20:04
mgzso re.sub("\$BLAH", "C:\\temp", "$BLAH") -> "C:\x09emp"20:05
mgz<lifeless> mgz: also, why are you not looking for bin/testr in the test_setup change? <- because DocTestMatches was just outright borked there20:05
mgzprobably was the newline thing again, might be able to do .replace("\r", "") and revert what it's looking for.20:06
mgz^(personally, I find chained replaces less silly than repeated assignments to the same variable, and the least worst option when not doing something one-pass fancy)20:07
mgzoh, and looking for bin/testr needed changing anyway, there's nothing binny on windows20:10
mgzthe script goes in Python24\Scripts\testr or similar20:11
mgzif you tell me what that check is actually trying to confirm, I can write a portable version of it.20:11
lifelessmgz: I want to check that that some known thing - e.g. the entry point script - is shown by the setup command20:13
lifelessas a proxy for 'and setup works properly'20:13
lifelesswhat you made it look for is too early in the process20:13
mgzhow about checking each of the "running X" steps lines exists?20:13
mgzrather than just the one I used.20:14
lifelessI want to see project data20:14
lifelessI'm not inclined to believe that setup.py's overview output tells us anything interesting about it, given failures I've seen in the past.20:17
mgzwell would "    running install_scripts\n...    adding '...testr'\n..." do then?20:21
mgzotherwise need to pull something in from distutils to get the dir it installs scripts to20:22
lifelessmgz: that would be fine20:34
lifelessvila: hi20:37
mgzhurgh, and then the matcher output formatting confused me.20:39
mgzthe real output doesn't have a four-space indent.20:39
taconehello, is there any method to concatenate 2 working tree and have the second start at the end of the first ?20:57
taconei mean the first revision of the 2nd should be the last revision of the first+120:58
nekohayohey there, I'd like to, say, "grab commits 2..6 from branch foo", then commit 1-2 commits, then "grab commits 8..10 from branch foo", but *without* losing the individual history of those commits21:39
nekohayoie I'd like to keep the commit messages, author, timestamps, etc21:39
nekohayois it possible?21:39
nekohayosounds to me like a mix of the concepts of cherry-picking and rebasing, but I don't know if bazaar can do this21:40
mkanattacone: I think you want "bzr join"?21:41
taconemkanat does bzr join allow me to concatenate 2 trees consequentially ?21:42
mkanattacone: bzr help join21:42
taconedoc is not clear to me21:43
taconebtw:  The TREE argument should be an independent tree, inside  another  tree,        but  not  part  of it.21:44
taconeseems not what i'm looking for21:44
mkanattacone: You could make it do what you want.21:49
mkanattacone: Unless you're talking about two trees with identical file names.21:49
mkanattacone: In which case, AFAIK, the answer is "unfortunately no".21:50
tacone...21:50
taconemaybe i could try to merge the rev.1 of the second tree in the first tree21:50
taconeand try to simply bzr pull21:50
mkanattacone: I'm not sure you can merge trees that don't have anything in common. You could try though.21:51
mkanatany revisions in common, that is.21:52
taconeyes i can, i just need to handle conflicts21:52
mkanattacone: Well, true.21:54
mkanattacone: But the history of the files won't be merged.21:54
mkanattacone: They will appear to be separate files, just like if you'd done join and then mv.21:55
mkanatOh, although I suppose they don't have to be.21:55
taconenot sure21:55
mkanatYou would have to do the file content merging manually, though.21:55
taconebut it really does not matter in my case21:55
nekohayooh, maybe bundle-revisions is what I'm looking for21:55
lifelessnekohayo: perhaps you just want21:59
lifelessmerge -r 6 source; commit; merge -r 10 source; commit21:59
lifelessnekohayo: however, if you want to skip a revision, you either need to back it out (as a commit) or rebase21:59
nekohayolifeless, but then I'd lose the original commit message, author, timestamp22:00
lifelessnekohayo: merging a prefix of a branch doesn't lose metadata22:00
nekohayohuh?22:00
lifelessif a branch has 10 commits22:01
lifelessmerging the first 5 preserves the revision graph, all the original data is there22:01
lifelessif you then merge the last 5, same thing applies22:01
lifelessits only if you want to skip a commit that things become cherrypicks (which is what rebases are)22:01
nekohayoyeah, the problem is that I want to skip a commit in the middle and replace it by something else22:02
lifelessso you can rebase, which will make commits that appear like the originals but have new revision ids22:02
nekohayoI thought you could only rebase "onto" something22:03
lifelessthe command is called 'replay'22:03
lifelessthe internal logic is that of rebase22:03
lifelessits in bzr-rewrite22:03
nekohayolifeless, for some reason I can only find the doc page for http://doc.bazaar.canonical.com/plugins/en/rebase-plugin.html22:05
lifelessthe rebase plugin was renamed to rewrite to reflect its broader mandate22:06
nekohayowow, replay does almost everything22:07
nekohayoexcept it doesn't preserve the author22:07
nekohayo(I used bzr replay -r 159..164 ../reworkd/ )22:08
nekohayois there something like that but that keeps the author?22:08
lifelessthat may be a bug, it predates the separated author facility22:08
nekohayohm?22:09
lifelessprobably fairly easy to fix - could you file a bug to start with?22:09
lifelessbugs.launchpad.net/bzr-rewrite22:09
* nekohayo files a bug22:09
nekohayofiled as https://bugs.launchpad.net/bzr-rewrite/+bug/69394922:12
ubot5Ubuntu bug 693949 in bzr-rewrite "bzr replay doesn't preserve the author of commits" [Undecided,New]22:12
mgzwhat's the easiest way to get an interdiff in svn without actually committing...22:15
mgzprobably need to copy the whole tree.22:16
lifelessdifftacular22:16
lifelessor diff -r branch:/..:5422:17
lifelessoh22:17
lifelesssvn... bzr import-svn :)22:17
mgz:)22:18
taconeguess my best option is to reimport manually my 13 revision on the top of the new branch22:29
jelmernekohayo: I can't reproduce that22:31
nekohayohuh22:31
nekohayowhat version of bzr rebase?22:32
nekohayoI'm using the one that came with ubuntu 10.1022:32
jelmerI'm using trunk22:32
jelmerbut I don't think this part of the code has changed recently22:33
* nekohayo just tried again, same result22:35
jelmernekohayo: with trunk, or with 0.6.1 ?22:35
nekohayo0.6.1; I'll try a bzr branch lp:bzr-rewrite into my ~/.bzr/plugins22:36
nekohayo.bazaar/plugins/ I mean22:36
lifelessbzr branch lp:bzr-rewrite ~/.bzr/plugins/rewrite22:37
lifelessnekohayo: ^22:37
nekohayoya22:38
jelmerlifeless: s/\.bzr/.bazaar/22:38
nekohayook done22:38
nekohayostill seeing the bug22:38
nekohayo(I did remove bzr-rebase from synaptic to be sure)22:38
lifelessjelmer: blah yes22:39
jelmernekohayo: did you see my reply to the bug?22:39
lifelessnekohayo: bzr plugins -v22:39
lifelesswill show what plugin is being loaded22:39
jelmernekohayo: can you paste the output of "bzr log -r -1" ?22:39
nekohayooh I hadn't seen your comment22:39
nekohayohang on22:39
nekohayooh, I'm an idiot.22:40
nekohayobzr viz shows the committer, not the author22:40
nekohayo /headdesk22:40
jelmerhmm, I guess it would make more sense for it to show the author(s)22:41
jelmernakohayo: feel free to retarget the bug to bzr-gtk22:41
nekohayoyou mean nobody had filed a bug about this before?22:41
jelmerNot that I remember22:42
nekohayothere you go22:46
jelmernekohayo: thanks!23:16
nekohayojelmer, just to be sure, bzr viz is not going away is it?23:16
nekohayoI mean it won't get replaced by bzr explorer or something?23:16
* nekohayo likes its simplicity23:16
jelmernekohayo: no, it's not going away. it hasn't really had the attention it deserves recently though23:22

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