/srv/irclogs.ubuntu.com/2012/04/13/#bzr.txt

bobweaverHello there I am using bzr explorer and I was going to push code and I entered the wrong password (caps was on)  but I can not fix this error . I am sure that it is right under my nose but I can not seem to fix this. I tried to sign in from command line to launchpad and all is well there01:11
pooliehi there01:11
bobweaverHi poolie01:12
poolieyou can't fix the problem meaning that it's not giving you a second chance to enter the password?01:12
pooliethat's a bit icky01:12
poolieyou should be able to find and edit authentication.conf01:12
pooliei think it's stored there01:12
bobweaveryup ^^ no 2nd chance01:12
bobweaverohh cool thanks01:12
poolieyou could file a bug at pad.lv/fb/bzr-explorer01:12
bobweavercool will do01:12
bobweaverthanks poolie  !01:12
poolienp01:13
bobweavergezz I still can get it worked out under that file there is no passwd this is the error that I am getting bzr: ERROR: Could not acquire lock "(remote lock)":       I have tried to also break the lock but that also did not do anything02:02
pooliebobweaver, sometimes that means you don't have permission on the remote machine?02:08
bobweavermy ssh key is there02:11
bobweaverI am going to try and reboot02:15
bobweaverso a no go let me enter password and I def typed correct this time. must be lp ?02:21
bobweaverI can log into LP and all my old code is there and asys that it is owned by me02:22
kbulgrienso if I have a shared repo somewhere on a machine that isn't up all the time, does it make any sense to rsync it over to another machine, or is that messed up thinking?02:23
kbulgrienIE. what might be wierd about having multiple shared repos around.02:23
kbulgrienI imagine I should have set up the shared repo on a server... and I guess I can dismantle the other one... but then might there be some benefit to not dismantling the original.02:25
fullermdkbulgrien: I can't think of anything particular to shared repos that makes it any different from doing the same thing with any other set of branches.02:31
fullermdkbulgrien: It just sounds like a management question of making sure people are pushing things into the right place, not somewhere that'll get overwritten.02:31
kbulgriencan you sync the shared repos with bzr, or is just rsync the way to do that?02:34
fullermdThere's nothing in bzr at the moment that syncs repos.  There's some stuff like multi-pull in bzrtools that gives you some automation of iterating over the branches, but it's all branch-at-a-time.02:36
fullermdrsync is simpler.  Could potentially lose you stuff if the right (wrong) things blow up in the middle.02:36
kbulgrienI suppose --delete is  out of the question.  files never go away in the repo?02:38
kbulgrienonly add?02:38
kbulgrienAlong the lines that you could do two rsync one in each direction to make them the same.02:39
kbulgrienif you were to have had things put separately in each.02:39
fullermdFiles go away with fair regularity.02:39
kbulgrienok02:40
fullermdMultiple old files get repacked into one new file.  With bad timing, you could get the old files --delete'd before the new one gets synced, and then the squirrel takes the last bite through the network cable...02:40
kbulgrien:-)02:41
lifelessnom nom nom02:41
fullermdTo be sure, it adds that extra savor to the squirrel stew that evening, but you get yelled at a lot before then.02:41
kbulgrienits always faster doing it the second time eh? ;-)02:42
kbulgrienmaybe --delay-updates would foil the squirrel02:46
kbulgrienProbably mostly it would make sense for one copy just to be the big giant backup that nobody ever uses except the mirror or the owner in a recovery situation.02:51
fullermdYeah.  You definitely wouldn't want to try using rsync as a "keep both in sync while people are writing to both" thing.02:51
mgrandiseems like just a simple script to run 'bzr update' occasionally on whatever branch02:52
fullermdYou _could_ use bzr itself for that (I mean, that's just distributed development, right?) but I wouldn't try it automated.  So it sounds like just extra complexity in that case too.02:52
mgrandiseems like the best way02:52
mgrandicause i assume it knows how to deal with whats happening if its being updated at the same point you are trying to download it02:52
lifelessso the problem is02:53
mgrandiand i think that the bzr docs say thats the preferred method02:53
lifelessrsync isn't file-system order02:53
lifelessbzr's primitives ensure ~0 data loss window if they are replayed in filesystem order02:53
fullermdObviously, the solution is "zfs send"  8-}02:53
lifelessan external actor (like rsync) doing any of breadth-first, depth-first, etc traversals, with immediate or deferred deletes will create otherwise impossible situations in the receiving copy, if they happen concurrently with bzr acting on the repository02:54
lifelessthis is the same reason that rsyncing a postgresql DB has no guarantees in the absence of cooperation-with-postgresql02:55
lifelessand we haven't written a cooperate-with-rsync/cp/etc module for bzr yet02:55
lifeless(FWIW git and hg have the same issue, its not unique to bzr)02:55
mgrandiyeah.02:55
* kbulgrien looks for a repo dump02:55
mgrandithats wht the docs just suggest02:55
mgrandiusing bzr update/pull02:55
mgrandicause then that way it handles things correctly02:56
lifelessone of the things that makes doing a cooperative thing for bzr is that we assume that fsync doesn't work ;) [for good reason]02:56
kbulgrienok multi-pull seems agnostic to what branches exist in a particular folder, so it could just pull everything it finds without someone having to say what to pull.03:01
mgrandii believe it pulls all branches in a shared repo.03:01
fullermdNo, it doesn't care about repos one way or another.  It's roughly equivalent to `find . -type bzr-branch -print | xargs -n1 bzr pull`03:01
kbulgrienhmm and there is automirror03:03
fullermdSo, it'll pull a set of independent branches, the branches in one repo, the branches in a couple repos, some combination...  whatever it finds under the dir you point it at.03:03
kbulgrienits kind of a multipush I guess03:03
kbulgrienok, cool, learned something... I found the backup/restore stuff in the admin guide.03:04
kbulgrienI think I read that if, I am the only one using stuff, rsync is faster and ok.  Its when you can't guarantee the copied stuff is static that that becomes an issue.03:06
kbulgrienThat's what I gathered from the above comments too, so I think I get it.03:07
lifelessrsync *can* be faster; it won't right after compactions03:07
kbulgrienI would probably be better off sticking to bzr stuff though for sake of making myself more well-rounded and familiar with the tool set.03:08
kbulgriennot to mention forgetting the nitpick and messing myself over once I was so used to using the unsafe tool.03:09
kbulgrienI'll decline to admit how long I rsync backup'd postgres in the middle of the night ;-) before I wrote a dump script.03:10
kbulgrienall the time knowing it wasn't really safe.03:11
fullermdI do it every night.03:11
fullermdGranted, I mostly care about and rely on the gzip'd dump file also in the dir tree being synced, but..03:12
kbulgrienI actually have mine pulling over dumps and the receiving system drops and rebuilds everything based on what it just pulled over.03:14
kbulgrienAnyway... trying to get geared up to do bzr stuff in a way so I have a hot backup.03:15
grettkeHi folks. I would like to check out files both on windows and linux and have bzr ignore differing line endings. My rules has a name * eol = native but that isn't helping. What am I doin wrong here?05:43
pooliehm, that should do it05:43
mgrandidoes bzr try to convert line endings for you?05:43
mgrandithat seems weird o.o05:43
pooliewhat do you mean more specifically by 'not helping'?05:44
grettkepoolie: when I run a bzr st, all files are reported as changed, but when I do a qdiff and "Ignore whitespace differences" there are no changes05:44
grettkemgrandi: I don't know but if it were then that would be a whitespace change in every file wouldn't it...05:45
mgrandii dunno, i thought bzr would just bersion the file and not try and modify line endings05:46
fullermdIf you hit 'commit', does it actually try to commit those changes, or does it say there's nothing to do?05:49
grettkeI didn't try committing it. Odd thing is that when I do a revert... it doesn't revert it still reports modifications.05:50
spivmgrandi: only if you configure it to do so05:57
mgrandiah05:58
mgzmorning08:05
mgrandihey08:06
mgrandiif you are up that means i'm up way too late. hmm08:06
fullermdI think it just means he's up way too early.08:07
fullermdI mean, the sun probably isn't even down yet where he is.08:07
mgrandiso, i did a revert the other day and i cant revert the tree cause its says TreeTransform is malformed08:07
mgrandiwat do08:07
mgrandior rather should i just report a bug / upload the branch08:13
mgzso, the problem with TreeTransform errors, is without a clear way to reproduce there's not much to go on08:16
mgzideally you should work out what change is problematic, and reproduce it in a fresh branch, giving steps in bug report08:16
mgzit's generally easy enough to work around not being able to revert something, just branch to a new location from the rev that you're trying to revert from08:17
mgza bug report and packed up branch wouldn't hurt though, if you confirm that someone downloading and trying the steps you give will get the same error08:18
mgrandiyeah, i zipped up the branch08:19
mgrandiand just report a bug then?08:23
mgzsure, but trying to reproduce from scratch woul still be very useful.08:24
mgrandiwell i just tried it (with the branch that i zipped) and if you do bzr revert on it then it still crashes08:24
mgrandihow do you mean do it from scratch, as in make a new branch and try do the steps to break it?08:25
mgzright, and you can search the existing bugs to see if one of those already covers your case08:28
mgrandik08:29
mgzeg bug 632704 and bug 66012508:30
ubot5Launchpad bug 632704 in Bazaar "Can't merge a directory deletion in a wt with a pending subdirectory deletion" [High,Confirmed] https://launchpad.net/bugs/63270408:30
ubot5Launchpad bug 660125 in Bazaar "shelve crashes with "Tree transform is malformed" when renamed file already exists" [Medium,Confirmed] https://launchpad.net/bugs/66012508:30
mgzworking out what the particular case that's making it fail for you is the most relevent thing08:30
mgrandii know i was doing some renaming stuff08:32
mgrandibut its late and i'll do it this weekend, and if jelmer is here i'm also having problems with bzr-git >.>08:33
fullermdWhat's 'stat' look like?08:34
mgrandibzr status on the branch?08:34
fullermdYah.  Well, on the WT, but 6.5 of one...08:34
mgrandiits ugly D: http://bpaste.net/show/26999/08:36
mgrandinot sure what the * means in 'modified'08:37
fullermd+/-x08:37
fullermdHm.  How about this part.08:38
mgrandiah, yeah, i never modified the +x by myself08:38
fullermdremoved: php_frontend/src/codeigniter/system/libraries/Twig/lib/08:38
fullermdunknown:   php_frontend/src/codeigniter/system/libraries/Twig/lib/08:38
fullermdWhat if you rm (or move aside) that unknown dir?08:38
mgzthat looks like a winner.08:39
mgrandiyeah08:39
mgrandithat fixed it.08:39
mgrandiso now the question is how it got into that weird state o.o08:40
fullermdA little fiddling with trivial similar setups doesn't show up any problems, so it's liable to be a little twisted.08:44
mgrandii have the log so ill be able to recreate exactly what i did08:47
jelmermgrandi: hey08:51
mgrandihey08:51
mgrandiso, i have a bzr branch that i was using to do stuff with github08:52
mgrandiand one branch is just a straight up copy of someones github repo, i haven't done anything to it08:52
mgrandii tried updating it and bzr-git says the branches have diverged, and to do 'bzr missing' to see why, but then bzr missing says 'git smart protocol doesn't support that'08:52
jelmermgrandi: yeah, the git protocol doesn't support remote graph inspecition08:54
mgrandithen i just tried branching it again in a brand new branch, and i get: bzr: ERROR: Could not determine revno for {git-v1:78d796d1f018bb66d986e73bc4641b6c0b372a55} because its ancestry shows a ghost at {git-v1:78d796d1f018bb66d986e73bc4641b6c0b372a55}08:54
jelmerwhat version of bzr-git?08:55
mgrandihow do you get versions of the plugins?08:55
jelmermgrandi: 'bzr plugins'08:56
mgrandigit 0.6.8dev08:56
jelmerhmmok, that's fairly recent08:56
jelmerI'm not sure what's going on there, without looking into it in more detail08:56
mgrandiit seems that its something to do with the repo, since making a folder outside of the repo i have works fine08:58
jelmermgrandi: aha08:58
jelmeris the repo old, does it perhaps have revisions that might have been fetched with old (broken?) versions of bzr-git?08:58
mgrandithe repo isnt that old, and i think ive been using this version of bzr git for a while08:59
mgrandithe last commit i have in that branch is  Fri 2012-02-24 21:16:15 -020009:01
mgrandior that came from the guy whose github i'm branching09:01
fullermdWell, I give up.  I've tried a handful of likely-looking slices of those changes, and I don't get any blowups with 2.5 or .dev.09:03
mgrandifullermd: i finally scrolled through my log so i have the exact commands i did09:04
mgrandiso i'll try and recreate it09:04
fullermdWhat version are you running?09:05
mgrandi2.5.009:05
fullermdOh well.09:06
mgzthe rename of files from a subdir of that clashing directory looks interesting for the revert09:07
jelmermgrandi: so, I'm out of ideas too without looking into the issue more closely09:07
mgrandido you want the entire shared repo / branch?09:07
fullermdhttp://paste.ubuntu.com/927613/   is the script I worked up for testing.09:08
fullermdBut it works as expected for me, so it's something more than just moving files out of the subdir but leaving it sitting there.09:08
fullermdAnd more than having other stuff beside it also being moved around.09:08
mgzyou're a twinkling object in the night sky, fullermd09:09
mgrandiim uploading the repo/branch/ and bzr.log output09:10
fullermdYeah, I blow a lot of hot gas around sometimes.09:10
mgrandiits ugly cause im new to this framework and i couldn't figure out where to put this one library so thats why i have so many 'bzr move' and whatnot, but here it is:  www.kramidnarg.com/stuff/tree%20transform%20bug.zip09:11
fullermdDoes that include the branch in the state where the revert blows up?09:42
mgrandiyeah09:42
fullermdWorks for me.09:42
mgrandiin 'tmprepo.zip'09:42
mgrandireally? doing bzr revert inside tmprepo/enquest_work works for you?09:42
fullermdYep.  With .dev and 2.5.0.09:43
mgrandisoooo why does mine not work then09:43
fullermdNow, here's one difference: You're apparently on OS X.09:44
mgrandiyeah09:45
mgzmaybe a platform dif... what fullermd said09:45
fullermdMaybe the fs is doing something with the .DS_STORE's?09:45
mgrandibzr 2.5.0 on python 2.6.7 (Darwin-11.3.0-x86_64-i386-64bit)09:45
mgrandidoes bzr even use .ds_store? how would that effect it09:46
mgrandiand i think i have those ignored anyway09:46
fullermdOS X does do some special stuff with unicode normalization, but it looks like all the filenames are 7-bit ASCII, so it's probably not that.09:46
fullermdNo, but maybe it hits some conflict with the forks when moving stuff around, since the OS treats them special?09:46
mgzmy first guess was directory rename differences, but that was assuming windows rather than osx09:46
* fullermd is guessing pretty randomly...09:46
mgrandimac is not case sensitive...which is weird09:47
mgrandimaybe that?09:47
mgzallowing renaming over an existing (empty) dir is a posix thing, but osx should allow it too09:47
fullermdMmm.  I thought it was.09:47
mgzcase things is also a possibility.09:47
mgrandi /users/markgrandi is the same as /Users/markgrandi, i dont know if python forces a case sensitivity09:48
mgrandiHFS+ supprts case sensitivity but mac os x doesn't do it for some reason09:48
fullermdOh, right, it's case-insensitive-but-case-preserving.09:48
fullermdThat's the most likely place, yah.  Nothing jumps out at me immediately though.09:49
mgrandiare you on windows or linux fullermd09:49
fullermdNeither, naturally.  I have [daemonic] standards  ;p09:50
mgrandiheh09:50
mgrandii'll try on my windows/linux machines later09:50
mgrandiwhen its not 3 am09:50
fullermdGive http://paste.ubuntu.com/927663/ a try locally.09:52
fullermd(prob. have to fix the bzr path or something anyway)09:52
fullermd's a few tweaks past the one I pasted earlier.  Still works for me, but since yours does too, maybe it'll blow up for you.09:52
fullermdGet you a step closer to an isolated testcase anyway.09:52
mgrandidear ubuntu: why do i have to log in to download a paste. signed, me09:54
fullermdAnyway.  's way over my time quota; I've gotta get back to pretending to work in preparation for tomorrow's (later today's) pointless conference call.09:54
mgrandiok09:55
mgrandii'll let you know what happens09:55
mgrandigoing to bed, i'll be on later to discuss these problems more, ttyl~10:33
ccxCZhow can I disable the spinner/speed on actions on ssh repositories?22:19
ccxCZalso can I make bzr use /bin/ssh instead of paramiko, so it reuses established master session?22:20
ccxCZgot it, BZR_SSH=openssh BZR_PROGRESS_BAR=none22:30
=== yofel_ is now known as yofel

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