=== sabdfl1 is now known as sabdfl === sabdfl1 is now known as sabdfl [00:59] I think I'm hitting a bug in bzr-svn 0.5 RC1 === Mario__ is now known as pygi [01:00] bzr: ERROR: exceptions.AttributeError: 'NoneType' object has no attribute 'uuid' [01:00] enigma, I think there's an open report about that one [01:00] OK. Are those reported in the same place as bzr bug? [01:00] Or is there a separate bug tracker for bzr-svn? [01:00] launchpad.net/bzr-svn [01:01] OK. Let me look it up. [01:07] jelmer: It looks like those errors come up when the bzr properties are missing. I created the svn branch using "svn copy", is that why it doesn't have bzr properties? [01:08] based on the tracebacks in that bug report at least, it can't be related to bzr propeties [01:09] it's a problem in the way bzr-svn follows the svn log to find out the branch history [01:09] unfortunately I can't reproduce it here [01:09] Which bug report are you looking at? [01:09] I found: https://bugs.launchpad.net/bzr-svn/+bug/177383 [01:09] Launchpad bug 177383 in bzr-svn "traceback when importing svn tree: 'NoneType' object has no attribute 'splitlines' (dup-of: 174690)" [Undecided,New] [01:09] Launchpad bug 174690 in bzr-svn ""pull" should handle removal of bzr:ancestry property" [Low,Fix released] [01:10] enigma, that's not the same bug [01:10] And: https://bugs.launchpad.net/bzr-svn/+bug/206728 [01:10] Launchpad bug 206728 in bzr-svn ""'NoneType' object has no attribute 'splitlines'" crash in checkout" [Undecided,Fix released] [01:13] https://bugs.edge.launchpad.net/bzr-svn/+bug/306288 [01:13] Launchpad bug 306288 in bzr-svn "pulling a previously branched SVN repo with no local commits causes a "branches have diverged" error" [Undecided,New] [01:15] Oh...this is what I did...I have a few hundred revisions I pulled down using bzr-svn 0.4.15. I then pushed those revisions into a brand new repository. [01:15] I then upgraded to bzr-svn 0.5 RC1 and pulled those revisions from the brand new svn repo. [01:15] (using bzr to pull it) [01:16] I do a commit on the branch. [01:16] I then try to "push" back to that new svn repo and that's when I get the error. [01:16] (And yes, I cleared the svn-cache and subversion.conf after moving 0.5 RC1) [01:18] Is the bzr:* properties that are created with bzr-svn 0.4 incompatible with bzr-svn 0.5? [01:19] no, they should work ok [01:19] though there could be a bug there [01:19] of course [01:20] hi hi folks [01:21] jelmer: OK...now I'm reverting to 0.4.16 and I'll try the same commit with a push back to svn. === davi_ is now known as davi [01:21] (After clearing svn-cache and all that) [01:23] Hm...now if I revert, I get this: bzr: ERROR: exceptions.KeyError [01:23] Sorry, I just re-read that and I don't think it's clear. [01:24] What I mean is...now if I try the commit back to the same svn repo using bzr-svn 0.4.16 instead of 0.5 RC1 I get that "KeyError" [01:24] enigma, can you pastebin the full backtrace? [01:24] enigma, were some revisions already pushed using 0.5rc1? [01:25] Not that I can recall.... [01:25] I'm pretty sure it was all push with 0.4.16... [01:26] You want me to recreate the SVN repo from scratch with 0.4.16 to make sure? [01:26] (Where's the pastebin?) [01:26] pastebin.ubuntu.com [01:29] http://pastebin.ubuntu.com/84616/ [01:33] I think that's actually a bug that's fixed in 0.5.. [01:33] Oh, OK. :-D [01:34] I'm recreating the svn repo using 0.4.16. [01:34] Then I'm going to switch to 0.5 RC1 and see if I can get that "uuid" error again. [01:41] I'm getting another exception with 0.4.16, might this be a bug? bzr: ERROR: bzrlib.errors.NoSuchRevision: apCache object at 0x88c328c> has no revision enigma@neumannc-desktop-20081202021 [01:41] 216-yyxr9acya83v2rjt [01:42] I got the tree I'm trying to push from another svn repo. [01:43] And now I'm doing this: bzr push -v --overwrite svn+http://localhost/svn/test/trunk/gui [01:48] Oh...this is strange... [01:49] If I push just the first rev it works fine: bzr push -r 1 -v --overwrite svn+http://localhost/svn/test/trunk/gui [01:49] But pushing 386 revs doesn't work. [01:50] After pushing the first rev with "overwrite", I can do a "normal" push, but I get segfaults. [01:50] bzr push -v --overwrite svn+http://localhost/svn/test/trunk/gui [01:50] The svn+ syntax is deprecated, use http://localhost/svn/test/trunk/gui instead. [01:50] \ [=== ] pushing revisions 25/385Segmentation fault [01:51] jelmer: Even though I got a segfault, I can push some more... [01:51] jelmer: But then I get another segfault after 44 revs... [01:52] After restarting the push about 5 times, I get all revision into svn. [01:52] enigma, but that's using 0.4 ? [01:52] Right. this is with 0.4. Want me to try with 0.5? [01:53] I'll go through the same steps with the same repo. [01:54] Yeah, I get the same behavior with 0.5 RC1 [01:54] same being that error about uuid ? [01:55] Sorry...haven't gotten to the uuid error. [01:55] I'm getting a NoSuchRevision error when I'm trying to recreate my svn repo. [01:56] Quick recap: zapped the svn repo which I was using that was giving me a "uuid" error. [01:56] Started recreating the repo from scratch. [01:56] That brought up this other bug which I encountered before but had forgotten about. [01:56] And it appears this bug is in 0.4 and 0.5 [01:58] This is for the NoSuchRevision error: http://pastebin.ubuntu.com/84623/ [01:59] Work around is... [01:59] do this: bzr push -r 1 -v --overwrite svn+http://localhost/svn/test/trunk/gui [02:00] But the work around only seems to work for 0.4.16 [02:01] any chance you can file a bug about this? [02:01] Sure. === Mario__ is now known as pygi === Mario__ is now known as pygi [02:13] OK, here's the new bug report for the "NoSuchRevision" error (which exists for both 0.4 and 0.5): https://bugs.launchpad.net/bzr-svn/+bug/307611 [02:13] Launchpad bug 307611 in bzr-svn "Pushing lots of revisions from one svn repo to another results in bzrlib.errors.NoSuchRevision" [Undecided,New] [02:14] enigma, the repository is private, I presume ? [02:14] Unfortunately, yeah. [02:14] I wish I could share. ;-) === Mario__ is now known as pygi [02:25] jelmer: Is there a bzr-svn equivalent of "bzr check"? [02:25] well, you can run "bzr check" on a svn branch but it won't do much [02:25] Is there something that can "check" the bzr:* properties on an svn repo? [02:26] That sort of thing? [02:26] nope [02:26] OK. [02:26] there's probably something going wrong recording the contents of enigma@neumannc-desktop-20081202021216-yyxr9acya83v2rjt [02:26] is it a merge revision or something? What sort of changes does it contain? [02:27] How do I see? [02:29] I tried: bzr log -r enigma@neumannc-desktop-20081202021216-yyxr9acya83v2rjt [02:29] that doesn't seem to work [02:31] bzr log -rrevid:enigma@neumannc-desktop-20081202021216-yyxr9acya83v2rjt [02:31] should work [02:32] Oh, OK...trying... [02:32] No...it wasn't a merge... [02:33] Just a plain commit... [02:34] Is there a way to rebuild the map? [02:34] enigma, what sort of changes does it contain? [02:34] enigma, which map? [02:34] The bzrlib.plugins.svn.revids.RevisionIdMapCache [02:34] That map. [02:34] it's part of the cache [02:35] so after you remove the cache, the map will be empty (and it gets filled lazily) [02:35] Oh...I see what might be going on.... [02:36] I did this: bzr branch svn+http;//remote/svn/trunk/gui gui-trunk [02:36] then I did this: bzr branch gui-trunk gui [02:36] After which I cleared my cache. [02:37] And then I tried to push the versions into: http://localhost/svn/trunk/gui [02:37] Which is a totally different server. [02:37] not sure I follow.. [02:38] And if I do a bzr info on "gui", it only knows about "gui-trunk" and not the original svn server. [02:38] So it will never tried to rebuild the map. [02:38] Which I purged from the cache. [02:39] In short, I did a "pull" from server A and then a push to server B. [02:39] that should work just fine [02:39] However, after doing the "pull", I remove the svn-cache (due to experiementing with other things) [02:40] The "push" to server B isn't rebuilding the RevisionIdMapCache for server A. [02:40] Just for server B. [02:40] there's no reason why it should [02:40] we don't need the cache for A in that situation anyway [02:40] Oh, OK. [02:41] So why would I get an error about a particular revision not being in the RevisionIdMapCache? [02:41] If the cache isn't used? [02:41] to bzr-svn, those revisions are just like ordinary bzr revisions [02:41] or should be, at least [02:42] Why would that revision id be expected to be in the RevisionIdMapCache at all then since I haven't pushed it to server B and the RevisionIdMapCache for server A shouldn't be used? [02:43] it's thinking one of the children of that revision has to be pushed and that revision itself is already present [02:43] so when it crashes, it hasn't pushed that particular revision yet? [02:43] what is the revision id of the children of that revision? [02:44] Right. That the latest revision in the repo. [02:44] There are not children of that revision...it's just a straight up commit. [02:45] Correction...it's the -2 revision, not the -1 revision. [02:45] Second most recent rev. [02:46] what's the revision id of the last revision? [02:46] Is there a nice way to get a revid from a revno? [02:46] bzr log --show-ids -r [02:46] Cool, thanks. It's not in the help for log. [02:46] Oh wait...yes it is...I missed it...sorry. [02:47] revno: 385 [02:47] revision-id: enigma@neumannc-desktop-20081202021216-yyxr9acya83v2rjt [02:47] parent: enigma@neumannc-desktop-20081202014850-fgbyjkv8rqfbdm23 [02:47] What's the "parent"? [02:48] In this case, the "parent" is the previous revision. [02:48] the parent is the revision the revision was basd on [02:48] OK. [02:48] there can be multiple parents in thecase of a merge [02:48] OK. [02:48] but what's the revision id of the last revision? [02:49] revno: 386 [02:49] revision-id: enigma@neumannc-desktop-20081202023059-gzdv3fvxklm0v1z4 [02:49] parent: enigma@neumannc-desktop-20081202021216-yyxr9acya83v2rjt [02:49] So, I'm not seeing anything weird about rev 386 or 385 or 384.... [02:49] is that revision a merge revision perhaps? [02:50] No...the last merge in the history was at rev 378 [02:50] jelmer: don't suppose you have a good list of new stuff in the bzr-svn 0.5.x series? [02:51] rocky, see NEWS [02:51] enigma, strange [02:53] I have exactly 4 merges in the whole history. [02:54] And doing a "push -r 1" works just fine. [02:54] enigma, is this 0.5.0rc1 or 0.5 ? [02:54] This is 0.4.16 in this case. [02:54] enigma, push -r1 would push the first revision in history, so that's a noop :-) [02:54] jelmer: ah thanks ... [02:54] With 0.5 RC1 I get a different error. [02:54] Well...sort of... [02:54] ah, what's the error in that case? [02:54] I get the same error for "push --overwrite" [02:55] But I get a different error for "push -r 1" [02:55] I mean... [02:55] "push -r 1 --overwrite" [02:55] I posted both the 0.4.16 error and the 0.5 RC1 error on: https://bugs.launchpad.net/bzr-svn/+bug/307611 [02:55] Launchpad bug 307611 in bzr-svn "Pushing lots of revisions from one svn repo to another results in bzrlib.errors.NoSuchRevision" [Undecided,New] [02:55] They are both in the block at the top. [02:56] They kind of run together...probably needed some more whitespace between them. [02:56] I mean with "bzr push -r1 --overwrite" on 0.5 [02:57] OK...let me get that error and post in on the bug report...one sec. [02:58] (bugs in 0.4 are not likely to be fixed anymore, I'm focussing on 0.5) [02:59] (Makes sense.) [03:01] OK, look at my most recent comment here: https://bugs.launchpad.net/bzr-svn/+bug/307611 [03:01] Launchpad bug 307611 in bzr-svn "Pushing lots of revisions from one svn repo to another results in bzrlib.errors.NoSuchRevision" [Undecided,New] [03:01] I get an AssertError with 0.5 RC1 [03:02] bzr: ERROR: exceptions.AssertionError: revprops: ['bzr:revision-id', 'bzr:user-agent', 'bzr:timestamp', 'bzr:root', 'bzr:committer', 'svn:log', 'bzr:revprop:branch-nick', 'bzr:file-ids', 'bzr:base-revision', 'bzr:revno', 'bzr:mapping-version'] [03:02] ah, that's been fixed in the 0.5 branch [03:02] So should I get the truck for 0.5 instead of RC1? [03:03] yeah [03:03] http://people.samba.org/bzr/jelmer/bzr-svn/0.5 [03:05] OK, let me grab it. [03:06] i was just about to play with 0.5rc1 .. should i skip it and just try 0.5 branch ? [03:09] jelmer: python setup.py install doesn't appear to work with 0.5rc1 :( [03:11] basically it looks like the subvertpy package doesn't get installed [03:12] jelmer: OK, the latest bzr-svn 0.5 fixed that assert error. [03:13] It did not, however, fix the missing revision error. [03:13] So that seems like it's still a bug. [03:14] Ah ha! I got the "uuid" error again: bzr: ERROR: exceptions.AttributeError: 'NoneType' object has no attribute 'uuid' [03:14] That was after pushing just one revision. [03:14] enigma: how are you installing 0.5rc1 (or the branch?) ... the used-to-work-with-0.4.x "python setup.py install" doesn't seem to work for me [03:14] Oh, I just run it out of "~/.bazaar/plugins/svn" [03:15] I do a "make" [03:15] And then copy it to the plugins directory. [03:15] I don't do a sitewide install. [03:15] rocky, that's also fixed in the 0.5 branch [03:16] lol [03:17] enigma, at the risk of asking the same question twice.. [03:18] enigma, the backtrace in bug 307611 for 0.5 was produced by pushing into a fresh svn repository? [03:18] Launchpad bug 307611 in bzr-svn "Pushing lots of revisions from one svn repo to another results in bzrlib.errors.NoSuchRevision" [Undecided,New] https://launchpad.net/bugs/307611 [03:18] yes, a fresh repo. [03:18] enigma, with fresh repo you mean "svnadmin create ..", right? [03:18] yeah. [03:19] ok (since you mentioned "svn mkdir" in the bugreport) [03:19] I had one commit to make "trunk" [03:19] And one commit to make "trunk/gui" [03:19] So, the svn repo was at v2 when I tried the "push --overwrite" [03:19] So here's something strange with 0.5-trunk... [03:20] I'm being told wrong svn info now: [03:20] revno: 1 [03:20] svn revno: 4684 (on /trunk/press-gui) [03:20] committer: Christoph Neumann [03:20] So, after sucessfully doing this: bzr push -r 1 -v --overwrite svn+http://localhost/svn/test/trunk/gui [03:20] enigma, that looks alright if you ran "bzr push -r1 --overwrite" [03:20] I did this: bzr branch svn+http://localhost/svn/test/trunk/gui [03:21] Which is *really* strange because the svn repo is at rev 3 now. [03:21] yes, but you pushed only one bzr revision, right? [03:21] Yeah, so why is it telling 4684? [03:22] enigma, that's derived from the revision id [03:23] That was the right svn revision for the repo the change came from. [03:23] But the new repo is now at rev 3. [03:23] enigma, what does "svn info" on http://localhost/svn/test/trunk/gui say? [03:23] svn info http://localhost/svn/test/trunk/gui [03:23] Path: gui [03:23] URL: http://localhost/svn/test/trunk/gui [03:23] Repository Root: http://localhost/svn/test [03:23] Repository UUID: 27530666-c0bc-4525-b9dd-495b6ed8d586 [03:23] Revision: 3 [03:23] Node Kind: directory [03:23] Last Changed Rev: 3 [03:23] Last Changed Date: 2008-12-12 19:17:26 -0800 (Fri, 12 Dec 2008) [03:24] hmm [03:24] * jelmer has to get some sleep [03:24] I'll have another look at your bug report tomorrow [03:24] sorry [03:24] No problem. [03:24] thanks for the help debugging, at least [03:24] I'll see if I can get in IRC tomorrow. [03:24] If you have more questions. [03:24] Thanks for all your help! [03:24] cool, that could be useful [03:24] I learned lots of stuff. [03:24] I'll try to reply in the bugreport as well [03:24] g'night! [03:24] OK. Goodnight. [03:48] is it possible to list all revids in a repository? [04:17] jml: yo [04:18] lifeless: hey there [04:20] jml: so testresources has a bunc of 'fix committted' stuff. [04:20] I'm wondering if 'its in trunk' is good enough [04:21] lifeless: good enough for what? [04:21] for us [04:23] lifeless: are you wondering whether we should do releases? [04:23] kinda [04:23] lifeless: I've been using "fix commited" in the bzr project sense. [04:23] lifeless: i.e. "there's a branch with a fix" [04:23] hmm [04:23] think some bugs are mislabelled then [04:26] lifeless: it's possible. [04:26] lifeless: I haven't done a round of gardening for a while. [04:28] lifeless: also, my laptop battery is dying and I'm not near power. [04:30] jml: ok, I have what I need - I'll use test released for stuff in trunk [04:30] jml: thanks [04:30] lifeless: I've just reviewed the third of the four subunit branches marked for review. [04:31] lifeless: I'll get to the fourth soon. [04:31] "polish" hasn't been submitted for review either. [04:31] * jml suspends. [05:52] does launchpad have bzr-cia? [07:08] jml: thanks [08:02] I'm running the bzr 1.5 on Debian. I only use it for syncing a heap of text files between a few machines. Is there anything to be gained by compiling and installing 1.10? [11:17] I'd like to understand why this bug isn't being treated too seriously: https://bugs.launchpad.net/bzr/+bug/113809 [11:17] Launchpad bug 113809 in bzr "update performs two merges" [High,Confirmed] [11:17] Is there a workaround I'm missing? [11:17] How can users do local commits without having to worry about this? [11:53] does anybody knows about something like `bzr chdir` command? to change directory before run arbitrary command and then chdir back? [11:53] bialix: just change your actual directory [11:54] bialix: and many commands allow explicit definition of a directory [11:54] I need this for batch processing. [11:54] but missing is not [11:54] https://bugs.launchpad.net/bzr/+bug/207762/ [11:54] Launchpad bug 207762 in bzr "missing does not accept "-d" parameter" [Low,Confirmed] [11:55] bialix: I don't see why actually changing your directory would be a problem [11:55] because I'm working on scmproj plugin that operates on the set of bzr branches as unite project [11:56] I've implemented project-command command to run some command for all branches in the project in one loop [11:56] bialix: I still don't understand why you can't run "cd" instead of your desired "bzr chdir" command [11:56] but `bzr missing` is unable to run in this way [11:57] because of design of my plugin. [11:59] actually I'm already implemented chdr command, I'm just wonder is not I'm reinventing the wheel, or does anybody else needs such feature. [11:59] bialix: and your plugin could run something like "bzr chdir"? [11:59] yes, I'm just finished it [12:00] in the past I remember that `bzr status` is also behaves differently either it runs as `bzr status .` or without any arguments. [12:01] bialix: I know several bzr commands interpret "." as an argument differently than nothing, especially add [12:01] bialix: add only uses ignores without an argument [12:01] yep [12:21] Er, not exactly. Add only uses ignores for discovered items, not given items. [12:21] fullermd: And if you give it an argument, you're using a "given item." [12:22] Yes, but add can still discover items (e.g., 'bzr add .' will recurse and discover items, to which ignores will be applied. But they won't be for '.' itself, only for the discovered ones.) [12:22] Maybe I was thinking bzr add * [12:22] but that's only one level different [12:23] * fullermd nods. [12:23] So that will add an ignored subdir, but not add anything _within_ it (which can be a little confuzzling) [12:23] fullermd: Agreed, especially when you're coming from svn [12:23] Wait, that's wrong. I'm thinking of a different case. [12:24] * bialix likes "confuzzling" :-) [12:24] Ignoring the subdir doesn't ignore the files within it. I'm thinking of cases where I ignore '*' [12:24] * fullermd aims to please ;) [12:25] bialix: you're familiar with the -d option on a number of commands? [12:25] bialix: in my and mwhudson's opinion at least, that should be supported on more commands [12:26] LarstiQ: yes, I'm aware about -d. But `bzr missing` lacks it [12:26] fullermd: Then I'll give you a fresh opportunity. I'm trying to figure out the best Bazaar workflow for next week's Drupal code sprint. It's all the core Drupal developers. If Bazaar handles things smoothly, I think it may strongly influence Drupal's next choice of VCS> [12:26] bialix: right, so my vote is for missing to be modified to support it. How exactly does your `bzr chdir` work? [12:27] I'm just wanna say that you could provide valid non-local URL to -d, so --directory name for this option is actually bad name [12:27] cwd = os.getcwdu() [12:27] os.chdir(directory) [12:27] fullermd: Given the terribly flawed implementation of commit --local, I need a smooth way for developers to commit changes locally (to a branch, likely) but still push changes centrally [12:27] try: [12:27] bialix: hmmm. That won't work for commands needing a workingtree, would it? [12:27] return run_bzr(argv_list) [12:27] finally: [12:28] os.chdir(cwd) [12:28] bialix: (giving a non-local url to -d) [12:28] LarstiQ: most of the command that supports -d works with the branch, not WT [12:28] fullermd: The problem with bzr push is that it modifies the central repository history [12:28] fullermd: and that's sort of evil [12:28] bialix: I'm thinking of merge specifically [12:29] fullermd: I can make the central repository "append-revisions-only", but then diverged branches can't be pushed [12:29] davidstrauss: you can set a branch config to not reorder the mainline. [12:29] right [12:29] yes, you're right; merge is exception here [12:30] LarstiQ: So, is there any solution other than the terribly clunky combination of checkout and branch for each developer? [12:30] bialix: so you'd use bzr chdir by writing your normal command, and then sticking chdir between 'bzr ' and the rest? [12:31] davidstrauss: I'm not entirely sure what you're trying to solve. [12:31] davidstrauss: since to me, reordering the mainline is not evil. [12:31] LarstiQ: yes [12:31] Well, that's the sorta setup I always use. I've not found it especially clunky, but then I don't run into offline conditions often. [12:31] LarstiQ: I guess I don't understand how the reordering affects the mainline [12:31] why not? [12:32] Not when I'm doing something I'd put right on trunk, anyway. [12:32] davidstrauss: but, if I understand you correctly, merge the diverged branch into trunk. And the checkout helps in not racing. [12:32] bialix: okay, that approach will work with any and all commands, which is a plus. [12:32] bialix: I don't find it too elegant though :/ [12:32] LarstiQ: exactly [12:33] LarstiQ: How does the mainline get reordered? Does it use the revnos from the branch that was pushed? [12:33] LarstiQ: well, it's a 5 minute hack to provide workaround [12:33] davidstrauss: it will use the ordering of the pushing branch, yes [12:33] davidstrauss: The revnos are dependant on what the head rev is (rather, the history implied by it) [12:33] bialix: right [12:33] it may be confusing, but it's a matter of taste [12:34] * LarstiQ nods [12:34] bzr cd foo/bar missing http://foo.net/branch [12:34] So, how should other developers get changes from the central branch, pull or merge? If they pull, then their local revnos change, too, right? [12:35] well, it actually need to train the eye [12:35] davidstrauss: right [12:35] LarstiQ: So should local devs merge? [12:35] (from the mainline) [12:35] davidstrauss: depends on what they want to do [12:35] davidstrauss: personally, I'd just pull. [12:36] But if there's divergence, you have to merge first, right? [12:36] davidstrauss: that could go two directions though [12:36] LarstiQ: the merge? [12:36] davidstrauss: they could merge their stuff into trunk, commit, and then pull from trunk [12:37] instead of merging trunk into their branch [12:37] How do people on a development team communicate about revision numbers if they're unstable? [12:38] bialix: on the -d side, it would be nice if this operation was the same on all commands, but it would also be nice if you could use the '-d' branch without a working directory. Hmmm [12:38] davidstrauss: right, that is the question you need to ask. How much is that worth to you? [12:38] I think it's worth a lot to have consistent revision numbers for communication [12:39] LarstiQ: sometimes I think -d is misdesigned [12:39] davidstrauss: One answer could be: revnos are instantaneous, they lose their validity after a (short) amount of time [12:39] especially re tag command [12:39] LarstiQ: like process IDs on unix [12:40] davidstrauss: that's a nice analogy [12:40] bialix: how so? [12:41] davidstrauss: if you want to use them in bugreports that might be open for a couple of weeks, then it becomes more important that they be stable. [12:41] IMO bzr tag TAGNAME URL is good enough [12:41] davidstrauss: so there you could do two things afaics, one is to refer to revision ids, not revision numbers. The other would be to base the revnos on a branch where the mainline does not get reordered. [12:42] as I mentioned i nthe mailing list I think we need a "standard option" -d which works the same for all commands [12:42] AmanicA: some commands don;t need -d, e.g. status, diff, commit, add [12:43] revision IDs are 100% stable, right? [12:43] davidstrauss: yes [12:43] yes but for scripting purposes, I think it'l be nice to have a consitant interface for all commands [12:43] Is there a way to detect whether a revision ID has been integrated into a branch? [12:43] may be you're right; but having 2 ways to express things... confuzzling? [12:44] (Other than bzr log --show-ids|grep ID) [12:44] davidstrauss: bzrlib wise or command line wise? [12:44] command line wise [12:44] You could use revision-info maybe. [12:45] (there's no "yes/no" giving command, but you can use side effects like "does this work". [12:45] that would be my guess as well. [12:45] or bzr missing [12:46] Hm. Well, OK, you can use revision-info and see if it blows up and gives you a traceback :| [12:46] Cobalt:a straussd$ bzr revision-info "david@fourkitchens.com-20081213120349-g6y28op35qnf3rhe" [12:46] bzr: ERROR: No namespace registered for string: u'david@fourkitchens.com-20081213120349-g6y28op35qnf3rhe' [12:46] that's what I get [12:47] with or without quotes around the revision id [12:47] bzr revision-info -rrevid:a@b.c-1235 [12:48] that works [12:48] thanks [12:48] How do other DVCS tools handle the issue of stable history on the main branch? [12:49] I know most use the hash-based IDs as the primary revision tracking IDs. [12:49] davidstrauss: right, that's how hg and git do it [12:50] davidstrauss: there are some Linus quotes on revision numbers being a stupid idea even :) [12:50] LarstiQ: I think I'm starting to agree with him [12:51] I don't like that Bazaar gives the false impression that the numeric IDs will be stable. [12:51] where? how? [12:51] Revision numbers are stable in one branch only. [12:52] LarstiQ: When you come from SVN or CVS, you're used to revision numbers never changing once set. [12:52] LarstiQ: And, no, revision numbers are not stable even within one branch if you push to that branch. [12:52] Well, it's not to do with revision numbers at all. [12:53] Nobody else (TTBOMK) has a concept of a branch mainline at all. [12:53] fullermd: pardon? [12:53] davidstrauss: you just changed the branch there [12:53] but yes, what fullermd said [12:54] People who rail against bzr revnos always seem to miss that they're not the primary at all; they're an emergant property of the mainline concept. [12:54] fullermd: Please explain. [12:54] (or link me to something) [12:55] The problem with fiddling the history isn't that the revnos get messy per se; it's that you lose the mainline, and so lose that extra tool (and because the UI is built assuming the usage of that tool in many ways, a lot of things get way less convenient) [12:55] fullermd: Which extra tool? [12:55] The mainline. [12:55] Think of it as a way of winnowing down history. [12:56] Would it be useful to run $VCS log, and get the revisions in your history in a randomized order? [12:56] fullermd: obviously not [12:56] Yah. So you need to sort them somehow. [12:56] The "right" was is "in the order they belong", which is way too ill-defined to actually use. [12:57] A good first approximation is chronological. [12:57] That works great in a purely linear system like CVSVN. [12:57] fullermd: So how does bzr order them if you have a sort-of mainline everyone pushes to? [12:57] In a parallel system like a DVCS, it's a bit stickier, since a revision no longer has a unique "that came before me". [12:58] So bzr imposes an extra structure of a 'mainline', which is defined by the left (or first, whatever term you want) parent of each revision. [12:58] And declare that that revision is the one that, conceptually speaking, was "before me". [12:59] Later parents (usually there would only be one, but you could octopus if you really wanted) are conceptually "stuff I grabbed from elsewhere". [12:59] Linus likes to emphasize that merges are symmetrical; you merge two things together. That's true technically, but I (and bzr apparently) feel that socially they're asymmetric; you merge FROM somewhere else INTO your local thing. [13:00] The mainline is a way of using that symmetry breaking to split up your history. So conceptually, unless you push/pull over something, the mainline is "what happened on this branch", and the right-side descents are "things I got from elsewhere". [13:00] That means that, for instance, the revision before the head on the mainline (revno -2) is what was the head before your last commit. [13:01] Whereas if you act in a way that doesn't preserve a mainline (like fast-forward merges, which most other systems default to always doing), you can't actually say "what was this before?" [13:01] This is especially useful on a 'trunk' type branch, because it may be very useful to be able to look back and say "Hey, what was trunk like last week?" [13:02] fullermd: Is there a concrete example of this behavior I can work through myself? [13:02] With something like git, it's impossible to say deterministically (unless you tagged it), because there could be 5 or 6 branches of the history that existed independantly then. [13:02] Sure, look at the history of bzr.dev. [13:03] This exhibits another emergant property of the mainline, which is the 'rollup' capability for offside work. [13:04] If I look at the --short log output for bzr.dev (which doesn't include non-mainline revisions), I see that the last commit was vila fixing some redirection bugs. The one before that was him messing with log formatting. Before that was Marius fixing some dotted revno stuff, then Solaris compilation fixes, cleaning debug code, adding another build target... and on and on. [13:04] So in a way, I see the 'rollup' of what the conceptual bits that were done were. [13:05] fullermd: By "rollup," do you mean a revision that encompasses several others? [13:05] If I need to delve into the defailts of "what were the steps in changing that log format", I can walk down that line of history. But in a high-level view, I don't care; I want to know the bigger conceptual "things that were done" to the project. [13:05] ok [13:05] Sort of. In log [--long, or any formatter that shows merge revs] they look that way. [13:06] In a strict sense, the history is no different than in git or any other ancestry-based VCS; it's all a DAG, and no revision is 'a subpart of' any other really. [13:06] understood [13:06] But the output uses the mainline to create a visual fiction that it's like that. [13:06] fullermd: Will I see this behavior even if people push into the mainline? [13:06] If you work in a way that preserves the mainline, and treats each commit to it as an individual unit (merge this feature, write that feature, etc), the log just walking down the mainline gives you a very neat view of the history. [13:07] Pushing over the trunk can change the mainline, since the left-hand path is now different. [13:08] That could mean that, say, the last 10 commits that were on mainline, are now "off to the right" of the last merge, and the new last 8 or 15 commits on mainline were details of implementing that last feature landed. [13:09] If the heads of two branches are different, their mainlines will be different. If they're related branches, the mainline will usually be the same up to a point, but you'd have to examine a particular case to see where that is. [13:09] For instance, my copy of bzr.dev and the "real" bzr.dev have different heads right now (I'm a revision behind; haven't sync'd since yesterday) [13:10] So our revnos are the same up to 3904, but it's got a 3905. So, I have sorta an "earlier version" of it. [13:10] fullermd: So, next week I'll be setting up Bazaar and training all the Drupal core developers on using it for the sprint. I'd like to have a clean mainline that exhibits the nice history you've mentioned. It looks like my choices for appending to that history are (1) commits from checkouts and (2) merges into the mainline. [13:10] What workflow do you use for your working copy(ies) of bzr.dev? [13:11] (2) is what you'd need, yes. (1) is IMO the simplest way of doing so. [13:11] Well, I don't really work on bzr; I have bzr.dev around because it's the bzr I use day to do. In my work, we work with a shared trunk which all the devs checkout. [13:11] fullermd: Do you use local commits at work? [13:11] Trivial stuff is often just done directly on trunk, CVS style. More involved stuff happens in separate branches (most commonly dev-local, with the sort of work we do, but occasionally shared) [13:12] I don't, no. If I'm working on trunk, I'm connected. [13:12] And if I run 'commit' on trunk, it's because whatever I'm committing is ready to go out into the world. [13:12] davidstrauss: I either work directly on trunk if it's small, or in a different branch if it's bigger, and merge it into trunk when ready. [13:12] fullermd: Do you maintain a checkout and a branch, typically? [13:13] Yah. Or several branches. [13:13] LarstiQ: How do you merge into trunk? Do you directly got onto trunk and run "bzr merge"? [13:13] davidstrauss: yup, with the branch I've been working in as an argument [13:13] LarstiQ: Or do you keep a checkout of trunk to merge into? [13:13] oh [13:13] Actually, because of details of the environment, I generally have one branch that gets pull'd over and re-used, instead of recreated from scratch, for a lot of things. But I make specific branches sometimes too. [13:14] I didn't understand 'directly' correctly [13:14] For most projects I manage, logging into the Bazaar mainline server and running merge is a non-starter. [13:14] davidstrauss: I never work directly on the remote trunk that lives on the central server. [13:14] right [13:15] davidstrauss: so, I cd to my local branch of trunk, and run merge [13:15] It looks like "checkouts" are best treated as remote access points to do stuff directly on trunk. [13:15] Nor I. The central 'trunk' doesn't even have a working tree. [13:15] * LarstiQ nods at fullermd [13:15] Yah. There's pretty much two ways to do it. [13:15] fullermd: Same here. No working trees on trunk [13:15] davidstrauss: depending on the project, my local copy of trunk is a checkout or a branch [13:16] (1) have a 'branch' of trunk. When you want to land something, pull to update, merge your stuff, then push. Or, (2) have a checkout, update merge commit. [13:16] They're roughly the same thing, but (2) is usually simpler. [13:16] fullermd: Will (1) preserve a nice history on the mainline? [13:16] davidstrauss: when a branch, I need to push after committing. If someone else than has committed something to the remote trunk, I need to do more work to get caught up, a potentially neverending cycle with race conditions. That is what a checkout makes easier. [13:16] Yeah, they have the same end result. But the checkout automates staying in sync, making sure you're up-to-date, etc. [13:16] davidstrauss: yes [13:17] push won't push if you're out of sync. Strictly speaking, the remote head rev has to be in your history, or push will error. [13:17] Doesn't pull refuse to run if you've diverged? [13:17] * LarstiQ would go for (1) if there is little chance of the remote trunk changing under your feet AND the overhead of a checkout is bothering you. [13:17] davidstrauss: yes [13:17] Right. But in this case, you'd intentionally never diverge the trunk branch. [13:18] So when you say "merge" into the branch of trunk, you mean from another branch that has the changes? [13:18] (so if that priming 'pull' failed, something went wonky somewhere) [13:19] davidstrauss: yes [13:19] Yah. cd foo ; hack commit hack commit hack commit ; cd ../trunk ; bzr up ; bzr merge ../foo ; bzr ci [13:19] fullermd: that's with a checkout [13:19] right? [13:19] Aside from the workflow stuff, I find it convenient having an up to date copy of trunk around anyway, for reference. [13:20] Yah. With an independant branch of turnk, those last 3 steps would turn into "bzr pull ; bzr merge ../foo ; bzr ci ; bzr push" [13:20] davidstrauss: for a branch it would be : cd foo; hack commit hack commit hack commit; cd ../trunk; bzr pull; bzr merge ../foo; bzr ci; bzr push [13:20] Checkout saves you a step, and makes things easier if trunk happens to move while you're doing it. [13:20] and beaten by fullermd, again :) [13:20] * fullermd steals LarstiQ's typing speed. [13:21] Since with a branch, if that last pull fails because trunk moved, you have to undo all the work, pull again, re-do the merge, etc. With a checkout, you can just 'update' and it will take care of merging your changes on top of the new head. [13:21] (which may conflict, to be sure, and you may find it easier to revert and re-do the merge than to fix them, but usually IME it doesn't) [13:22] yeah, i think i'll use the checkouts as the gateways to the mainline [13:22] * LarstiQ nods [13:22] And remember too how I scorn the Distributed Creed, and work on trunk a lot too ;) [13:22] davidstrauss: I think that is good practice indeed. [13:22] Probably the majority (by number, though not by time) of the changes I make are small enough that they belong in 1 commit anyway, so I just do those straight on trunk. [13:23] As a side note, this isn't terribly documented on the Bazaar site [13:23] Rather, I find the workflows document rather vague and poor [13:23] So for those, the workflow is exactly as if I were still using CVS; make the change, commit, done. [13:24] fullermd: And that's something I really like about Bazaar: the zero learning curve of just doing what you did with SVN [13:24] Yeah. That workflow hung around for 20 years because for a lot of things, it works fine. [13:24] It makes it easy for me to force bzr on dev teams and then evolve use of the powerful distributed features [13:25] gradually [13:25] * fullermd nods. [13:25] With the Drupal dev team, we're taking CVS users in many cases [13:25] You can move a whole team from SVN over to bzr, and not disturb anybody's workflow. Heck, everybody else can keep just working on trunk forever, but you still get to use branches. [13:25] talking* [13:25] exactly :-) [13:26] there are some small glitches like svn copy, but in general, yes. [13:26] And svn add vs. bzr add [13:26] and the branch centricity of bzr versus current working directory and below for svn [13:27] I've actually used bzr quite a bit at this point. I'm in here to become more of an expert because I know I'll get grilled next week for all of this. [13:28] We're flying in people from around the world for this. I'm expected to know everything about the VCS I decided on. [13:29] aah [13:29] when does this all start? [13:29] Monday [13:29] ok [13:29] Worst case was going to be falling back on just checkouts [13:30] which would put us exactly where we would have been with SVN, anyway [13:30] which will then get you the question, "why switch if it is the same?" [13:31] I like to use profanity in answer to that :) [13:31] davidstrauss: I'm going out for shopping now, but I'm interested in talking more about this if that's ok with you. [13:31] LarstiQ: I maintain a bzr branch that tracks CVS HEAD. Even if we branch from that and then do everything checkout-style, we still save time. [13:32] LarstiQ: Because then I don't have to set up Subversion with a vendor branch and a clone of my HEAD-trackign scheme. [13:32] LarstiQ: bye [13:33] Also, bzr is generally easier to use than svn. I hate svn's property-based ignore scheme. [13:34] And my inability to use it is why you'll find an old checkin of mine for MediaWiki that includes a password file (albeit, a development one that would be useless outside the firewall). [13:58] How is this possible when using shared branch storage? "In commercial environments, different teams might have their access controlled to various branches (e.g. development vs QA vs maintenance) on a server but, once again, these branches can be using a shared repository for efficient storage. It's also clearly beneficial for hosting sites like Launchpad." [13:59] Wouldn't all of the teams need access to the shared storage location? [14:03] davidstrauss: Yeah, you're right. I guess you could create repos per-team, and the recent stacking feature will really help. [14:04] Peng_: I pulled the quote from the BzrVsGit page. It seems like shared storage makes it distinctly less possible to separate out permissions. [14:05] * Peng_ doesn't read the Vs pages. [14:05] davidstrauss: Yeah, it does. [14:05] It's easy. First, we eliminate the VFS layer from the SS... [14:05] davidstrauss: Like I said, stacking really helps there. [14:06] fullermd: I can't tell if you're being sarcastic [14:06] fullermd is right too. It would be possible to make the smart server support permissions, though not easy. [14:07] davidstrauss: Taking out the VFS would be a ton of work, but is desired for the future anyway, since it's often bad for performance. [14:07] ok [14:07] Also, it seems like full branch > history horizon branch (not existent yet) > stacked branch in terms of space requirements and local capabilities. [14:08] But I've never seen them described as such [14:17] Oh, not sarcastic per se. Sardonic maybe. [14:32] jelmer: another svn branch checkout failing... with bzr 1.10 and bzr-svn 0.5 branch [14:32] :( [14:35] jelmer: http://cluebin.appspot.com/pasted/3611 [14:38] jelmer: and http://cluebin.appspot.com/pasted/4002 for the bzr.log output [14:42] Let's say I had a repo where the clock was wrong for a really long time, and now I have thousands of commits whose time is off by X hours exactly--can I fix that? [14:43] s/repo/branch/ [14:53] mkanat: The general response I hear is that revision history data is immutable. [14:53] davidstrauss: That's what I've heard as well, I was just wondering if there was any way to safely muck about with it. [14:54] Anyhow, I'm off to sleep, I'll ask again some time later. [14:54] mkanat: I'm guessing the answer is no *safe* way [14:54] mkanat: goodnight [14:54] davidstrauss: I'd guess that too. :-) [14:54] Night1 [14:54] *Night! [14:58] The time is used in the revision IDs themselves too, not that it really matters. [15:24] 0 [15:31] lifeless: ? [15:31] mistype [16:09] Hi - What do I do if I get this error: http://pastebin.com/mf46f9ef [16:09] BzrCheckError: Internal check failed: Newly created pack file has delta references to items not in its repository: [16:10] GaryvdM: You have a corrupted repository. [16:11] Where I am pushing from or where I am pushing to? [16:11] GaryvdM: what do you get from "bzr check" [16:11] Ok - I'm runing check on my local branch [16:12] GaryvdM: though it's likely the issue is with the external repository [16:13] http://pastebin.com/m7264518f [16:13] Seams ok [16:13] GaryvdM: What client version are you using? [16:14] Bazaar (bzr) 1.11dev [16:14] from bzr checkout C:/Documents and Settings/Gary/My Documents/bzr/bzr.dev [16:14] revision: 3904 [16:14] revid: pqm@pqm.ubuntu.com-20081213000403-r1acnqhux25xhil1 [16:14] branch nick: bzr.dev [16:14] GaryvdM: stacked branch? [16:14] Yes [16:14] GaryvdM: https://bugs.edge.launchpad.net/bzr/+bug/302698 [16:14] Launchpad bug 302698 in bzr ""BzrCheckError: Internal check failed: Newly created pack file has delta references to items not in its repository:" on pushing a stacked branch" [High,Confirmed] [16:16] Ok - thanks. I'm going to try an older version of bzr. [16:17] GaryvdM: Also similar: https://bugs.launchpad.net/bzr/+bug/307146 [16:17] Launchpad bug 307146 in bzr "Can't push svn clone to bzr" [Undecided,New] [16:18] GaryvdM: you can also check the Launchpad branch remotely, I believe [16:43] davidstrauss: I revert to bzr 1.10 - The problem still existed. I reverted to bzr 1.9 and I was able to push successfully. Later tonight I'll try work out at which revision this regression occurred. [16:43] Help my repository has gone haywire. I did some edits then a "bzr ci --local" (when off the network) and some more edits afterwords. Now back on the network, I try to do a "bzr ci" and it says it can't do that until I do a "bzr update". Now it has thrown up all sorts of text conflicts and a pending merge (what ever that means). I am the only person editing the source so I don't understand how conflicts could have appeared. How do I get back to a [16:43] mdmkolbe: cut off at 'How do I get back to a' [16:44] mdmkolbe: https://bugs.edge.launchpad.net/bzr/+bug/113809 [16:44] Launchpad bug 113809 in bzr "update performs two merges" [High,Confirmed] [16:44] How do I get back to a sane state? (I have uncommited changes that I *don't* want to loose) [16:44] LarstiQ: beat me to it [16:44] mdmkolbe: The changes you generally want to keep will be in the .moved files [16:45] mdmkolbe: checkout + local commit + uncommitted changes + update is currently a recipe for disaster [16:47] mdmkolbe: The *.THIS.moved files likely have your uncommitted changes in them [16:47] mdmkolbe: Is that the case? [16:47] * mdmkolbe looks [16:48] mdmkolbe: And the "pending merge" represents a local commit you did [16:49] davidstrauss: yes the THIS.moved files look right [16:49] mdmkolbe: You'll want to copy the contents of the THIS.moved files into the conflicted files [16:50] mdmkolbe: And then you can delete all the THIS, OTHER, BASE, and .moved files [16:50] mdmkolbe: run bzr resolved [16:50] mdmkolbe: and you should have a clean copy [16:50] davidstrauss: it looks like I have a conflicted directory and some sort of path conflict(?) [16:50] mdmkolbe: the path conflicts are side-effects of the same thing [16:51] mdmkolbe: bzr treats directories as versioned objects [16:52] mdmkolbe: back up the conflict files, just in case they have anything useful in them [16:54] it is still listing "conflict adding file foo.BASE" [16:54] mdmkolbe: in bzr status? [16:54] yes [16:54] mdmkolbe: have you run "bzr resolve" [16:54] (also OTHER and THIS) [16:55] yes, it says "remainling conflicts:" then lists *base, other, this" [16:55] mdmkolbe: and moved the conflict files where bzr can't see them? [16:55] I now have but on the first resolve I didn't [16:56] mdmkolbe: you need to run resolve after removing the conflict files [16:56] mdmkolbe: and you may need to "bzr resolve [file-it's-complaining-about]" explicitly [16:56] ah, that last part did it [16:57] mdmkolbe: The only safe way to update is if you don't have a combination of uncommitted changes and local commits. [16:58] mdmkolbe: I personally avoid local commits because of the problem you just encountered. [16:58] davidstrauss: what if I have multiple local commits. (i.e. instead of "ci --local" and "ci" do "ci --local" and "ci --local" "update) [16:59] mdmkolbe: i believe multiple local commits is fine [16:59] let me check [16:59] if you have local commits, but no uncommitted changes, that should work afaik [16:59] davidstrauss: ok, so I've cleared all the conflicts, but bzr st still lists a "pending merge". Do I need to clear that? [16:59] what could happen is that you have file.moved.moved.moved [17:00] mdmkolbe: Just checked, and multiple local commits is OK. [17:00] with multiple levels of conflict [17:00] mdmkolbe: the pending merge is just your local commit [17:00] in that case, you might need to bzr resolve file.moved.moved, not just 'file' itself [17:01] * LarstiQ hopes 113809 gets fixed soon [17:01] davidstrauss: so ... do I do another local commit now and finish with an update? [17:01] mdmkolbe: do you have uncommitted changes? [17:01] davidstrauss: yes [17:01] mdmkolbe: then, yes, do a local commit and update [17:02] mdmkolbe: and then you may commit [17:02] (centrally) [17:04] davidstrauss: ok, I did "ci --local" and then "update". It complains about "conflict: can't delete because not empty" [17:04] mdmkolbe: what directory? [17:04] src/unicode/ucd/properties [17:04] that might be a valid conflict between your local revisions and the upstream? [17:04] LarstiQ: I am the only committer so I don't think so [17:05] mdmkolbe: do you have local changes in that directory? [17:05] davidstrauss: yes [17:05] mdmkolbe: i'd back up that directory, revert it, update, and re-integrate your changes [17:07] sorry, back [17:08] didn't miss anything [17:10] davidstrauss: I *think* it is now all back to normal. Is there a graphical tool for viewing revision history trees? (I'm currious what happened as a result.) [17:11] mdmkolbe: It's not going to be visible in the tree. It happened due to a double merge. The craziness never got committed. [17:12] mdmkolbe: qlog from qbzr and viz from bzr-gtk are nice tools, but I'm not sure that is what you are asking for [17:12] davidstrauss: but I see 16 then 16.1, 16.2,16.3 and finally 17 in the bzr log [17:12] mdmkolbe: there will be at least your local commits [17:12] mdmkolbe: i mean, you won't see the problem in the tree [17:12] 16.1, 16.2 and 16.3 should be your local commits [17:13] ah, I think I see what you mean [17:14] Thank you *very* much for your help. [17:14] :-) [17:16] (Though it baffles me that such a bug could exist (I would have thought a proper design would prevent it) and actually makes me wonder whether I can continue to trust bzr with my data.) [17:17] What bug? Local commits getting mangled? [17:17] Peng_: yes [17:18] Well, I trust bzr with my data, but I don't use checkouts. [17:21] mdmkolbe: Just don't use local commits. I haven't encountered a similar problem elsewhere in Bazaar. [17:21] mdmkolbe: There's a lot of debate about the future of local commits in Bazaar, anyway. [17:21] what if I am away from a network? [17:21] (that was the reason I used local commits in the first place) [17:22] mdmkolbe: The best thing to do is checkout to your laptop and then branch from that. [17:22] mdmkolbe: It's lightweight it you use shared branch storage. [17:23] mdmkolbe: The workflow is then local branch --- merge ---> local checkout --- commit ---> central branch [17:23] mdmkolbe: The local checkout is merely a gateway to the central branch [17:23] mdmkolbe: Or you can always merge into the central branch [17:23] mdmkolbe: Or push and pull [17:24] mdmkolbe: Or just resolve to not mix local commits with uncommitted changes when you update. [17:24] That last one is the easiest, but it's also the most likely to have you running into the problem again. [17:25] ok, well I guess I'll be remembering that for next time [17:27] mdmkolbe: I'm currently pushing for updates to be denied if you have both local commits and uncommitted changes [17:28] mdmkolbe: http://www.nabble.com/Re%3A-Recommended-use-of-Bazaar-for-single-committer-multiple-machine-projects--p20989853.html [17:30] davidstrauss: I think that should be done at a bare minimum. What I would have expected what that a check out just means that "ci" is really "ci --local;push" or some such (maybe with a rolback of the "ci --local" if the "push" fails). then this problem shouldn't even be able to happen [17:31] mdmkolbe: ci --local;push does something quite different [17:35] mdmkolbe: There's actually no obvious solution for merging into a checkout with both local commits and uncommitted changes. [17:38] davidstrauss: hmm, this may explain why both darcs and git require local changes to be explicitly staged before being pushed up stream. I guess I assumed bzr was doing the same just providing a single command. [17:40] mdmkolbe: yes [17:40] Where is the code for the update command in the Bazaar source? [17:42] bzrlib\bulitins.py line 1121 [17:43] Thanks [17:43] GaryvdM: How easy would it be to change it to detect either uncommitted changes or local commits? [17:44] Probably not very difficult. [17:44] That's what I thought [17:45] If we can at least get that into trunk, we can avoid the horrors mdmkolbe just experienced. [17:47] I should note that this sort of check to stop bad behaviour has precident. IIRC there are some situations where SVN will refuse to do an operation. It gives an infomative message about why it wont do it and what you should do in order to make it happy. It also tells you that if you really do want to do it any way you can pass a "--force" option. [17:49] As a user seeing that message is mildly anoying (sometimes I think "if svn is telling me what I need to do to make it happy, then why doesn't it go ahead and do it itselft"). but when using it I also realize that having your VCS be too conservative is better than having it be too loose [17:53] My Python is rather rusty, but I should be able to just pull some code over from the status command into the update one to do the necessary check. [17:56] How can you detect the presence of local commits? [17:56] davidstrauss: presumably this is at the point where you are running update, right? [17:57] LarstiQ: yes [17:57] In which case you should know the tip of the master branch, and your own tip. [17:57] Yes, I see that [17:57] if there is divergence, there are local commits. [17:57] There might be nice api for this, that I do not know. [17:58] I assume "master is None" means it's not a checkout? [17:58] davidstrauss: I haven't looked at that code, but I'd guess that's correct. [18:18] AmanicA: ooh, _you're_ Marius Kruger! [18:24] Is there a command to have Bazaar list local commits? [18:25] qlog [18:25] I don't know about the command line [18:26] qlog? [18:26] davidstrauss: "bzr missing --mine" [18:27] Odd_Bloke: nope [18:27] Odd_Bloke: maybe "bzr missing --mine :bound" [18:27] davidstrauss: What do you mean by 'local commits'? [18:27] Odd_Bloke: to a checkout [18:28] davidstrauss: Have you tried "bzr missing --mine :bound"? [18:28] didn't he just say that? :) [18:29] Odd_Bloke: davidstrauss is working on bug 113809 [18:29] Odd_Bloke: heya, btw :) [18:29] Launchpad bug 113809 in bzr "update performs two merges" [High,Confirmed] https://launchpad.net/bugs/113809 [18:29] LarstiQ: No, he didn't. :) [18:29] I'm at the point where I need to test for the (1) uncommitted changes and (2) local commits [18:29] LarstiQ: Hi. :D [18:34] AmanicA: ping [18:38] Local commit testing: check [18:38] Now to look for uncommitted changes [18:44] hello [18:45] what's the best way to remove the last commit from a remote branch [18:45] (If I use bzr uncommit, it'll only remove it from the local branch's history) [18:46] someone accidentally committed personal information and I'd like to remove all traces of the commit [18:47] aantn: uncommit won't do that [18:47] push --overwrite [18:47] bialix: thanks [18:47] np [18:48] I said "won't do that" because uncommit doesn't destroy the data [18:49] davidstrauss: is there a way to do that, then? [18:49] aantn: not to my knowledge [18:49] removing the branch completely and push it again [18:50] there is no simple way for nuking uncommitted revisions [18:50] bialix: aantn would still have the ghost revision in the pushed data [18:50] no [18:50] it's not ghost revision [18:50] even when you uncommit? [18:51] there is (was) plugin named remove-revisions to do this job [18:51] when you uncommit your revision still in the repository [18:51] when you do push, uncommitted revisions will not propagate [18:52] or pull or branch, does not matter [18:52] bialix: would uncommitting be sufficient then? [18:52] this is main reason why branching in bzr much slower operation than clone in hg or git [18:52] I see [18:53] aantn: it depends if you have shell access to your server [18:53] bialix: it's a launchpad branch [18:53] oh [18:54] I've already notified the person and they should have changed the password by now anyway [18:54] aantn: uncommit and push --overwerite are sufficient for no one being able to get the information by branching [18:54] do local uncommit and then push --overwrite to lp [18:55] bialix, LarstiQ: thanks; already done [18:55] aantn: and ask one of the lp admins to clean the repository [18:55] LarstiQ: ok; is there anyone in here who can help? [18:55] aantn: https://answers.launchpad.net/launchpad/+addquestion [18:55] AmanicA: if you'll read this later tonight: I'm going offline, check your mail [19:07] hi [19:07] do you use the launchpad interface for merge requests? [19:07] Done with my patch :-) [19:08] What do you guys think? http://pastebin.com/m5586168e [19:13] How do you use bzr send to create a merge directive but not send an email? [19:14] davidstrauss: bzr send -o [19:14] davidstrauss: use -o file [19:14] not sure how i missed that in bzr help send [19:15] More importantly, what do you think of the patch? [19:17] davidstrauss: you should probably use `dir` instead of u"." [19:18] LarstiQ: Like this? "local_branch = Branch.open_containing(dir)[0]" [19:18] davidstrauss: yup, assuming dir is still the same as at the top of the cmd_update run [19:18] davidstrauss: other than that, looks good. [19:18] davidstrauss: you might want to include a NEWS entry too [19:24] Is there a special Launchpad way for me to submit merge directives? [19:25] LarstiQ: And it has a NEWS entry, too. [19:25] that I do not know. But the Bazaar project primarily uses bundle buggy wathcing the mailing list for patch proposals, not launchpad. [19:25] then I'll email to that [19:26] ah, answered my question [19:26] davidstrauss: after which you can track it at http://bundlebuggy.aaronbentley.com/ [19:27] I'm running bzr 1.5 on Debian. I mainly use it for syncing a heap of text files between a few machines, although I also follow a couple of software projects with it as well. Is there anything to be gained by compiling and installing 1.10? [19:28] LarstiQ: And emailed. [19:31] I do email to bundlebuggy@aaronbentley.com right? [19:32] eh, no :) [19:32] davidstrauss: sorry, I should have made that more clear. [19:32] davidstrauss: bundlebuggy monitors the regular bazaar mailing list [19:33] So I email to bazaar@lists.canonical.com? [19:34] davidstrauss: use a subject of [MERGE/RFC] warn the user when updating with both local commits and uncommited changes, or something like that [19:34] davidstrauss: yes [19:35] davidstrauss: more guidelines are listed in doc/developers/HACKING.txt, specifically 'Sending patches for review' in this case [19:45] LarstiQ: thanks [20:46] davidstrauss: it's in bundle buggy now too