/srv/irclogs.ubuntu.com/2011/05/24/#bzr.txt

mwhudsonhow do you resurrect files in bzr?03:58
lifelessmwhudson: holy water03:58
lifelessmwhudson: or, revert -r X Y03:59
mwhudsonah right03:59
mwhudsonhm04:00
mwhudsonthat gives "paths not versioned"04:00
lifelesswas Y in rev X ?04:01
mwhudsonyes04:01
mwhudsonah04:01
mwhudsonno04:01
mwhudsonconfusing myself with intermixed renames04:02
lifelessthis is a single valued answer04:02
mwhudsonlifeless: thanks04:02
lifeless:)04:02
mwhudsonit was there, but not with the name "Y" :)04:02
lifeless:)04:03
mwhudsonso 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 commit04:08
mwhudsoni'm sure this sort of thing used to corrupt your dirstate occasionally :)04:09
lifelessyeah04:09
lifelesswe should be beyond that04:09
mwhudsonseems like it04:10
lifelessjams new stuff has the risk of reintroducing it, but like it was worth it for commit, it will be worth it for revert etc04:11
=== aurora|away is now known as AuroraBorealis
=== AuroraBorealis is now known as aurora|away
=== aurora|away is now known as AuroraBorealis
bignoseHow do I spell “the latest revision on branch foo” as a revspec?07:18
AfCbignose: -r branch:../path/to/branch ?07:19
bignoseAfC: okay. but how do I use the “last:N” on that branch?07:19
AfCbignose: no idea. Anytime I tried to use branch: it crashed. :/07:20
AfCI'm Sure They've Fixed That Nowtm07:20
spivbignose: revno:-N:/path/to/branch07:20
AfC':' ?07:21
AfCreally?07:21
spivWhich colon are you questioning?07:21
AfCspiv: 2nd07:41
AfC(not questioning. Is that shorthand for "the branch at path"?07:41
spivAfC: I'm not sure what you mean by shorthand; it's part of the syntax supported by the "revno:" revspec.08:10
lifelessAfC: its short for 'the tip rev of the branch at path'08:17
AfClifeless: good to know! Thanks08:20
leo2007In my branch, I have 2 extra revision(s) and are missing 10 revision(s).08:35
leo2007What's the best way to sync the missing 10 revisions.08:36
spivUsually with "bzr merge"08:38
spiv(followed by resolving any conflicts and committing)08:38
leo2007Is it difficult to resolve conflicts?08:39
leo2007I am mostly a git user.08:39
spivDepends on the conflicts :)08:39
* gour is moving (back) to bzr from fossil08:39
spivThe conflicts are unlikely to be much different to the sort you'd get with git.08:39
leo2007but after bzr merge, the extra 2 revisions will not be on top of the history, right?08:39
spivmerge by itself doesn't do anything to history08:40
spivIt's when you commit that a new revision is, well, committed to the history.08:41
leo2007OK, I am doing 'b merge' now.08:41
spivIf you commit a merge, the revision will have two parents (or more if you did multiple merges before committing).08:41
leo20072 conflicts encountered.08:42
spivSo 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:43
leo2007Now I edited the two conflicts and they seem to contain the intended changes.08:44
leo2007What to do next?08:44
spivUse "bzr resolve" to inform bzr that the conflicts have been resolved, and commit.08:45
leo2007I am screwed.08:50
spivWhat's up?08:50
leo2007How can I go back to a previous status: 10433408:50
spivDo you mean undo the commit?  "bzr uncommit"08:51
kiranmurariI'm trying push code to a branch created for my project... but bzr push always fails08:51
kiranmuraribzr push --use-existing lp:~kiranmurari/proj_name/branch08:52
spiv(And then possibly "bzr revert" as well, depending on what you want)08:52
spivkiranmurari: what's the error?08:52
kiranmurarigives me..08:52
kiranmurarissh_exchange_identification: read: Connection reset by peer08:52
kiranmuraribzr: ERROR: Connection closed: Unexpected end of message. Please check connectivity and permissions, and report a bug if problems persist08:52
spivkiranmurari: any other lines before that?08:52
kiranmurarinothing08:52
awilkinskiranmurari, Can you open just a normal SSH shell on that server (if you have the rights?)08:52
spivThen it's a firewall most likely.08:52
leo2007spiv: after the merge, the first commit seems to contain all the changes from the missing 10 revisions: http://paste.pocoo.org/show/39413408:53
spivwhat happens if you try "telnet bazaar.launchpad.net 22"?08:53
spivkiranmurari: (regarding your pm), no, I really mean telnet08:53
kiranmurariohh ok08:53
spivI want to know if you get connection closed by peer even then08:54
kiranmurariit doesn't succeed.. says connection closed by foreign host08:54
spivOr if you successfully get the SSH banner from that host.08:54
kiranmurarii don't see the banner08:54
awilkinsYou should see "SSH-2.0-Twisted"08:54
kiranmurariis it my corporate FW blocking me....08:54
spivOk, so it's a firewall blocking your access to bazaar.launchpad.net's SSH service08:55
leo2007spiv: after uncommit, there are lots of changes in the work dir, is there a way to discard those changes too?08:55
awilkinsleo2007, `bzr revert`08:55
spivleo2007: "bzr revert", but why do you think that "bzr log -r -1" output is wrong?08:55
awilkinsleo2007, Those changes are the ones from the revisions you uncommitted08:55
kiranmurariohh.. need to talk to my sysadmin guys to give that access...08:55
kiranmurarithx.. spiv08:55
leo2007spiv: 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:58
spivleo2007: 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
spivleo2007: if so, then the merge you did and committed should be exactly what you want.08:59
kiranmurarispiv, thanks...09:01
spivPerhaps 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
spivkiranmurari: you're welcome09:02
spivleo2007: but I'm just guessing, because you haven't explained what your problem actually is :(09:03
spivHi Riddell09:07
Riddellmorning09:08
spivI guess you're going to be my cue to be done for the day ;)09:08
spivEspecially when the toddler's new trick is pulling his shirt over his face and then, entirely predictably, walking into things!09:09
spivWell, predictable if you're not a toddler at least.09:09
leo2007spiv: I need to read up on bzr but I am only using it occasionally so I am not confident.09:09
gourleo2007: what's your 'other' dvcs which you (mostly) use?09:15
leo2007gour: mostly git.09:18
leo2007gour: and mostly from emacs via magit.el.09:19
gourleo2007: 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 time09:25
leo2007gour: Somehow git grows on me. I am most productive with it.09:27
gourleo2007: good luck. ;) i believe my feet would be destroyed very soon :-)09:27
leo2007I eventually get my 2 commits upstream.09:31
leo2007spiv: many thanks for your help. Really appreciated.09:35
spivleo2007: you're welcome09:40
spivleo2007: FWIW, usually if upstream wants to incorporate your changes they just "bzr merge" from your branch.09:41
leo2007spiv: usually they just ask me to commit directly.09:41
spivleo2007: ah, in that case you're upstream, so you can do the merge of your branch into the upstream branch yourself :)09:42
leo2007spiv: yeah, but my repo setup might have some problems so I need to find time to fix it first. Hopefully tonight.09:43
leo2007Have to go, run out of battery soon. Talk later.09:45
spivleo2007: 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
leo2007spiv: thanks a lot.09:45
leo2007I will do so.09:45
=== hunger_ is now known as hunger
Pegasus_RPGhey 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 010:18
ubot5Ubuntu bug 772935 in Bazaar "ErrorFromSmartServer: Absent factory for StaticTuple" [High,Confirmed]10:18
spivPegasus_RPG: I'm mostly not here atm, but try prefixing the URL with nosmart+10:50
Pegasus_RPGk10:50
Pegasus_RPGthat seems to have helped. It's working for much longer now, thanks.10:55
cheater_hi!12:33
cheater_how can i remove a file from disk, without it getting removed from bzr?12:34
cheater_is this possible?12:34
maxbYou want a file not not exist on disk, but that deletion to never be committed? Why?12:40
cheater_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, though12:41
sorencheater_: Just delete it and "bzr revert" when you get the box back?12:41
cheater_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 file12:42
cheater_the files12:42
cheater_and they get access to the pc all the time12:42
sorenMaybe you could "bzr ignore" it.12:43
sorenNot sure if that would work.12:43
cheater_hmhmhm.12:43
maxbIt 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 repository12:43
sorenNope, doesn't work :(12:44
cheater_maxb: exactly.12:44
maxbSo, don't do that.12:44
cheater_maxb: thanks, i can also think for myself :-)12:44
cheater_maxb: but i'll let you know when it's time to go potty12:45
cheater_:p12:45
=== zyga is now known as zyga-afk
kiranmurarii don't know what went wrong.... i'm unable to push code to launchpad13:16
kiranmurarineither "bzr branch" nor "bzr checkout" succeed...13:16
kiranmurarii doubted it to be a firewall issue... but from a different machine in the same network, i'm able to branch and checkout the code13:17
kiranmuraridoes it have to do something with the SSH keys13:17
kiranmurarii keep getting this error message... for both "bzr push" and "bzr branch"13:17
kiranmurarissh_exchange_identification: read: Connection reset by peer13:18
kiranmuraribzr: ERROR: Connection closed: Unexpected end of message. Please check connectivity and permissions, and report a bug if problems persist.13:18
kiranmurariany help is appreciated...13:18
LeoNerdSounds like SSH is upset13:25
maxbYou should attempt to run "ssh your-launchpad-id@bazaar.launchpad.net" to test SSH connectivity outside of bazaar13:26
maxbIf working correctly it prints "No shells on server"13:26
kiranmurarimaxb: it says ssh_exchange_identification: read: Connection reset by peer13:27
maxbI'm inclined to blame connectivity or firewalling within your network13:28
kiranmuraribut from a different machine in same network, i'm able "bzr branch"13:29
kiranmurarion this machine even "bzr branch" doesn't work.. resulting in the same error13:30
=== ihateyou1oo is now known as elmo
ironcamelanyone got bzr bisect installed?14:11
ironcamelhttps://launchpad.net/bzr-bisect14:11
cr3is there a way to be verbose about the ssh connection being attempted by bzr pull?14:16
sorencr3: For bzr+ssh or for sftp?14:27
cr3soren: 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 future14:29
spyzerhello everyone, is there any method to resume an interrupted bzr checkout14:49
spyzerplease help14:49
spyzerplease i can't afford more downloading it costs me too much money :(14:50
spyzerplease help14:50
gourspyzer: lightweight checkout?14:56
spyzergour is that a command14:56
gourspyzer: bzr checkout --lightweight url...check help14:56
spyzerohhkk thanks a lot :)14:57
mgz...that could be exactly the wrong thing, unless he's running a very recent version15:13
mgzbug 73723415:17
ubot5Launchpad bug 737234 in Bazaar 2.3 "too much data transferred making a new stacked branch" [High,Fix released] https://launchpad.net/bugs/73723415:17
mgzlet's hope he had at least 2.3.2 :)15:17
gourahh, that was too much for me to know15:18
mgzindeed, it was a reasonable answer otherwise.15:19
mgzbug 116148 is also relevent.15:19
ubot5Launchpad bug 116148 in Bazaar "bzr branch should be resumable if interrupted" [Wishlist,Confirmed] https://launchpad.net/bugs/11614815:19
gouri 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 have15:20
mgzit doesn't like your infidelity?15:22
gourhe he...or it's simply time to say goodbye, although not like zed shaw did :-)15:23
etenilHi there16:47
etenilI'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?16:50
=== beuno is now known as beuno-lunch
=== zyga-afk is now known as zyga
cody-somervilleHow do I specify the revision before a revision?17:53
=== deryck is now known as deryck[lunch]
james_wcody-somerville, before:18:01
* cody-somerville nods.18:01
cody-somervillejames_w, thanks.18:01
=== beuno-lunch is now known as beuno
vilamgz: 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
vilagrrr18:36
vila?18:36
mgzhey vila18:37
vilamgz: hey !18:37
mgzI'm a bit stuck at the moment as the trunk state seems unmergable with my branch18:37
vilahuh ? Nothing a good pitchfork can't fix no ?18:38
mgzrev 5901 and rev 5902 seem to invert each other rather than being two bits of the branch split out18:38
mgzif you know how to get bzr.dev back into a state I can merge into, that would be great18:40
vilameh, better to prepare a branch that solve the issue and merge that18:40
vilabut bzr qlog is quite... clear about what happened no ?18:41
mgz...not to me?18:42
vilait looks like jam merged your work twice with two variants the later merging an older version of your work...18:43
vilaso 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 amendments18:44
mgzthis is not in fact the case.18:44
mgzthe merges did not result in any code changing on trunk.18:44
vilaurgh, really ?18:45
mgzand I don't know how to fix it.18:46
vilawow,  bzr diff -r5900..590218:46
vilanow that's censoring :)18:46
mgzright.18:47
vilaweirdo, jam landed a revid:john@arbash-meinel.com-20110519185007-yzrct57glwjip8co *after* revid:john@arbash-meinel.com-20110519185931-9xcxj2ow2v1y4xvv18:48
vilabut the former was created *before* the later18:48
vilamgz: did you discuss the issue with him ?18:49
mgzI did, but I'm not sure he gathered that I was stuck unless something gets fixed.18:50
mgzI 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.18:53
=== deryck[lunch] is now known as deryck
vilamgz: I think showing him that `bzr diff -r5900.5902` outputs *nothing* should give him a hint that something went wrong18:56
jammgz: can you link the branches that are an issue?20:08
jammgz: I can probably just give you a branch tip20:08
jamvila: I landed the one after the former, because the first landed had a test fix, that the other one needed because it removed _get_log20:08
jambut it is possible that ones diff confused things20:09
mgzjam: lp:bzr doesn't contain any of the changesets from lp:~gz/bzr/cleanup_testcases_by_collection_61324720:09
mgzand 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 included20:09
vilajam: but have a look at `bzr diff -r5900.5902', it outputs nothing20:22
vilajam: and if the later needed the former shouldn't it be based on it ?20:22
jamvila: I determined it ad-hoc after the branches had been created.20:23
vilajam: but how do you explain the empty diff ?20:23
jamvila: that confuses me. I could see how one would supersede the other, and revert some content, but not how it would revert itself20:23
jamperhaps the criss-cross got things really confused, and both sides saw the other side revert its change..20:24
vilajam: indeed, I'm sure you wanted to land *something*20:24
jamI can see how it could have happened20:24
whitleyI'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:01
whitleyWith 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
AuroraBorealisi have no idea how rebase works, sowwy :<21:04
lamontoh hai.22:40
lamonthttp://paste.ubuntu.com/612467/  <--  wtf?22:41
lamonthardy with bzr 2.3.1-0.0.ISPATCHED.8.0422:41
lamontthe patch, specifically, is to do a bzr whoami --branch if /etc/ doesn't already know who it is.22:41
lamontin postinst22:42
lamontthis machine alone in my experience of hating bzr with this much passion22:42
lamontpurging and reinstalling bzr and python-bzrlib has no effect22:43
lamontlifeless: ^^ when you see that22:48
KombuchaKipHow do I commit just locally for now, and not to my launchpad account?23:10
KombuchaKipnm, --local is what I need, but what is a "bound branch"23:12
lifelesslamont: fun23:17
lifelessKombuchaKip: if you have a local branch, just commit and don't push23:17
lifelessKombuchaKip: if you started with 'bzr checkout' then you have a bound branch23:17
lamontlifeless: I'll happily delve into wtf happend on that box with you23:17
KombuchaKiplifeless: Right, so how do I make it so when I commit, it just goes local for now?23:18
lamontall I know history-wise is "it ain't happy now"23:18
lifelesslamont: File "/usr/lib/python2.5/site-packages/bzrlib/osutils.py", line 972, in failed_to_load_extension23:19
lifelesslamont: I think you've found a regression23:19
lifelesslamont: could you file a bug ?23:19
lifelessKombuchaKip: did you start with 'bzr checkout' ?23:20
KombuchaKiplifeless: How do I know what a branch is "plugged into".23:20
lifelessKombuchaKip: or 'bzr branch' ?23:20
lifelessKombuchaKip: 'bzr info23:20
KombuchaKiplifeless: Yes, I started with a checkout.23:20
lifeless'23:20
KombuchaKiplifeless: 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
lifelessKombuchaKip: http://doc.bazaar.canonical.com/bzr.2.3/en/user-guide/using_checkouts.html may be helpful23:21
KombuchaKiplifeless: Thank you.23:21
lifelessKombuchaKip: if noone use has committed to the server, then your local ones will be used23:21
KombuchaKiplifeless: I'm reading the guide now, but still curious what happens to revision numbers.23:21
lifelessKombuchaKip: if someone else has committed, you'll need to do a bzr update; bzr commit - and their revision numbers will be used.23:22
KombuchaKiplifeless: Right. So if I make 5 local commits and server is at r6, after I rebind, server will be at r11?23:22
lifelessonce you push yes23:22
KombuchaKiplifeless: Can you explain the difference between push and commit?23:23
KombuchaKiplifeless: I still don't get it.23:23
lifelessso commit creates a new commit object23:25
lifelesspush shoves commit objects between branches23:26
lifelessa 'checkout' creates a bound branch which is a regular branch that has an automatic push to the other branch when a commit is done23:26
AuroraBorealischeckout also requires an internet connection.23:26
AuroraBorealiswhich sux.23:26
KombuchaKiplifeless: Right. So when you checkout, a commit and push are the same thing. A commit implies a push.23:26
AuroraBorealisor connection to the branch you checked out from :o23:27
KombuchaKiplifeless: Ok, I think I totally understand this bind / unbind / commit / push stuff now. Thanks23:28
* KombuchaKip jumps and clicks his heels at the epiphany23:39
AuroraBorealisso if you have a branch23:39
AuroraBorealisand 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 updates23:40
KombuchaKipYou 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
AuroraBorealisdoes the 'fork' have to update too?23:40
KombuchaKipAuroraBorealis: I think you don't have to deal with that until you push back into the main branch.23:40
KombuchaKipAuroraBorealis: And even then, you should be prompted to merge, I believe.23:41
AuroraBorealisyeah.23:41
AuroraBorealisive never done multiple branches / merges before23:41
KombuchaKipAuroraBorealis: Me neither, just learning now.23:41
AuroraBorealiswoo and yay!23:41
=== nlisgo_ is now known as nlisgo

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