/srv/irclogs.ubuntu.com/2008/11/23/#bzr.txt

Kobazhow would i perminantly remove a file/dir00:14
Kobazand not just mark it deleted00:14
Byrnisonbzr rm --force00:15
Kobazk00:17
Kobazand then... anyone know any good email notification hooks00:17
ByrnisonI think. I just looked at the output of 'bzr rm --help' real quick.00:17
Kobazi've been using svnnotify for subversion00:18
KobazByrnison: i dunno about --force... i think --force will delete local files that aren't commited00:18
Kobazkinda like svn delete --force00:18
ByrnisonI haven't used Subversion for a while...00:19
Kobazi've read in some comparisons that bzr has a perm delete00:19
Kobazin other vcs's it's called obliterate00:19
ByrnisonI'm testing --force00:19
iahello, everybody. i have a question. if i want to create "trunk/branches"-model via bzr, i should run bzr init-repo my-repo, then create in my-repo directory trunk and branches directories manually and then run bzr add trunk branches, right?00:19
ByrnisonYep.00:19
ByrnisonI think that is how, yes.00:20
Kobazk00:20
KobazByrnison: do you use any email hooks?00:20
Byrnisonia: But... add --no-trees to the command line.00:20
ByrnisonNo. I don't use Bazaar for anything complicated, or often at all, really.00:20
hiredmania: you could create a repo, and, infact, bzr branch it, to create branches00:21
ByrnisonI don't even really know how to use hooks.00:21
hiredmanjust to toss that idea out there00:21
iawell, then another question. from man page for bzr init-repo --no-trees and init repo/trunk said, that "create a shared repos holding _just_ branches". _just_ means that such repo couldn't be also working tree, right?00:24
ByrnisonThat is the purpose of --no-trees.00:25
ByrnisonYou could leave the option off if you wanted to use it like that.00:25
ByrnisonBut --no-trees would be useful if you were sharing the repo between other people, or if it was on a shared server.00:25
iaByrnison, hiredman: thanks :-)00:29
Kobazbeuno: poke02:49
=== spiv_ is now known as spiv
=== mark1 is now known as markh
=== doko_ is now known as doko
=== jszakmeister is now known as jszakmeister|awa
mamatathi, i suddenly have this weird error when i run bzr status: http://pastebin.com/d1a77bd9813:52
mamatatany ideas what's going on?13:52
Peng_I wonder how you have a sys.version_info that isn't valid?13:56
Peng_Hmm, bzr 1.9 handles invalid plugin version tuples better. I wonder if that applies to sys.version_info too?13:59
Peng_No, it doesn't.14:01
mamatatbzr version bugs too14:02
Peng_mamatat: Out of curiosity, run this: python -c "import sys; print sys.version_info"14:02
mamatat(2, 5, 2, 'alpha', 0)14:03
mamatat4th can't be 0 according to bzr code14:05
mamatat    elif __release_type in ('alpha', 'beta') and __sub != 0:14:05
mamatat        __sub_string = __release_type[0] + str(__sub)14:05
Peng_Yeah, you're right. (2, 5, 2, 'alpha', 1) is handled fine.14:05
mamatatargh14:06
Peng_Ehh, according to the docstring, that's intentional. "alpha 0" releases aren't "reasonable".14:08
mamatatyeah... figured out... it's explicitly forbiden by code... kinda makes sense but sucks that it happens now like that... it's not my server :(14:11
mamatatswitched back to good'ol 2.4 but still get the first half of the errors (until 32)14:16
Peng_Yeah. I concentrated on the silly version formatting bug instead of the important part. Sorry. :P14:17
mamatathehe...14:17
Peng_ISTM your working tree's state file got corrupted, but I'm not a developer. It could be some other sort of issue.14:18
Peng_You should wait for someone who knows that code to answer.14:18
mamatathmm... thx for the help14:20
mamatati hope things don't get corrupted too often too badly :S14:21
Peng_Like I said, I'm not sure. It could be a bug in the parser.14:23
Peng_mamatat: Um..mind if I send a patch to change the _format_version_tuple thing?14:28
Peng_(a (trivial) patch..)14:29
mamatatwell it seems like a good thing not to run alpha014:30
Peng_Heh.14:31
Peng_2.5 is a stable branch; I doubt there would be issues.14:31
mamatati'd rather file a ticket to hosting...14:33
mamatatneed to figure out other bug... will try creating other working tree... need to remember how :S14:33
Peng_You could rename .bzr/checkout to something else and run "bzr co", but it might clobber changes you have in the working tree.14:37
Peng_You could also just make another branch.14:37
mamatatpff, now i get "bzr: ERROR: [Errno 5] Input/output error" on bzr status... not my day i guess14:43
mamatatPeng_: you know where this error might come from?14:49
Peng_Nope.14:49
mamatatnot a very debuggeur friendly error... :(14:52
LarstiQthat sounds like a fs problem14:55
LarstiQmamatat: see ~/.bzr.log or try with -Derror14:55
mamatatLarstiQ: http://pastebin.com/d18f1414f15:05
mamatat'bzr status' seems to be not working well at all here and corrupted the branch... all other commands seem to work fine15:13
Peng_mamatat: Are you using a strange OS or file system? NFS?15:23
mamatatnfs i think... it's a hosting server not mine15:28
mamatatsupport says things work fine as long as bzr status is not used...15:29
Peng_Oh. Well, that shouldn't cause corruption, but NFS does have issues with locking.15:30
Peng_Hmm, isn't dirstate like the one case where bzr relies on OS locks, the very things that don't always work in NFS?15:30
* Peng_ shrugs.15:30
mamatati guess... apparently bugs have been filed to bzr about it and have been open for quite some time...15:31
mamatathow do you tell bzr to finally ignore a file that has been version controlled in the past15:34
Peng_mamatat: Stop versioning the file. ("bzr rm" or "bzr rm --keep" if you don't want to delete it.)15:50
mamatatthx15:50
mamatathadn't thought of a 'rm --keep' command15:52
BUGabundohi16:18
BUGabundohow do I restore just a file from an old revision»16:18
BUGabundo?16:18
james_w"bzr revert -r rev filename"16:20
BUGabundothanks james16:21
BUGabundothanks james_w16:21
BUGabundothanks you so much16:22
BUGabundoyou are a life saver16:22
=== Hydrogen is now known as HydroGone
mamatathi, i'm thinking of using bzr to merge and sync online and offline db. i would need to have a bot deal with running bzr for the online server. does anyone have experience or comments about something like that?17:16
Peakerwhy does bzr install a system tray icon in Ubuntu?17:51
Peakerit has nothing interesting, just a whoami configuration dialog...17:51
=== RAOF_ is now known as RAOF
mamatatwhat's the easiest way to check from a script that everything has been commited (knowing that status crashes my branch)?19:46
Peakermamatat: status crashes??19:47
mamatatyep :(19:47
mamatatsome bug with nfs19:48
PeakerNFS sucks :-(19:48
PeakerMaybe sshfs is better19:48
mamatatwell not my choice...19:48
Peakermamatat: surely you can use an alternative mount?19:48
mamatatnot sure... it's shared hosting... and not a big deal for status... but i do need to check things are commited19:49
Peakermamatat: what kind of crash do you get with status?19:52
mamatatbranch becomes broken19:52
Peng_Peaker: Earlier he put a traceback up at http://pastebin.com/d1a77bd9819:53
Peng_(he? she? it? anyway...)19:53
Peakerarrg, someone didn't wrap a %x  with %(x,) !!19:55
Peakerthough that's the least of the problems19:55
Peaker(still worth a fix in bzrlib/__init__.py, probably)19:56
Peng_Oh, you're right. I didn't notice that one.19:57
Peng_...It's been fixed.19:57
Peakermamatat: probably best to solve the problem rather than the symptom19:58
mamatatwhat's the pb?19:59
thumpermamatat: bzr revno <remote branch>19:59
thumpermamatat: isn't exact, but useful and fast20:00
thumpermamatat: well, by exact, it doesn't tell you anything except the revno20:00
mamatatlol, ok thx20:01
Peakermamatat: do you know Python?20:01
mamatatPeaker: hmm, depends...20:01
mamatatPeaker: won't get into bzr coding but am using it with django...20:02
Peakermamatat: I'd debug that traceback20:02
Peakermamatat: with pdb.pm() or such20:02
Peakerxpdb, maybe (shameless plug)20:03
mamatati hear bugs have been filed about it...20:03
mamatatlong time ago apparently20:04
mamatathttps://bugs.launchpad.net/bzr/+bug/12210620:04
ubottuUbuntu bug 122106 in bzr "UserWarning: lock on ... .bzr/checkout/dirstate ... not released" [Medium,Confirmed]20:04
mamatathttps://bugs.launchpad.net/bzr/+bug/10860520:04
ubottuUbuntu bug 108605 in bzr "dirstate locks can fail on nfs" [Medium,Confirmed]20:04
Peakermamatat: hmm, how do you reproduce the bug?20:06
mamatati've tried to avoid doing that until now... :S might be everytime i run status but not sure20:08
mamataton my machine, status works fine... bug is only on server20:09
=== snova is now known as Byrnison
=== sdboyer is now known as sdboyer|vurk
mwhudson_is there a supported way to uninstall a hook?22:04
=== mwhudson_ is now known as mwhudson
spivmwhudson: Hmm22:30
mwhudsonit sure doesn't look like it22:30
spivISTR raising this on the list, and it being decided as a YAGNI so far...22:31
mwhudsonwell i NI22:32
spiv:)22:32
spivIt doesn't seem hard to implement.  Basically it'd just do the equivalent of "Thing.hooks['pre_foo'].remove(callable)", plus removing the associated entry in _callable_names.22:35
mwhudsonright, currently my code does this "Branch.hooks['transform_fallback_location'] = []"22:35
lukshuh, "NoSuchFile: No such file: None"22:38
spivmwhudson: this is outside a test, I assume?22:40
mwhudsonspiv: yes22:40
spivluks: over hpss?  I think I may have fixed that bug22:40
spivmwhudson: interesting :)22:40
mwhudsonspiv: i want to do22:41
mwhudsoninstall_hook()22:41
mwhudsontry:22:41
mwhudson   stuff22:41
mwhudsonfinally:22:41
mwhudson   uninstall_hook()22:41
luksspiv: yes, I'll try to pull from bzr.dev22:41
spivThat seems a bit weird, tbh.22:41
mwhudson(i only need to do this to make tests pass, mind)22:41
spivAlthough having an unconditionally installed hook function that then looks at some (effectively) global state to decide what to do (if anything) is probably just as odd.22:42
mwhudsonspiv: right22:42
mwhudsonit's a bit of an odd hook, perhaps22:43
mwhudsonthe problem i have is that i want to use this hook to detect stacking loops22:43
luksspiv: thanks, current bzr.dev works22:43
spivluks: great22:43
spivluks: it was a bug introduced in 1.9 (#299254).22:44
mwhudsonso having it installed for a long time tends to result in spurious loop errors22:44
spivWell, I have no objection to adding an uninstall_name_hook or similar, and I see from the mail archives that jam agrees.22:46
spiv(The thread had the subject "[MERGE] Extend -Dhpss to emit a count of HPSS calls to stderr" if you care, although not very much was said on that topic)22:47
mwhudsonspiv: is there a bug or patch or something22:47
mwhudson?22:47
spivNone that I know of.22:47
spivFeel free to submit a bug or patch or both :)22:48
spivor something ;)22:48
mwhudsondoes a post it stuck to my monitor count?22:48
spivIf it results in a bug or patch, sure :22:49
spiv:)22:49
=== Guest83236 is now known as jelmer
=== jelmer is now known as Guest39692
=== Guest39692 is now known as jelmer

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