/srv/irclogs.ubuntu.com/2011/06/16/#bzr.txt

pooliehi spiv00:16
poolieand riddell00:17
dashokay so i'm still getting 'checksum mismatch' when doing a new branch from svn  into a standalone branch00:59
=== wallyworld is now known as 92AADA0EO
pooliei think its clashing with your bzr-svn cache01:10
pooliewhich might be in ~/.bazaar/01:10
poolieyou could try savinga copy and moving it away01:10
=== medberry is now known as med_out
ptresselI'm trying to extract a working tree from a branch for which I have only the .bzr directory. (Background is that I did a bzr branch, but that failed just at the end when it could not create a symlink on windows. Looks like the repo is intact though.) I cd'd to the branch directory where .bzr was, and did "bzr checkout". That got Error 183, file exists, on the .bzr directory itself.02:04
pooliehm02:04
ptresselI'd like to redo the checkout under cygwin, which can create symlinks, but the above error is stopping that.02:05
poolietry 'bzr checkout broken other'  - ie into a different directory02:05
ptresselIs there something wrong with my syntax for "bzr checkout"?02:05
ptresselAh, ok.02:05
ptresselAnd then move the files back in?02:05
ptresselAlmost worked...  That didn't get the "file exists" error, but...it still couldn't make the symlink.02:07
ptresselI thought that was the usual workaround for symlinks on Windows.02:08
poolieoh, it failed under cygwin?02:08
ptresselRight02:08
poolie:/02:08
ptresselOdd.02:08
ptresselI've asked the person who put the symlink in to take it back out, but it might be a while...02:09
ptressel:(02:09
ptresselcygwin can create symlinks -- just checked.02:09
ptresselHmmm, I wonder if the fix that added the "unable to create symlink" error message is checking for attempted symlink creation *before* trying it...02:10
ptresselThe workaround of using cygwin was mentioned before that fix.  https://bugs.launchpad.net/bzr/+bug/8168902:11
ubot5Ubuntu bug 81689 in Bazaar "Branches with symlinks can't be checked out on Windows" [High,Confirmed]02:11
CarlFKafter bzr branch foo, how do I back up a rev? (need to figure out which of the last 5 - 10 commits broke it)03:07
ptresselCarlFK, if this is a throwaway branch and you've got the real code saved elsewhere, you can back out each change in turn by doing "bzr uncommit" then "bzr revert".03:11
CarlFKptressel: it is, thanksl03:12
ptresselWelcome!03:12
spivCarlFK: you can use "bzr revert -r REV" to revert just the files to the state at a particular rev03:12
spivCarlFK: and then plain "bzr revert" to restore the files back to the current revision03:12
ptresselSo that doesn't affect anything but the working tree?03:13
ptresselSafer... ;-)03:14
spivRight.03:14
ptresselSo one could go backwards down the revisions with "bzr revert -r -1", "bzr revert -r -2", etc.03:16
=== tchan1 is now known as tchan
lifeless.05:37
elmodoes anyone have an example of a plugin that extends or overrides a builtin command?05:38
elmothe docs for 'extending an existing command' are 'TO BE DOCUMENTED.'05:39
lifelessloom overrides status05:40
elmolifeless: ta05:41
lifelessloom is also one of the older plugins; its stule may be a little... idiosyncratic05:41
elmois there a concept of repository specific plugins?05:44
elmoi.e. any user of the (shared) repository runs the plugins05:44
elmoI can see why there wouldn't be ... ;-)05:44
lifelessno, security considerations05:44
lifelessthere is the ability for a plugin to do nothing on repositories it doesn't know about05:44
elmobah humbug05:44
lifelesse.g. in the repo config you provide the config for the plugin05:44
lifelessand you install the plugin globally for all users.05:44
elmooh, that'd work05:45
lifelessthe plugin then checks for a config and if none found on a repo does nothing.05:45
elmolifeless: can I get bzr to tell me the default plugin paths or shall I UTSL?05:46
lifelessgmm, I thought it was in bzr --version05:47
lifelessbut no05:47
lifelessah05:47
lifelesscheck in ~/.bzr.log05:48
elmolifeless: aha, ta05:48
lifelessbasically your plugin becomes a submodule of bzr05:49
lifelesssee the setup.py for loom etc05:49
=== ptressel is now known as ptressel|bbl
marvin2Hi, could someone please explain how "bzr split" works?07:04
marvin2I need to create a branch out of a directory in an existing tree.07:04
marvin2Whatever changes I commit to files inside that directory should be stored only in that directory's own repo - is this how it works?07:05
jammorning all08:50
MerwinHum, is a way to do a "lightweight" checkout from a lp repo? Downloadin lp:openerp-addons is around 500Mo wheras I ust want to "get the latest version", not especially all the commits...08:50
spivMerwin: "bzr branch --stacked", except there's bugs that make that much slower (and transfer more bytes) than it needs toi08:58
* spiv goes to pick up his kid08:58
Riddellhola09:10
gourjelmer: hello, any hint about this one: http://pastebin.com/4Wp3nr3H09:24
vilaEnglish experts, what means 'not wild' in 'Not wild this is added for all tests regardless of the flags.' ?09:33
jelmervila: I think it's short for "I'm not wild about X" (I'm not enthusiastic about it)09:34
vilajelmer: makes sense, thanks09:35
jelmergour: It means bzr-git found an error trying to create an object from scratch again - the resulting object didn't match the sha it expected09:35
jelmergour: bzr-git is now a fair bit more pedantic about it, older versions got it wrong in some situations09:36
=== ptressel|bbl is now known as ptressel
spivvila: FWIW, I agree with jelmer about "not wild"10:12
vilaspiv: great, yeah, made sense, never encountered that usage before and I was wondering if it was a typo...10:13
vilaI thank mgz (and you guys ;) for teaching me more sophisticated English ;)10:14
fullermdNah, if it were a typo, you'd have intuitively understood it   ;p10:18
Riddellhow many hours does it take to do a branch of emacs?10:47
jelmerRiddell, jam probably has some experience with that..10:54
jelmerit used to take quite a while, I'm not sure if that's changed with 2.410:54
gourjelmer: so, there is no workaround to update the repo?11:03
jelmergour: no, you'll have to create a fresh clone11:07
vilafullermd: hehe11:12
gourjelmer: ok. i did it11:13
jamRiddell: from gnu or from lp?11:18
jamAIUI it is quite a bit faster from lp11:18
noogahi11:45
jelmerhi nooga11:45
lifelessvila: subunit-sum could go in subunit ;)11:45
noogai've created new project on my laptop and i'd like my friend to co-work with me via local network11:45
noogahow do i allow him to access my branch and make changes?11:46
jelmernooga: if you give him ssh access, he can use bzr to make a checkout if you both have write access to the bzr branch11:47
vilalifeless: thanks, that's the middle-term plan, I don't want to wait for it to be released to be able to use it (and there may be some tweaks required to land in subunit which may break the way I intend to use it)11:47
noogaso i need to make a user account for him in my system and let him log in via ssh11:48
jelmernooga: just sftp access or the ability to run the bzr command should be sufficient11:49
vilalifeless: one concern raised by jam (for example) is to use a single 'counter' dict detail (including all counters) in the subunit stream instead of one detail per counter, what's your feedback on that ?11:49
jelmernooga: After that, he should be able to run something like "bzr co sftp://yourlaptop/path/to/bzr/dir" or "bzr co bzr+ssh://yourlaptop/path/to/bzr/dir"11:50
vilajam: cicp-add approved, can you land it ? I'd like to include it in 2.4b414:25
vilajam: oh, forgot to mention in th review: line too long :-}14:25
jamvila: copied from a line that was too long, but I can try to fix14:26
vilahehe14:26
=== med_out is now known as medberry
jamvila: re-wrapped, and sent to pqm, you just have to wait for the backlog (and hope there aren't NEWS conflicts)14:47
jamin the test suite now, I guess14:47
vilajam: yeah, so no news conflicts14:47
psynaptichey15:03
psynapticI have done it again15:03
psynapticmerged trunk into my working copy with changes15:04
psynapticis there an easy way to fix it or do I have to manually edit each file?15:04
psynapticI know I could shelve each hunk, but that assumes they are not mixed changes15:04
=== zyga is now known as zyga-food
jamvila: landed15:38
vilajam: yup, saw it, I'm having an issue with an added test for selftest-config-stats I can't reproduce locally though :-/15:39
jamsorry to hear that, bbiab15:39
vilajelmer: do you have other landings planned ?15:39
vilaha crap, I'm pretty sure this is an outdated subunit/testtools combo on pqm :-/15:42
jelmervila: nope, nothing important in the queue for bzr.dev15:43
vilajelmer: ok, I'll cut 2.4.b4 as  soon as I sort this mess out, better if pqm is free for that :015:44
psynapticgit rules15:51
Riddellbasic python question, I'm running a for loop over a method which returns names, what's a good way to count the number of times each name is returned?16:32
vilaRiddell: without more context, I'd go with a dict of names -> number of occurrences16:38
Riddellvila: but if I do mydict[name] += 1 then it fails on the first time because mydict[name] doesn't exist yet16:39
vilayeah, that sucks :) except KeyError: mydict[name] = 116:40
james_w.setdefault()16:41
james_wmydict.setdefault(name, 0)16:41
james_wmydict[name] += 116:41
james_wor use defaultdict if it's in the oldest Python you support16:41
vilaha right, I knew it somewhere in the back of my head but it refused to pop up ;)16:42
james_wthat's what I'd do at least16:42
Riddellgroovy, thanks james_w, vila16:44
=== joey` is now known as joey
Noldorincan someone please clarify the differnce between a repository, branch, and working tree? are these meanings universal between VCSs?17:10
maxbThey are roughly universal in core concepts, but they often have rather different UI17:13
maxbA repository is a place in which history is stored on disk.17:13
maxbA branch is a representation of an ongoing line of development17:13
maxbA working tree is an area on disk where new revisions are prepared before committing17:14
maxbBazaar repositories are *really* only about storage17:14
maxbMercurial and Git repositories also behave as a container for a set of branches - whereas Bazaar's container for a set of branches is "Your filesystem"17:15
amdahljHi, does anyone know if it is possible to call the visual diff viewer in bazaar explorer from command line?18:09
amdahljrather than the standard command line output you'd get just by calling bzr diff18:10
amdahljdoes anyone know if it is possible to call the visual diff viewer in bazaar explorer from command line?18:21
Buttons840if i init-repository with --no-trees   then the branches will not have working trees, but i'm not sure what this means?18:27
amdahljpretty quiet in here so far buttons, I'm taking a look at your question though18:30
Buttons840well, basically my question is just "what is a working tree"   i've read the docs and help but i'm not understanding18:32
Buttons840just a conceptual question18:32
jelmeramdahlj, I think you're looking for "bzr qdiff"18:32
amdahljthanks jelmer18:32
amdahljwill try it out18:32
amdahljYes, you are right jelmer, thank you very much18:32
jelmerButtons840, a working tree is an area with the actual files in it so you can prepare a commit - I think somebody else explained it well earlier:18:33
jelmer A repository is a place in which history is stored on disk.18:33
jelmer A branch is a representation of an ongoing line of development18:33
jelmer A working tree is an area on disk where new revisions are prepared before committing18:33
jelmer(from maxb)18:33
jelmerif you want to be able to edit files, you need a working tree18:34
Buttons840jelmer: so how is --no-trees even possible; that's like saying "don't allow changes to repository" or "don't allow changes to the files on the disk"   at least, that's my view18:34
jelmerButtons840: You can still push revisions into or pull revisions out of a branch without a working tree18:35
jelmerButtons840: --no-trees is useful if you have a server where your history is stored, but where you don't do direct editing18:36
Buttons840so what information is stored in a working tree? i though no information was stored until i commit?18:37
Buttons840thought*18:37
jelmerButtons840: no history exists until you commit18:38
jelmerButtons840, the files in the working tree that have been added with "bzr add" are in the working tree18:38
jelmerButtons840, say you want to store a file named "README" in a bzr branch18:38
jelmerButtons840, only in a working tree would that file actually exist in the file system so that you can open it with your editor18:39
Buttons840ok, that makes more sense18:41
Buttons840thanks18:41
Buttons840are there branch naming conventions i should conern myself with?18:45
jelmerButtons840: not really18:47
MarkAtwoodhow come running "bzr log -r-3..-1 lp:myproject" downloads half a meg, slowly, from launchpad?18:53
jelmerMarkAtwood: it's not a very well optimized code path,18:54
MarkAtwooddoes it pull down the entire changelog over the network, and then just display the 3 most recent entries?18:54
jelmerit's also a fair bit better in newer versions of bzr, though still not as quick and efficient as we'd like18:54
jelmerMarkAtwood: no, it's more efficient than that but it falls back to reading some of the actual files in the repository rather than streaming just those three entries18:55
MarkAtwoodBazaar (bzr) 2.2.118:56
MarkAtwood  Python interpreter: /usr/bin/python 2.7.018:56
MarkAtwood  Python standard library: /usr/lib64/python2.718:56
MarkAtwood  Platform: Linux-2.6.35.9-64.fc14.x86_64-x86_64-with-fedora-14-Laughlin18:56
MarkAtwoodok18:56
jelmerThe initial wait of a few seconds for every connection to Launchpad is a bug in Launchpad that jam has been working on18:56
jelmerthe speed will improve further as we implement more calls in the smart server directly18:57
MarkAtwoodok18:59
MarkAtwoodthis is a pattern i use a lot, because i coordinate the merges from suggested merges into lp:drizzle/build then lp:drizzle/staging and then finally lp:drizzle19:00
MarkAtwoodand so im always "peeking" at the top of the log for each of those, to keep track of where I'm at19:00
MarkAtwoodlp:drizzle/build and lp:drizzle/staging are picked up and ground up by our Jenkins array19:01
briandealwisHi everybody.  I'm using bzr 2.4b2 & bzr-svn 1.1.0dev.  I'm trying to set up a custom layout for bzr-svn.  The setup is almost like "trunk", where branches are found under branches/ but the actual trunk is in trunk/product.  Adding "branches = branches/*;trunk/product" to my subversion.conf leads to an error when I try 'bzr svn-layout URL': bzr: ERROR: <bzrlib.plugins.svn.remote.SvnRemoteAccess object at 0x12f3bd0> does not support co-located 20:24
briandealwisI tried wiping out my ~/.bazaar/svn-cache to no avail20:26
jelmerbriandealwis, hi20:28
briandealwishi jelmer20:28
jelmerbriandealwis, can you post the full backtrace?20:28
briandealwissure, hold on20:28
briandealwisjelmer: http://pastebin.com/wu9RGZNw20:29
=== yofel_ is now known as yofel
jelmerbriandealwis, is it just "bzr svn-layout" or do other commands give this as well?20:44
briandealwisHmm, good question: I hadn't tried.  But trying to branch the trunk seems to work.20:46
briandealwisjelmer: huh, and 'svn-layout URL/trunk/product' works20:47
briandealwisas does 'svn-layout URL/branches/<<branch-name>>'20:47
briandealwisbut 'svn-layout URL/branch' or 'URL/trunk' fails20:48
jelmerbriandealwis: Looks like it's just invalid handling of a particular exception at the moment20:49
jelmerbriandealwis: can you file a bug about this?20:49
briandealwiswill do20:49
briandealwisthanks jelmer20:49
jelmerthank you :)20:49
santagadathere is really no bzr record/staging?20:54
santagadaI have to shelve everything and then unshelve and commit?20:55
jelmersantagada: hi20:58
jelmersantagada: yes20:58
santagadajelmer: is there any plans to implement something like the hg record extension?20:59
santagadaI just want to filter my commits20:59
jelmersantagada: What does hg record do?21:00
santagadajelmer: I think it is mostly the reverse of what shelve do, the same as git interactive commit21:01
santagadajelmer: it asks if you want to commit each piece of a file/the whole file21:03
santagadajelmer: very simple and makes me wonder why bzr has only the inverse (shelve)21:04
santagadawell it is useful, if you want to test each patch before commiting21:04
amdahljis there an easy way to exclude a particular file from qdiff?21:05
amdahljsomething like -x for commit21:06
jelmersantagada: I don't think there is anything like that (yet)21:07
=== zyga-food is now known as zyga
pooliehi all22:43
vilapoolie: hey !22:45
jelmer'evening poolie, vila22:52
vilajelmer: _o/22:54
poolievila, thanks for updating all the bugs23:11
poolieclosing the closed ones, i mean23:12
poolienot just today23:12
vilapoolie: hehe, -w option on check-newsbugs is a treat :)23:12
poolieis it?23:14
poolieis that for --write?23:14
poolietnhat's cool23:14
vila--webbrowser23:14
vilawhen they are all opened in tabs, it's really easy to update them23:15
pooliei think we talked at the sprint about systematic release naming23:15
pooliei think we should23:15
pooliei noticed openstack are doing this too23:15
vilareally ? I may have missed that one23:15
vilayou mean, giving names to bzr releases ?23:15
poolieyes23:18
poolieat the moment the naming's a bit arbitrary23:18
vilahmm23:18
pooliei think we talked about matching the letter of the ubuntu release they synchronize with23:19
vilayou're ~2h late for 2.4b4, or are you thinking about the series instead ?23:19
vilaha, right series then23:19
vilawell, I'd like that too, if only to make references simpler23:20
pooliethe series23:20
poolieand/or the final release23:21
pooliei don't think betas need names23:21
vilayup, nor point releases23:22
poolieso we need a scheme23:23
poolieperhaps famous markets in the world23:23
vilahaaa, worth searching a bit23:23
poolieor islands23:24
poolieneeds something with reasonable coverage of every letter23:24
vilayup, well, at least the remaining ones ;)23:24
Riddellwhat island begins the O?23:35
poolieOahu?23:35
poolieor Old Spitalfields, as a market (according to wp), though the 'Old' is cheating a bit23:36
RiddellOronsay23:36
RiddellI'm not convinced the world has that many famous markets23:36
pooliethere's a lot of Oronsays apparenttly23:36
poolieyeah, that is a bit of a problem23:36
poolieusing a scottish one would be nice23:37
RiddellI agree :)23:37
RiddellOrkney, Outer Hebridies23:38
RiddellOigh-Sgeir, could start a trend of hard to pronounce ones :)23:39
jelmerRiddell, :)23:41
vilaok, 2.4b4 frozen, uploaded, already fixed ... and babune on its way to turning blue again (including OSX !) leaving only windows as the ugly duckling ;)23:47
vilathat was quite a day (including my elder daughter starting her final exam and generating a lot of stress across the whole family ;)23:48
vilaso, have fun guys and see you tomorrow, well, in a few hours23:48

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