/srv/irclogs.ubuntu.com/2012/05/11/#bzr.txt

=== r0bby is now known as robbyoconnor
=== zyga__ is now known as zyga
=== zyga is now known as zyga-food
mgzmorning09:00
vilamorning mgz09:00
fullermdOh, not again.09:03
mgz'fraid so fullermd09:03
fullermdSo, I guess the lack of response means that nobody else is bothered by that wretched uncommit log output?09:03
mgzyou mean the thing where it says from revX to revX that you posted?09:08
fullermdYah.09:08
mgzit's not great, don't think we have a neat way of printing rev ranges for logging, but adding three lines to fix it would be accepted if proposed I'd think09:09
fullermdWell, I'd imagine not so much "add a neat way" as "fix the bug"...09:09
=== zyga-food is now known as zyga
fullermdIt's already obviously trying to print both.  It's just failing.09:11
mgzhm, that's not how I saw it09:12
mgzlooked like it was just handling the case where the first rev removed is the same as the last rev removed (ie, uncommiting one rev only)09:13
fullermdI read the log message as [intending to be] meaning "uncommitting from [old head that's disappearing] to [new head]"09:14
mgzit's clearly not clear :)09:15
fullermdIf that's not what it's trying to express, definitely not...  it hadn't occured to me that it _could_ be meaning anything else.09:19
=== zyga_ is now known as zyga
mgzwhat's the git equiv. of `bzr info`?10:42
mgzjust bzr info should work, but bzr-git isn't showing me the origin url10:43
mgzI guess `cat .git/config` works10:43
fullermdFor showing locations, I think something under 'git remote'?10:44
mgzseems `git remote -v show` does something reasonable there10:45
mgz...with show not being required10:46
fullermdNow if you'll excuse me, I have to go cry in a corner at the realization that I had that bit of info in my head...10:46
=== yofel_ is now known as yofel
frathgeberquick stupid question (should be straightforward but just can't figure it out right now): i have a bare remote repo, which i want to revert to a previous revision12:47
frathgeberbzr push -r <rev> doesn't change the remote revision12:47
frathgeberupdate and revert also don't work since they only affect trees, not branches12:48
frathgeberhow can this be done?12:48
frathgeberobviously i could delete the branch and re-create it, but i figured there must be an easier way?12:49
frathgeberok, i could edit .bzr/branch/last-revision, but that seems even less straightforward12:50
frathgeberin case it matters: the branch is part of a tree-less shared repo12:50
spivfrathgeber: push --overwrite -r REV13:02
frathgebernope, tried that13:06
frathgebernote that the local and remote branches haven't diverged13:07
frathgeberi just want go back to a previous revision on the remote branch13:07
spivWhat happens when you try that?13:07
frathgeberbehavious is the same as without --overwrite13:08
spiv(e.g. do you get an error or warning, or anything like that?)13:08
frathgeberactually thinking about it my question doesn't have anything to do with remote or bare branches13:08
spivbzr push --overwrite -r REV LOCATION_OF_BRANCH13:09
frathgeberthe same goes for a local branch: how do i revert to a previous revision?13:09
spiv(perhaps your default push location is not the location you want to change)13:09
frathgeberi know i can revert the tree using update -r or revert -r13:09
frathgeberno, also not the problem13:09
spivI use push --overwrite or pull --overwrite to do that.13:09
spivDoes it give any output at all?13:09
frathgeberyou're sure that works?13:09
spivYes, or I wouldn't keep suggesting it :)13:10
frathgeberit says no revisions to push13:10
spiv(This is exactly what the --overwrite option is for)13:10
frathgeberis your remote branch using a shared repo?13:10
spivAh, yes, but did you check if the branch changesd?13:10
frathgeberthe overwrite option is for pushing despite the local and remote branches have diverged in my understanding13:10
frathgeberit doesn't13:11
spivMore generally, --overwrite is for forcing the branch's last-revision to change w/o the divergence or going-backwards check.13:11
frathgeberok, that would make sense and suggest it should work for my case13:12
frathgeberodd13:12
spivThe "no revisions to push" message is a bug here, really.  It's technically correct (to make the branch point to an older revision requires transferring no new revisions, because obviously they're already there), but gives a misleading impression.13:13
frathgeberi figured out the bug13:13
frathgeberthe order of arguments matters13:13
frathgeberpush -r <rev> --overwrite doesn't work, push --overwrite -r <rev> does13:13
frathgeberthat is an actual bug13:13
spivI really doubt that makes a difference.  If it does then please do file a bug.13:14
spivBut that would be hugely surprising.13:14
frathgeberodd, can't reproduce it now13:15
frathgeberbut it defintely didn't work when i tried it before13:15
spivHow were you verifying?13:15
frathgeberfirst of all it said 'no new revisions to push' in both cases, i still have it right there in my shell13:17
frathgeberalso i checked .bzr/branch/last-revision13:18
frathgeberwhich was unchanged13:18
spivLike I said, "no new revisions to push" is expected in this case.13:19
spivChecking .bzr/branch/last-revision or the output of "bzr revision-info -d LOCATION" would be definitive.13:20
frathgeberin the successful case it prints 'pushed up to revision <rev>'13:22
frathgebercan reproduce it now13:27
frathgeberand the order of parameters doesn't matter13:28
frathgeberit doesn't work either way13:28
frathgeberexplicit push location doesn't help either13:29
frathgebereven more irritating: it works when i pushe the very same branch to the very same remote shared repo under a different name13:29
frathgebersubsequently i can revert the tip13:30
frathgebernow i can't any more, remains broken13:32
spivfrathgeber: please file a bug13:33
spivfrathgeber: --overwrite should work (or give a clear error if it needs to fail, e.g. because branch.conf has append_revisions_only = true.13:33
spiv(or whatever the spelling of that option is)13:34
frathgeberit's even more irritating13:35
frathgeberif i initially create the remote branch with a push -r <rev>13:36
frathgebersubsequent push --overwrite -r work13:36
frathgeberif i initially create the remote branch with a plain push subsequent push --overwrite -r do nothing13:37
spivfrathgeber: I strongly suspect there's something wrong in your diagnosis13:47
spivfrathgeber: because how a branch is created just doesn't vary interestingly because you used push vs push -r13:48
spivfrathgeber: but feel free to check by diff'ing the resulting .bzr/branch directories13:49
spivfrathgeber: unfortunately I need to sleep now so I can't help you narrow down your problem any further13:49
spivfrathgeber: good luck13:49
ciupicrihow can I see the version from ~2003 of http://bazaar.launchpad.net/~openerp/openobject-server/6.1/files/head:/openerp/report/render/rml2pdf/ ?13:53
frathgeberi did13:54
frathgeberliterally the only difference is .bzr/branch/last-revision13:54
frathgeberspiv: thanks for your help!13:55
spivciupicri: through the web UI alone: with difficulty (click "view branch changes" and page through the results and/or url hack)13:57
spivciupicri: with the bzr command line, something like "bzr log -r date:2003-01-01 lp:~openerp/openobject-server/6.1" (it won't be as fast as it could be in principle, but it should work)13:58
spivciupicri: (and then once you've found the rev using bzr log jump to that revision in the web site, or use other bzr commands to view the contents)13:59
spivciupicri: FWIW, the earliest rev in that branch dates to 200614:00
ciupicrispiv, the comand line is fine14:00
spivciupicri: http://bazaar.launchpad.net/~openerp/openobject-server/6.1/changes/114:00
ciupicrispiv, so I should check the trunk branch?14:00
spivPerhaps, depends on how the branches were created14:00
spivOr possibly that old history was discarded rather than imported into bzr14:01
ciupicrispiv, ok, I'll rephrase my request: how can I get the oldest code possible on my hard disk? I have run `bzr branch lp:openobject-server/6.1 6.1' and I would like to see how the project looked some time ago14:02
spiv-r 114:02
spivWell, that's for a given branch14:03
spivBut how to find the branch with the oldest data is more a problem for Google than bzr...14:03
ciupicribzr and what command? checkout?14:03
spivMost bzr commands accept -r, including checkout and branch14:03
spivAnyway, I really should sleep.14:04
spivG'night all14:04
ciupicrithanks14:04
=== deryck is now known as deryck[lunch]
=== deryck[lunch] is now known as deryck
=== abner` is now known as abner

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