/srv/irclogs.ubuntu.com/2012/10/20/#bzr.txt

mgrandi_and then it should be just00:01
mgrandi_cp lib/filesystemwatcher lib/__filesystemwatcher.py00:02
mgrandi_patch -p0 workaroundwahtever.patch00:02
danielbrauerGreat, it appears to work now.00:02
danielbrauerOh I see. I applied it manually. But it still works. (:00:02
mgrandi_yeah00:02
mgrandi_this seems to be a bug with QT00:02
danielbrauerThat is unfortunate, since it already appears not to work on Windows.00:03
mgrandi_well00:04
mgrandi_yeah, i was commented out because of the same issue i believe00:04
mgrandi_or the fact that files can lock themselves and that was causing problems00:04
danielbrauerYeah, I think it was permissions on Windows, and "too many files" on Mac OS.00:04
danielbrauerAnyway, I've got to run. Thanks very much for pointing me to the right directory!00:05
Jordan_UI'm trying to confirm that a directory with source code that I'm about to build and put into production is in fact the latest version, (I'm pretty sure but I want to be certain) by running "bzr status". However, when I do this I get this long error message: http://paste.ubuntu.com/1290774/00:23
fullermdCorrupted dirstate maybe.00:24
Jordan_UI'm using ubuntu 12.04, with bzr 2.5.1 and the directory is being accessed through Samba from a Windows file server, which I connected to using PCManFM, and actually navigated to in the terminal via ~/.gvfs .00:25
fullermdBut you only use it on the 3rd and 5th days before a new moon, when Jupiter is in Aquarius, right?00:25
Jordan_Ufullermd: Of course.00:26
fullermdPhew.00:26
Jordan_UDodged that bullet.00:26
fullermdWell, that probably gives ample opportunity for dirstate corruption.  I started whimpering in the corner just reading it.00:26
fullermdThere's a command that blats out a clean one.  I'll think of the name 30 seconds after someone else says it...00:27
Jordan_Ufullermd: Should I be generally concerned about this or is it a simple and isolated problem? This repository is very important to me.00:27
fullermdWell, it's concerning any time files get corrupted.  How would have some impact on where the concern lies.00:28
fullermdSystem crashes or the like (with a networked FS, a network dropout would be like) could cause it, and that's only concerning when you crash again.00:29
fullermdNetwork filesystems tend to introduce a lot more complication points around things like locking, which dirstate relies on.00:29
fullermdrepair-workingtree, that's the command.00:29
fullermdThat'll dump out a clean dirstate file, which means any explicit changes you've made (like added/deleted/moved files) bzr won't know about.00:31
Jordan_Ufullermd: The output of "bzr repair-workingtree" http://paste.ubuntu.com/1290789/ (with the current directory being a temporary copy of the respository in /tmp/).00:32
fullermdMmm.  Probably really messed up then.00:33
Jordan_UThe last thing I did was make a commit listing the revision as final and ready to ship, and that was about a year ago.00:33
fullermdZero-length, maybe?00:33
fullermdWhat's .bzr/checkout/dirstate look like?00:34
fullermdAnyway, repair-workingtree takes a --revision, so if you're pretty sure it was at the head of the branch, doing a '-r-1' will be fine.00:34
Jordan_Ufullermd: http://paste.ubuntu.com/1290793/00:35
fullermdAnd that's the end of it, or did paste block off after the first null?00:36
fullermdIt would be interesting and suggestive (of what, I don't know, but suggestive of something) if it did in fact get truncated right to the first nul.00:37
Jordan_Ufullermd: That's certainly not all of it, I didn't expect the pastebinit command to do that.00:37
fullermdRight after that nul, it should have the revid.  You can use that for `repair-workingtree -r` to be sure.00:38
Jordan_Ufullermd: So I should run "bzr repair-workingtree -r jordan.uggla@gmail.com-20110513002446-lp90c9cig70b9ty8" ?00:39
* fullermd nods.00:39
mgrandi_instead of using a networked filesystem you should probably be pushing/pulling from a repo on the server, i would think bzr protects against corruption in that case00:39
mgrandi_using sftp:// or bzr+ssh://00:40
Jordan_Ufullermd: http://paste.ubuntu.com/1290799/00:40
mgrandi_that does not look good, trying to read data that it is expecting but its just not there00:41
mgrandi_its probably borked =/00:42
fullermdYeah, but it looks like it's trying to read data from the dirstate.  It shouldn't be doing that when the point of the command is to rebuild the dirstate   :p00:42
fullermdOK, cheat.  do a 'bzr branch' of it to a temp location, then copy the .bzr/checkout/dirstate file over.  There's always a bigger hammer   :p00:42
Jordan_Umgrandi_: Would the full dirstate file be useful to you? (It will take a little bit of work to copy it to my server to host it, but I can do so if it might help).00:42
mgrandi_well it does call 'call dirblocks if needed', so maybe it needs some tof it in order to actually generate a new one?00:43
mgrandi_or is that bug material00:43
fullermdI'm pretty sure that's bug material, since the point of the command is to recover from a horked dirstate.00:45
Jordan_Ufullermd: OK, branching has gotten me a (seemingly) working repository. I'm not going to touch the main one today as I have to think about it more for safety.00:45
mgrandi_yeah. the error itself isn't anything good, its just trying to read stuff that its not expecting to be gone00:46
mgrandi_i'll file it later, and include le logs00:46
Jordan_Umgrandi_: You'll file it later?00:46
mgrandi_im  technically "working" at the moment so yeah =P00:46
mgrandi_i'll do it when i get a free moment00:47
Jordan_Umgrandi_: Thanks.00:47
mgrandi_just about the fact that repair-workingtree is dying00:47
mgrandi_i dunno if that will help you00:47
Jordan_Umgrandi_: Yeah, but I appreciate you taking the time to file a bug report anyway.00:47
mgrandi_an interesting test anyway00:48
mgrandi_just put a repo on samba and yank out the cable during stuff00:48
mgrandi_see what happens00:48
mgrandi_but yes, in the future, dont access this via samba =P00:49
mgrandi_have a branch on your local disk and then push to  server using sftp:// or something that way if one gets borked you have the other00:49
Jordan_UI think that tomorrow I will take this branch that I just created with bzr branch, and copy the directory to the server using cp, replacing the current corrupt branch. This copy on the server was never meant to be pushed or pulled from (and never was that I can remember), at this point it's mostly documentation and verification that we have the latest code (by checking "bzr log" and seeing the "shipped" tag on the last revision), and ...00:58
Jordan_U... maybe for someone in the future to branch from though that probably won't happen as all our future projects use Atmel rather than ST chips.00:58
Jordan_UAnyone see any problem with that solution (copying the branched repository to the server using cp)?00:59
fullermdEh, you could just push.01:00
Jordan_Ufullermd: Doesn't that introduce possible locking problems (I don't have access to the server to setup sftp for a proper push).01:05
mgrandi_it could01:07
mgrandi_if you keep using this over samba though its going to be the same problem,=/01:08
Jordan_Umgrandi_: Does "bzr log" constitute "using"?01:08
mgrandi_that doesn't change anything about the repo so you are fine there01:08
fullermdWell, purely branch-related stuff is surely safer than WT stuff.  But yeah, if a smb filesystem is the only access you have to the server...   urgh.01:09
Jordan_ULike I said, at this point the branch and history is only being used as verification and documentation.01:09
mgrandi_bzr log shouldn't be changing anything about the branch so that should be fine01:10
mgrandi_but don't push to it =P01:10
mgrandi_kittens cry01:10
=== yofel_ is now known as yofel
User_007Hello, can you help me? the command "bzr bd -S" is returning a signfile error: secret key not available16:28
User_007but i do have the key16:28
User_007how to point the key to bzr?16:30
User_007the error is about malformed e-mail16:36
User_007it is using the e-mail of my user (user@computer) instead my real mail (user@mail.com)16:36
User_007how does bazar know witch key do i want to use?16:40
User_007ping?16:44
User_007i solved the last problem, but now i get this error: Error: uploading files for distribution UNRELEASED to ppa not allowed17:00
User_007i am on Quantal17:00
jelmeris18:44
mark06why bash recursively runs /etc/profile or  ~/.profile if I call a (shebanged) bash script from within these files?21:49
bob2can't parse the question but the bash manpage explains which things are sourced when22:03
mark06for example, in /etc/profile you have "do-something.sh" at the end22:03
mark06in my case, do-something.sh starts executing /etc/profile again, which executes do-something.sh at the end, which... so it becomes endlessly recursive , with an infinitely growing list of bash processes raising in the OS22:06
bob2ok as above22:08
mark06ah, wrong channel. SORRY!22:09

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