[03:58] how do you resurrect files in bzr? [03:58] mwhudson: holy water [03:59] mwhudson: or, revert -r X Y [03:59] ah right [04:00] hm [04:00] that gives "paths not versioned" [04:01] was Y in rev X ? [04:01] yes [04:01] ah [04:01] no [04:02] confusing myself with intermixed renames [04:02] this is a single valued answer [04:02] lifeless: thanks [04:02] :) [04:02] it was there, but not with the name "Y" :) [04:03] :) [04:08] so it was revert a directory out of oblivion, delete some files, move some files out of the directory over previous files, remove directory again and commit [04:09] i'm sure this sort of thing used to corrupt your dirstate occasionally :) [04:09] yeah [04:09] we should be beyond that [04:10] seems like it [04:11] jams new stuff has the risk of reintroducing it, but like it was worth it for commit, it will be worth it for revert etc === aurora|away is now known as AuroraBorealis === AuroraBorealis is now known as aurora|away === aurora|away is now known as AuroraBorealis [07:18] How do I spell “the latest revision on branch foo” as a revspec? [07:19] bignose: -r branch:../path/to/branch ? [07:19] AfC: okay. but how do I use the “last:N” on that branch? [07:20] bignose: no idea. Anytime I tried to use branch: it crashed. :/ [07:20] I'm Sure They've Fixed That Nowtm [07:20] bignose: revno:-N:/path/to/branch [07:21] ':' ? [07:21] really? [07:21] Which colon are you questioning? [07:41] spiv: 2nd [07:41] (not questioning. Is that shorthand for "the branch at path"? [08:10] AfC: I'm not sure what you mean by shorthand; it's part of the syntax supported by the "revno:" revspec. [08:17] AfC: its short for 'the tip rev of the branch at path' [08:20] lifeless: good to know! Thanks [08:35] In my branch, I have 2 extra revision(s) and are missing 10 revision(s). [08:36] What's the best way to sync the missing 10 revisions. [08:38] Usually with "bzr merge" [08:38] (followed by resolving any conflicts and committing) [08:39] Is it difficult to resolve conflicts? [08:39] I am mostly a git user. [08:39] Depends on the conflicts :) [08:39] * gour is moving (back) to bzr from fossil [08:39] The conflicts are unlikely to be much different to the sort you'd get with git. [08:39] but after bzr merge, the extra 2 revisions will not be on top of the history, right? [08:40] merge by itself doesn't do anything to history [08:41] It's when you commit that a new revision is, well, committed to the history. [08:41] OK, I am doing 'b merge' now. [08:41] If you commit a merge, the revision will have two parents (or more if you did multiple merges before committing). [08:42] 2 conflicts encountered. [08:43] So both your 2 extra revisions and the other 10 previously missing revisions will be immediately connected off the new revision that is now the tip of your history. "bzr qlog" (from qbzr) and "bzr log -n0" give you some ways to see that. [08:44] Now I edited the two conflicts and they seem to contain the intended changes. [08:44] What to do next? [08:45] Use "bzr resolve" to inform bzr that the conflicts have been resolved, and commit. [08:50] I am screwed. [08:50] What's up? [08:50] How can I go back to a previous status: 104334 [08:51] Do you mean undo the commit? "bzr uncommit" [08:51] I'm trying push code to a branch created for my project... but bzr push always fails [08:52] bzr push --use-existing lp:~kiranmurari/proj_name/branch [08:52] (And then possibly "bzr revert" as well, depending on what you want) [08:52] kiranmurari: what's the error? [08:52] gives me.. [08:52] ssh_exchange_identification: read: Connection reset by peer [08:52] bzr: ERROR: Connection closed: Unexpected end of message. Please check connectivity and permissions, and report a bug if problems persist [08:52] kiranmurari: any other lines before that? [08:52] nothing [08:52] kiranmurari, Can you open just a normal SSH shell on that server (if you have the rights?) [08:52] Then it's a firewall most likely. [08:53] spiv: after the merge, the first commit seems to contain all the changes from the missing 10 revisions: http://paste.pocoo.org/show/394134 [08:53] what happens if you try "telnet bazaar.launchpad.net 22"? [08:53] kiranmurari: (regarding your pm), no, I really mean telnet [08:53] ohh ok [08:54] I want to know if you get connection closed by peer even then [08:54] it doesn't succeed.. says connection closed by foreign host [08:54] Or if you successfully get the SSH banner from that host. [08:54] i don't see the banner [08:54] You should see "SSH-2.0-Twisted" [08:54] is it my corporate FW blocking me.... [08:55] Ok, so it's a firewall blocking your access to bazaar.launchpad.net's SSH service [08:55] spiv: after uncommit, there are lots of changes in the work dir, is there a way to discard those changes too? [08:55] leo2007, `bzr revert` [08:55] leo2007: "bzr revert", but why do you think that "bzr log -r -1" output is wrong? [08:55] leo2007, Those changes are the ones from the revisions you uncommitted [08:55] ohh.. need to talk to my sysadmin guys to give that access... [08:55] thx.. spiv [08:58] spiv: I am new to this so I am going to do it the stupidest way. Backout my commits and then sync and then reapply them. [08:59] leo2007: Isn't what you want a branch that includes the changes from your 2 revisions combined with the changes from other 10 revisions? With the original history of all those revisions intact? [08:59] leo2007: if so, then the merge you did and committed should be exactly what you want. [09:01] spiv, thanks... [09:02] Perhaps you're more used to rebasing rather than merging, and the bzr-rewrite plugin provides a rebase command, but if you just want to a) record the history of your changes and b) share your changes with others, then there's no need to rebase when a simple merge will do. [09:02] kiranmurari: you're welcome [09:03] leo2007: but I'm just guessing, because you haven't explained what your problem actually is :( [09:07] Hi Riddell [09:08] morning [09:08] I guess you're going to be my cue to be done for the day ;) [09:09] Especially when the toddler's new trick is pulling his shirt over his face and then, entirely predictably, walking into things! [09:09] Well, predictable if you're not a toddler at least. [09:09] spiv: I need to read up on bzr but I am only using it occasionally so I am not confident. [09:15] leo2007: what's your 'other' dvcs which you (mostly) use? [09:18] gour: mostly git. [09:19] gour: and mostly from emacs via magit.el. [09:25] leo2007: ineresting...i'm just switching from emacs to vim...and simply cannot grok git...used darcs for a long time, then monotone & fossil, but now i'm back to bzr which i find the most intuitive (after darcs) where i do not need to think about the tool, but just using it...fossil is nice idea due to integrated tracker, wiki, but let's hope there will be wiki at LP at some time [09:27] gour: Somehow git grows on me. I am most productive with it. [09:27] leo2007: good luck. ;) i believe my feet would be destroyed very soon :-) [09:31] I eventually get my 2 commits upstream. [09:35] spiv: many thanks for your help. Really appreciated. [09:40] leo2007: you're welcome [09:41] leo2007: FWIW, usually if upstream wants to incorporate your changes they just "bzr merge" from your branch. [09:41] spiv: usually they just ask me to commit directly. [09:42] leo2007: ah, in that case you're upstream, so you can do the merge of your branch into the upstream branch yourself :) [09:43] spiv: yeah, but my repo setup might have some problems so I need to find time to fix it first. Hopefully tonight. [09:45] Have to go, run out of battery soon. Talk later. [09:45] leo2007: good luck. Feel free to ask in here for help if you get stuck; I'm done for the night but there should be plenty of other folk here that can help. [09:45] spiv: thanks a lot. [09:45] I will do so. === hunger_ is now known as hunger [10:18] hey spiv. Thought I'd come in here rather than clutter up the bug report with troubleshooting info. (referring to https://bugs.launchpad.net/bzr/+bug/772935 0 [10:18] Ubuntu bug 772935 in Bazaar "ErrorFromSmartServer: Absent factory for StaticTuple" [High,Confirmed] [10:50] Pegasus_RPG: I'm mostly not here atm, but try prefixing the URL with nosmart+ [10:50] k [10:55] that seems to have helped. It's working for much longer now, thanks. [12:33] hi! [12:34] how can i remove a file from disk, without it getting removed from bzr? [12:34] is this possible? [12:40] You want a file not not exist on disk, but that deletion to never be committed? Why? [12:41] i need to give access to this machine to someone else. i don't want them to be able to see the file - the guy is too stupid to know what bzr is, though [12:41] cheater_: Just delete it and "bzr revert" when you get the box back? [12:42] yeah but the thing is, it's just one of the checkouts i'm on. i want to be able to do "bzr ci" without having to cherry-pick the file [12:42] the files [12:42] and they get access to the pc all the time [12:43] Maybe you could "bzr ignore" it. [12:43] Not sure if that would work. [12:43] hmhmhm. [12:43] It seems very wrong to me that you are trying to rely on the absence of this file from disk in the working tree as a form of security, yet are happy for the data to remain on disk inside the bazaar repository [12:44] Nope, doesn't work :( [12:44] maxb: exactly. [12:44] So, don't do that. [12:44] maxb: thanks, i can also think for myself :-) [12:45] maxb: but i'll let you know when it's time to go potty [12:45] :p === zyga is now known as zyga-afk [13:16] i don't know what went wrong.... i'm unable to push code to launchpad [13:16] neither "bzr branch" nor "bzr checkout" succeed... [13:17] i doubted it to be a firewall issue... but from a different machine in the same network, i'm able to branch and checkout the code [13:17] does it have to do something with the SSH keys [13:17] i keep getting this error message... for both "bzr push" and "bzr branch" [13:18] ssh_exchange_identification: read: Connection reset by peer [13:18] bzr: ERROR: Connection closed: Unexpected end of message. Please check connectivity and permissions, and report a bug if problems persist. [13:18] any help is appreciated... [13:25] Sounds like SSH is upset [13:26] You should attempt to run "ssh your-launchpad-id@bazaar.launchpad.net" to test SSH connectivity outside of bazaar [13:26] If working correctly it prints "No shells on server" [13:27] maxb: it says ssh_exchange_identification: read: Connection reset by peer [13:28] I'm inclined to blame connectivity or firewalling within your network [13:29] but from a different machine in same network, i'm able "bzr branch" [13:30] on this machine even "bzr branch" doesn't work.. resulting in the same error === ihateyou1oo is now known as elmo [14:11] anyone got bzr bisect installed? [14:11] https://launchpad.net/bzr-bisect [14:16] is there a way to be verbose about the ssh connection being attempted by bzr pull? [14:27] cr3: For bzr+ssh or for sftp? [14:29] soren: bzr+ssh, I just ran ssh -vvv on the same host used by bzr which does the trick, I was wondering though if there might be a debug environment variable that might come in handy in the future [14:49] hello everyone, is there any method to resume an interrupted bzr checkout [14:49] please help [14:50] please i can't afford more downloading it costs me too much money :( [14:50] please help [14:56] spyzer: lightweight checkout? [14:56] gour is that a command [14:56] spyzer: bzr checkout --lightweight url...check help [14:57] ohhkk thanks a lot :) [15:13] ...that could be exactly the wrong thing, unless he's running a very recent version [15:17] bug 737234 [15:17] Launchpad bug 737234 in Bazaar 2.3 "too much data transferred making a new stacked branch" [High,Fix released] https://launchpad.net/bugs/737234 [15:17] let's hope he had at least 2.3.2 :) [15:18] ahh, that was too much for me to know [15:19] indeed, it was a reasonable answer otherwise. [15:19] bug 116148 is also relevent. [15:19] Launchpad bug 116148 in Bazaar "bzr branch should be resumable if interrupted" [Wishlist,Confirmed] https://launchpad.net/bugs/116148 [15:20] i wonder why after i decided to become serious with bzr (again), fossil shows some unexplainable problems like inability to launch ui for every repo i have [15:22] it doesn't like your infidelity? [15:23] he he...or it's simply time to say goodbye, although not like zed shaw did :-) [16:47] Hi there [16:50] I'm programming a forge in python for bzr (with bzrlib), I've managed to retrieve the commits log for a project, but I get some Revision objects. Unfortunately, they don't seem to contain all information I want, like their revision ID or the date they were commited. I looked at the API reference, but it's quite overwhelming and I can't find what I need. Could someone point me in the right direction please? === beuno is now known as beuno-lunch === zyga-afk is now known as zyga [17:53] How do I specify the revision before a revision? === deryck is now known as deryck[lunch] [18:01] cody-somerville, before: [18:01] * cody-somerville nods. [18:01] james_w, thanks. === beuno-lunch is now known as beuno [18:36] mgz: ping, still around ? I lost track of your no-pseudo-cycles work but the test on windows won't be able to pass again until you land some parts of your patch no / [18:36] grrr [18:36] ? [18:37] hey vila [18:37] mgz: hey ! [18:37] I'm a bit stuck at the moment as the trunk state seems unmergable with my branch [18:38] huh ? Nothing a good pitchfork can't fix no ? [18:38] rev 5901 and rev 5902 seem to invert each other rather than being two bits of the branch split out [18:40] if you know how to get bzr.dev back into a state I can merge into, that would be great [18:40] meh, better to prepare a branch that solve the issue and merge that [18:41] but bzr qlog is quite... clear about what happened no ? [18:42] ...not to me? [18:43] it looks like jam merged your work twice with two variants the later merging an older version of your work... [18:44] so the result is that all of your work up to 'Clear extra lists with test instances in fork_for_tests' has already been merged with some amendments [18:44] this is not in fact the case. [18:44] the merges did not result in any code changing on trunk. [18:45] urgh, really ? [18:46] and I don't know how to fix it. [18:46] wow, bzr diff -r5900..5902 [18:46] now that's censoring :) [18:47] right. [18:48] weirdo, jam landed a revid:john@arbash-meinel.com-20110519185007-yzrct57glwjip8co *after* revid:john@arbash-meinel.com-20110519185931-9xcxj2ow2v1y4xvv [18:48] but the former was created *before* the later [18:49] mgz: did you discuss the issue with him ? [18:50] I did, but I'm not sure he gathered that I was stuck unless something gets fixed. [18:53] I need to update a few things, so I think I take the superceding revision off my branch, continue working, then worry about what's needed to get this landed later. === deryck[lunch] is now known as deryck [18:56] mgz: I think showing him that `bzr diff -r5900.5902` outputs *nothing* should give him a hint that something went wrong [20:08] mgz: can you link the branches that are an issue? [20:08] mgz: I can probably just give you a branch tip [20:08] vila: I landed the one after the former, because the first landed had a test fix, that the other one needed because it removed _get_log [20:09] but it is possible that ones diff confused things [20:09] jam: lp:bzr doesn't contain any of the changesets from lp:~gz/bzr/cleanup_testcases_by_collection_613247 [20:09] and if I now try to merge lp:~gz/bzr/cleanup_testcases_by_collection_613247 into lp:bzr no changes from bzrlib/tests/__init__.py are included [20:22] jam: but have a look at `bzr diff -r5900.5902', it outputs nothing [20:22] jam: and if the later needed the former shouldn't it be based on it ? [20:23] vila: I determined it ad-hoc after the branches had been created. [20:23] jam: but how do you explain the empty diff ? [20:23] vila: that confuses me. I could see how one would supersede the other, and revert some content, but not how it would revert itself [20:24] perhaps the criss-cross got things really confused, and both sides saw the other side revert its change.. [20:24] jam: indeed, I'm sure you wanted to land *something* [20:24] I can see how it could have happened [21:01] I'm about to use bzr rebase to burn out some bad (as in massive, binary "nuke 'em from orbit") commits from old history on a purely private repo. [21:04] With the current rebase UI, it looks like I'll have to run rebase roughly once for each contiguous span of bad commits... is there a more straightforward way than re-running rebase (ala git rebase --interactive, for example)? [21:04] i have no idea how rebase works, sowwy :< [22:40] oh hai. [22:41] http://paste.ubuntu.com/612467/ <-- wtf? [22:41] hardy with bzr 2.3.1-0.0.ISPATCHED.8.04 [22:41] the patch, specifically, is to do a bzr whoami --branch if /etc/ doesn't already know who it is. [22:42] in postinst [22:42] this machine alone in my experience of hating bzr with this much passion [22:43] purging and reinstalling bzr and python-bzrlib has no effect [22:48] lifeless: ^^ when you see that [23:10] How do I commit just locally for now, and not to my launchpad account? [23:12] nm, --local is what I need, but what is a "bound branch" [23:17] lamont: fun [23:17] KombuchaKip: if you have a local branch, just commit and don't push [23:17] KombuchaKip: if you started with 'bzr checkout' then you have a bound branch [23:17] lifeless: I'll happily delve into wtf happend on that box with you [23:18] lifeless: Right, so how do I make it so when I commit, it just goes local for now? [23:18] all I know history-wise is "it ain't happy now" [23:19] lamont: File "/usr/lib/python2.5/site-packages/bzrlib/osutils.py", line 972, in failed_to_load_extension [23:19] lamont: I think you've found a regression [23:19] lamont: could you file a bug ? [23:20] KombuchaKip: did you start with 'bzr checkout' ? [23:20] lifeless: How do I know what a branch is "plugged into". [23:20] KombuchaKip: or 'bzr branch' ? [23:20] KombuchaKip: 'bzr info [23:20] lifeless: Yes, I started with a checkout. [23:20] ' [23:21] lifeless: Ok, so now I just want to commit local for now. When I commit, what happens to the server's revision numbers when I finally plug back into the server's branch on LP? [23:21] KombuchaKip: http://doc.bazaar.canonical.com/bzr.2.3/en/user-guide/using_checkouts.html may be helpful [23:21] lifeless: Thank you. [23:21] KombuchaKip: if noone use has committed to the server, then your local ones will be used [23:21] lifeless: I'm reading the guide now, but still curious what happens to revision numbers. [23:22] KombuchaKip: if someone else has committed, you'll need to do a bzr update; bzr commit - and their revision numbers will be used. [23:22] lifeless: Right. So if I make 5 local commits and server is at r6, after I rebind, server will be at r11? [23:22] once you push yes [23:23] lifeless: Can you explain the difference between push and commit? [23:23] lifeless: I still don't get it. [23:25] so commit creates a new commit object [23:26] push shoves commit objects between branches [23:26] a 'checkout' creates a bound branch which is a regular branch that has an automatic push to the other branch when a commit is done [23:26] checkout also requires an internet connection. [23:26] which sux. [23:26] lifeless: Right. So when you checkout, a commit and push are the same thing. A commit implies a push. [23:27] or connection to the branch you checked out from :o [23:28] lifeless: Ok, I think I totally understand this bind / unbind / commit / push stuff now. Thanks [23:39] * KombuchaKip jumps and clicks his heels at the epiphany [23:39] so if you have a branch [23:40] and you kinda make a 'fork' of that branch and do stuff so you don't fuck up the original one, what happens if the original one updates [23:40] You really don't understand bzr until you've had to do something random like actually take your work on the road without a connection and where you have more than one machine you need to do something in private on. [23:40] does the 'fork' have to update too? [23:40] AuroraBorealis: I think you don't have to deal with that until you push back into the main branch. [23:41] AuroraBorealis: And even then, you should be prompted to merge, I believe. [23:41] yeah. [23:41] ive never done multiple branches / merges before [23:41] AuroraBorealis: Me neither, just learning now. [23:41] woo and yay! === nlisgo_ is now known as nlisgo