/srv/irclogs.ubuntu.com/2014/02/27/#bzr.txt

=== thumper-gym is now known as thumper
=== jaimef_ is now known as jaimef
=== jaimef is now known as Jaimef
=== Jaimef is now known as jaimef
=== thumper is now known as thumper-back-for
=== thumper-back-for is now known as thumper-afk
=== rvba` is now known as rvba
=== thumper-afk is now known as thumper
=== who_da_fly is now known as superfly
CcxCZwhen bzr mv --auto screws up, how do I undo it's guesses?12:29
mgzCcxCZ: you can just bzr mv things back12:31
CcxCZ$ bzr mv --after doc/index.rst.old doc/spec.rst12:32
mgzor, if you can recreate the same tree state, revert and try again12:32
CcxCZbzr: ERROR: Could not rename index.rst.old => spec.rst: doc/doc/index.rst.old is not versioned.12:32
CcxCZbleh12:32
mgzthe .old bits aren't versioned, if you want that copy, just mv it back over the copy you don't want12:33
CcxCZthe files are all right. only bzr metadata is messed up12:38
CcxCZI do want to keep the files exactly as I have them. they have been moved around in a fashion bzr can't guess. I want it to forget about all moves and let me bzr mv --after the files to tell it how it really is12:41
CcxCZie. allow me to modify the id=>filename internal map12:42
CcxCZhave I made myself clear enough? do you understand my issue?12:43
mgzsure, but I don't see why you were mving a .old file then12:44
mgzyou just move all the moved versioned files12:44
mgz`bzr st` tells you what's been moved where, you can `bzr mv --after` everything so no moved have occured (or to how you want it)12:45
CcxCZwhat happened with files was: index.rst -> index.rst.old; spec.rst -> index.rst  what bzr mv --auto guessed was: doc/spec.rst => doc/index.rst.old12:46
mgzand what does `bzr st` report for those currently?12:47
CcxCZnote that it's ancient bzr version on this box, might be a bug. but I seem not to be able to move it back12:47
CcxCZrenamed:12:47
CcxCZ  doc/spec.rst => doc/index.rst.old12:47
mgzokay, well the easiest thing if that's not playing ball12:48
mgzis copy the changed files, `bzr revert`, copy them back, and do your `bzr mv --after` changes12:48
CcxCZwell I guess I can rsync --exclude=/.bzr it elsewhere, just thought there has to be a better way12:49
mgzthe mv is the better way, if it's failing you need the less handy way12:50
CcxCZbacked up, reverted, restored, manually mv --after'd12:52
CcxCZI guess I'll blame not being able to bzr mv stuff on old bzr version12:52
=== zyga_ is now known as zyga
=== marcoceppi_ is now known as marcoceppi
=== jaimef_ is now known as jaimef
=== SamB_ is now known as SamB
Derailedhey everyone -- I know next to nothing about bzr. but I'm tasked with fixing a shell script that's doing some bzr stuff and is misbehaving. I wonder if someone can help me debug it?20:39
CcxCZwe can try :)20:40
Derailedsorry -- had to run away for a minute. just a sec, lemme find a pastebin20:57
Derailedhere's the snippet: http://pastebin.com/UHJVrJJH20:58
Derailedthe logic is trying to be dumb simple: "I want a certain branch of my project in the directory 'launchpad', if it's not there, get it, if it is there, update it.20:59
Derailedthe '$1' is a version number like 1.4, 1.5 etc20:59
Derailedthe first part -- the 'checkout' doesn't actually seem to populate the 'working directory' (I only know git jargon sorry) and I have no idea why21:00
Derailedit's ubuntu 12.04, so bzr 2.521:00
Derailedthis is obviously very much a newbie question, but any help would be deeply appreciated21:00
thumpero/ Derailed21:01
Derailedhi thumper :-)21:01
thumperDerailed: I missed the start of the problem, whazzup?21:01
DerailedI will repost:21:01
Derailed<Derailed> sorry -- had to run away for a minute. just a sec, lemme find a pastebin21:01
Derailed<Derailed> here's the snippet: http://pastebin.com/UHJVrJJH21:01
Derailed<Derailed> the logic is trying to be dumb simple: "I want a certain branch of my project in the directory 'launchpad', if it's not there, get it, if it is there, update it.21:01
Derailed<Derailed> the '$1' is a version number like 1.4, 1.5 etc21:01
Derailedvery sorry -- I have to run away for 10 minutes, I will be back!21:03
thumperkk21:03
thumperDerailed: I'd change the logic slightly...21:04
thumperDerailed: initially use "branch" instead of "checkout", as this will get you the current copy from LP21:04
thumperDerailed: second bit should be "bzr pull", not switch21:04
thumperthis will just bring the latest from launchpad into your local repo21:04
CcxCZDerailed: is this posix sh? if not [[ might be more appropriate than [ and also quote properly any parameter expansion (such as $1) unless you target only zsh with parameter wordsplitting turned off21:23
Derailedhiya, sorryh about running away -- I'm back now21:35
Derailedthumper, so 'branch' will create the directory and populate it with the branch I ask for -- will 'pull' switch branches for me? the script is run in a for-loop, it does 1.4 then 1.5 then 1.6 etc, switching branches every time21:36
thumperno, pull doesn't switch21:37
thumperwhat does bzr info -v show in your repo?21:38
Derailedthumper, http://pastebin.com/8StJRYkg21:40
thumperDerailed: ok, what you have there is a checkout of a remote branch21:41
thumpersomething that is very inefficient to deal with21:41
Derailedthat's the "checkout of branch" thing?21:41
thumperyes21:43
thumperthe benefit is that when you commit locally, you are also committing remotely21:43
thumperthe slow part is that when you commit locally, you are committing remotely21:44
Derailedthis is an automated script that pulls the translation files for the branch, and builds docs with them. it never commits.21:44
thumperok21:45
thumperin which case that should be ok21:45
thumperswitch will not pull in new changes21:45
thumperyou need to switch, then 'bzr update'21:45
Derailedokay so the first one should be 'branch', and the second one should be 'switch' and then 'update'?21:45
thumperDerailed: hang on21:46
thumperyou have multiple sources, but just one target21:46
thumpermultiple lp branches, but just one local launchpad directory21:46
thumperis that what you want?21:46
Derailedyes21:46
* thumper thinks21:48
Derailedthumper, the whole script for context: http://pastebin.com/1bx1abtt21:49
DerailedI've no doubt it was written by someone who expected git-like behaviour21:49
Derailedand never tested the first part of that if statement, because the repository was already there21:50
thumperI have a cunning plan21:51
thumperto make it simpler :)21:51
thumperalthough it messes things up a bit21:52
Derailedsure. this is all a distraction from what I was SUPPOSED to be doing -- which was just making sure the mahara manual built correctly with the new version of sphinx. I just noticed this part was broken21:52
thumperactually21:52
thumperall you need to do to make it work is add "&& bzr update" just after the bzr switch ... --force21:53
thumperprior to the cd ..21:53
thumper...21:53
thumperactually, I think that perhaps it should work as is21:53
thumperwhat isn't it doing?21:53
Derailedthe first version that is supposed to be built is 1.4, when the script runs for the first time (when launchpad isn't there) a bzr operation happens and launchpad/ is created, but it's empty21:54
Derailedand I don't know why21:54
Derailedroot@precise64:/var/lib/sitedata/mahara-manual-sphinx# bash generate-mo-files.sh 1.421:55
DerailedStarting import of translations...21:55
DerailedChecking out the launchpad .po files21:55
DerailedYou have not informed bzr of your Launchpad ID, and you must do this to21:55
Derailedwrite to Launchpad or access private data.  See "bzr help launchpad-login".21:55
DerailedBranched 0 revisions.21:55
Derailedls: cannot access launchpad/potfiles/: No such file or directory21:55
thumperecho out the actual bzr command21:57
thumperI think you'll find that it isn't substituting the $121:57
DerailedChecking out the launchpad .po files21:58
Derailed+ bzr checkout 'lp:~mahara-lang/mahara-manual/1.4_STABLE-export' launchpad21:58
thumperhuh21:58
* Derailed starts to wonder if there's even anything IN that branch21:59
thumperDerailed: the reason there are no revisions21:59
thumperis because the branch on LP is empty21:59
thumperit has no revisions to give you21:59
Derailedha!21:59
Derailedffs21:59
Derailedyou know what that means?22:00
thumperyes, it means the branch was initialized22:00
thumperbut never had any revisions pushed to it22:00
Derailedunless I'm wrong, then that means that the mahara 1.4 manual has been being translated with whatever was left over in that directory from the last time the script was run, every time22:00
Derailedwhoopsies22:00
thumperalso marked as abandoned22:00
Derailedthat'22:00
* Derailed is bemused22:01
mgrandisince people are here22:01
mgrandianyone know where the bzr windows release guide is? like how to compile it?22:01
mgrandimaybe Jelmer knows?22:01
Derailedthumper, in that case. do you believe the script is still doing the right thing for branches 1.5+?22:02
thumperDerailed: yes22:02
Derailedokay thanks.22:02
thumpermgrandi: no, but jam may well, he is UTC+4 I believe22:03
DerailedI gotta run away now. doing too many things at once, but thanks a lot for helping clear up this little mystery. now all I have to do is work out where http://manual.mahara.org/de/1.4/ is getting its german from if it isn't from the 1.4 branch :-)22:04
Derailedbut that can be a 'later' problem22:04
mgrandibah, keep missing people cause im not in europe =P22:04
fullermd_I prefer to think of it as "people keep missing me"   :p22:08
mgrandi=P22:08
mgrandimaybe ill just stop being lazy and search my email for it, i remember it being talked about22:09
mgrandidoesn't help that bazaar seems to have like..2.5 websites22:09

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