/srv/irclogs.ubuntu.com/2008/12/19/#bzr.txt

Keybukfreaky00:23
Keybuknow doing a bzr fast-import, having fixed other bugs, I'm left with four files missing from the output repository00:23
Keybukexcept the log shows them being added to the inventory00:23
mwhudsonigc: are you here?00:27
jmlspiv: are you around today?00:32
jmlvila: can you land that loom patch or do you want me to do it?00:41
spivjml: I am00:42
spiv(when I'm not busy making myself coffee)00:43
jmlspiv: can I hit you up for a 20 min skype call on server-side logging?00:43
spivSure.00:43
jmlspiv: just dial me when you get online00:44
DnaXhi00:57
DnaXhow can i remove last commit to the remote repo?00:57
Keybukhmm00:58
Keybukthis actually looks like a bzr bug itself00:58
DnaXwonderful....00:59
Keybukbecause the damned inventory is certainly queued to be committed :-/01:00
DnaXKeybuk: thank you ;)01:03
KeybukDnaX: ?01:04
KeybukDnaX: I wasn't talking to you - I was just talking to the air :p01:04
DnaXXD OMG...01:04
KeybukDnaX: though I can answer your question ;)01:10
Keybukbzr uncommit01:10
Keybukbzr push --overwrite01:10
cafuegoHow do I make bzr list the "unknown files" it whines about when trying to commit?01:12
DnaXKeybuk: thank you, really now! ;)01:12
Keybukcafuego: bzr ls --unknown01:12
cafuegota01:12
spivcafuego: or even just "bzr unknowns" :)01:13
spivKeybuk: that doesn't sound good01:13
cafuegoOk look, that entire mysql source tree isn't supposed to be there ;-)01:13
Keybukspiv: I'm trying to debug enough bzrlib to work out why the file doesn't appear - but not having much luck :-/01:13
spivKeybuk: igc is likely to be around in an hour or two, if you want to talk fast-import stuff with him01:14
spivKeybuk: And/or I can try to help your debugging now01:14
Keybukspiv: well, so I'm tracing through fast-import generic_processor.py01:16
KeybukI can see the file in modify_handler()01:16
Keybukit gets a file id01:16
Keybuk(a new one generated)01:16
Keybukan inventory is made01:17
Keybukwell, inventory.make_entry()01:17
Keybukit's an InventoryFile01:17
Keybuklines seems to have the one line in it01:17
Keybukand it gets added to self.inventory01:17
Keybukyet, it doesn't show up in the commit :-/01:18
* spiv looks01:19
Keybukit's always the same four files01:19
spivAnything special about those files?  Wacky file names or something?01:20
Keybuknope01:21
Keybukno different than the surrounding01:21
Keybukbut it's always the same four files01:21
Keybukin the same commit01:21
spivI'm not familiar with fastimport, but it sounds a bit odd that new files would go through something called modify_handler?01:22
spivAh, hmm, that does appear normal.01:22
Keybukhmm, the only odd thing is that one of the files shares a blob with another maybe?01:28
spivbzr-fastimport doesn't appear to use the regular commit APIs, for speed reasons I guess.01:30
spivI wonder if it's skipping something important...01:30
Keybukdunno01:32
Keybukthe same mark gets re-used in several other places just fine :-/01:32
Keybukwhat's particularly weird01:34
Keybukthey are 4 of the last 5 entries of a particular commit01:34
Keybukoh01:36
Keybukhmm01:36
Keybukiiiiinteresting01:36
Keybukthey don't show up on the mainline at all01:36
KeybukI missed that entirely01:36
Keybukthe commit doesn't even appear01:36
spivSo that revision ID isn't in the generated repository?01:37
Keybukit seems to be treating some tags as branches01:38
meoblast001hi01:38
meoblast001are there any bots like CIA for bazaar?01:38
Keybukhmm01:38
Keybukin fact01:38
Keybukthe export has commit refs/tags/... a lot01:39
nDuff...okay, this is odd -- I'm deleting and immediately re-adding a directory (with the same id) in bzrlib; an os.listdir() between the two confirms that it's removed from the filesystem, but the wt.mkdir() fails on account of the directory already existing.01:39
nDuffmeoblast001, I'm not familiar with CIA; is it a PQM?01:39
Keybukexcept for <= 057, they appear as branches, not tags01:39
nDuffmeoblast001, if so, Bazaar had PQMs long before... well, pretty much anyone else that I know of.01:39
bob2meoblast001: bzr-cia01:39
meoblast001CIA is a bot that chills in IRC and talks about commits01:39
spiv(Gosh, there's some scary code in bzr-fastimport...)01:40
meoblast001isnt bzr-cia still in productions01:40
nDuffahh01:40
spivmeoblast001: well, there's a bzr-email plugin01:40
meoblast001hmm01:40
meoblast001if you go into #wxwidgets or Anynet #alientrap you'll see what im talking about01:40
Keybukooooh, the first commit refs/tags/058 has no from: line01:41
meoblast001heres an example <CIA-17> RR * r57426 wxWidgets/interface/wx/filename.h: Correct AssignTempFile docs01:41
Keybukand that's where the master branch in the bzr import begins01:41
spivmeoblast001: and there's https://launchpad.net/bzr-cia01:41
meoblast001is CIA downloadable?01:41
meoblast001the daemon01:41
spivYou mean the thing that runs http://cia.vc/ ?01:42
meoblast001yeah01:42
spivmeoblast001: cia.vc links to http://code.google.com/p/cia-vc/source/checkout for the source code01:43
meoblast001ok thanx01:43
meoblast001wonder if there's a deb package01:43
spivKeybuk: ok, I'm out of my depth in fastimport now :)01:45
spivKeybuk: hopefully igc will be around soon if you're still stuck...01:45
KeybukI'm actually starting to think this is a git fast-export bug01:46
TDTI'm currently using git, but after a bit of an introduction yesterday and today on it -I'm interested in trying out bzr and seeing how well it works for a few of my projects, and if all goes well to move over to bzr totally.  I was curious if there was a good way to import a git repository (including history, changes, etc) into bzr without writing a script to do it.01:46
KeybukTDT: git fast-export | bzr fast-import01:47
spivYeah, fast-export/import is the best option I know of.  You'll need to install the bzr-fastimport plugin.01:47
TDTKeybuk: Awesome, thank you for the help on that.  Ill check out both commands and will likely give it a try very soon.  Are there also any good books, like something like Git from the Bottom Up - which helped for a good intro?01:48
spivTDT: http://doc.bazaar-vcs.org/latest/ is pretty good01:51
TDTspiv: Thanks, I will definitely start at this link then :)  Thanks everyone for the help, and sorry for the newbiesh questions.01:53
spivTDT: not a problem01:54
meoblast001are there any alternatives to CIA?02:05
* markh wonders what happens when you butter memory...02:44
NfNitLoop???02:44
markhrevision 3887 apparently butter's memory usage :)02:48
Peng_Buttered RAM would probably smell pretty bad.02:52
* markh wonders if that revision is the reason for the funny smells here recently...02:53
meoblast001hi03:16
meoblast001how do you force unlock a branch?03:16
seb_kuzminsky"bzr log" accepts a --log-format=ARG option...  where is ARG described?03:16
jmlmeoblast001: bzr break-lock <url>03:16
meoblast001thanx03:17
NfNitLoopseb_kuzminsky: it seems to accept the formats listed below it.03:18
NfNitLoop(line, long, short)03:18
seb_kuzminskyok, thanks03:18
seb_kuzminskyi was hoping for something like "%m" for the log message, "%u" for the user who committed, etc03:18
seb_kuzminskyoh well ;-)03:19
NfNitLoopThat does seem like what one would expect in such an argument.03:20
seb_kuzminskythat's ok, i *still* love bzr ;-)03:20
NfNitLoopme too!  :)03:20
igchi all03:39
NfNitLoopigc: h'lo03:41
mwhudsonhi igc03:41
tansellhi guys, someone gave a talk at OSDC about making command line python fast (using bzr as an example). Anyone got a link to it?05:15
spivI gave that talk.  I haven't put it online yet.05:23
spivThe paper should be in the printed handout, though.05:23
spivYou can mail me at andrew.bennetts at canonical.com and I'll send you a link when I get it online (next couple of days most likely).05:24
bob2were OSDC talks recorded?05:26
spivNo.05:33
vilahi all06:59
vilajml: I'll land that loom patch later today06:59
vilaspiv: can you have a look at '[MERGE] Fix stacking tests applicability' discussion and give feedback on the intent of the test_push_with_default_stacking_does_not_create_broken_branch test ?07:01
igchi vila07:17
vilahi Ian07:17
spivvila: hi07:17
spivvila: jam's summary is correct07:18
vilaspiv: hmm, but how an unstackable branch format can automatically upgrade ?07:19
spivvila: the source branch doesn't change07:20
spivBut the *new* branch that is created by the push can be in a different format if the user passed --stacked, or if there's a default stacking policy at the target.07:20
kfogelvila: should I poke at you about those log bugs (211852, 97715) or are they not part of your goals right now?07:21
kfogelhmmm.  maybe if I say the bugs properly, the chan bot will DTRT:07:21
kfogelbug #21185207:22
ubottuLaunchpad bug 211852 in bzr "bzr log should accept multiple files" [Wishlist,Triaged] https://launchpad.net/bugs/21185207:22
kfogelbug #9771507:22
ubottuLaunchpad bug 97715 in bzr "bzr log DIR should show changes under dir" [Medium,Confirmed] https://launchpad.net/bugs/9771507:22
spivThe former part already existed before my recent change that added that test.  My change made the latter case consistent with that (and fixed a serious bug in the process, because otherwise the repository only contains stacked revisions but the branch isn't stacked, so the branch is broken).07:22
vilakfogel: you can poke at me or look at the '[RFC] About log [-v] [--deep] [file|dir]*' thread in bazaar ML07:22
kfogelvila: oh -- thank you, somehow I missed that.  Will go look.07:23
spivvila: looms are problematic, because unlike other branch formats there's no format to upgrade to that supports stacking *and* loom data.07:23
vilaspiv: haaa, right, I like that07:24
spivvila: so I'm not sure what should happen if you try to push a loom in that situation.  Probably the loom plugin needs to add a stacking-capable loom branch format.07:24
vilaI can live with 1 failing test until loom become stackable07:24
vilaspiv: that's one point07:24
vilathe second one is that the test shouldn't fail anyway :-)07:25
spivWhy not?  Looms are broken in this case, I think, so why shouldn't a test fail?07:25
spivAre you arguing that looms shouldn't be broken?07:25
vilaBecause an unstackable format (provided by a plugin) may remain like that and never provide a stackable alternative07:26
vilaspiv: but I don't think there is urgency to address that07:26
kfogelvila: thread linked to from the issues now07:27
spivI think plugins that add something as fundamental as a branch format have to accept that will happen, unless they track new development in bzr.dev pretty closely.07:27
vilakfogel: great, if you have feedback from the emacs side, don't hesitate to crosspost07:27
spivSo, the most correct thing a loom can do atm is upgrade to a stacking-capable non-loom format in that case, I think.  I think that'd be ok.07:28
kfogelvila: I'll at least link to the emacs-devel thread from the issues, so people can reach the context if they want it.  The only "feedback" in that thread is that people want the features -- no surprise there.07:29
vilaspiv: nice ! I don't know enough about loom and stackable format myself though :-/07:29
spivvila: well, how does the test fail atm?07:29
vilakfogel: the 'log DIR' itself is subject to various interpretations at least07:30
vilaspiv: traceback in the thread, raises UnstackableBranchFormat07:30
kfogelvila: yeah, I was wondering if that might be the case.07:31
kfogel(Hadn't really thought about it deeply; I know how SVN behaves in this case, but SVN is sufficiently different from bzr that prior thought like that doesn't always help.)07:31
spivvila: incidentally, I see there's already a BzrBranchLoomFormat707:32
spivvila: (and it passes the test)07:32
vilaas opposed to loom1 and loom6 ? Let me check...07:33
vilaoh, you mean without my loom patch ?07:34
viladoes that mean loom7 is stackable ?07:35
spivvila: I think I have a fix for loom07:35
vilaspiv: great !!07:35
spivvila: just delete the implementation of clone in LoomSupport07:35
vilaspiv: hmmm, the one you were suspicious about sometime ago ?07:36
spivvila: it hard codes the format, rather than delegating to the bzrdir like clone is supposed to AFAICT07:36
spivvila: Yes, exactly.07:36
spivvila: (see also my posts a while back about the exact contract for clone and bzrdirs...)07:36
vilaspiv: deleting clone() is enough to make all tests pass (at least the ones that were failing when I wrote the two patches)07:41
vilaspiv: summary: looms are stackable (jml, I will not land that patch finally :-), I'll update my bzr patch to leave the push test as is07:42
spivvila: I guess that means there's no explicit unit test that source_branch.clone(target_bzrdir) delegates the choice of branch format to the target bzrdir rather than the source branch.07:45
vilaspiv: though one... I still had in mind the time where pushing a loom turned into a regular branch (or did I dream that ?)...07:49
spivvila: well, is there a test about that? ;)08:06
vilaspiv: lol08:06
vilaspiv: we'll get there, we'll get there...08:06
vilaat least the one you define just above, even if it sounds hard to reach, is, IMHO, a very valuable goal08:07
spivvila: although, I'd expect that case to be ok atm (except when upgrading-for-stacking gets involved)08:07
spivvila: ooh, there's a test_sprout_uses_bzrdir_branch_format already, but no equivalent for clone08:08
vilaspiv: I'm re-reading that push test carefully now, I didn't realize branch_builder has the capability to create file contents too08:08
spiv(looking in branch_implementations still)08:08
spivvila: make_branch_builder is very useful :)08:09
vilayeah, jam already told me, but so far I has seen it used to build revision graphs without real content08:09
vilaright, I think your comment is right (if 'remote' is not stacked *AND* is missing the...) and may be the test can handle more cases gracefully (i.e. accepting a remote branch not stacked but containing the fulltext reccord...)08:13
vilayet another far-too-late review by vila :)08:13
spivI'm not sure what you mean by handling more cases gracefully?08:14
vilachecking that fulltext record is present whether or not the branch is stacked ?08:18
vilaerr, no, checking that the branch isn't broken whether or not it's stacked08:19
vilabaah, may not be worth the effort until we really have to handle such a case08:19
spivIsn't that what the test does?08:20
vilaI mean accepting a format that is neither stackable nor upgradable to a stackable format08:20
vilawhich we may not want to accept anyway08:21
spivAgain, isn't that what the test does? :)08:21
spivIt doesn't actually assert that the new branch is stacked, just that the new branch works.08:22
vilaAs long as we don't accept "a format that is neither stackable nor upgradable to a stackable format", yes it is08:22
spivNo, there's nothing in the test code about that (although the docstring may be misleading).08:23
spiv(Misleading for describing the current behaviour rather than the required behaviour)08:23
vilaIndeed, "there's nothing in the test code about that"08:24
spivThe test doesn't assert anything about whether the new branch is stacked.  It makes sure that the new branch doesn't suffer from missing data (as happens with an unstacked branch wrongly used with a stacked repository)08:24
spivWhich is exactly what you're asking for, as far as I can tell :)08:25
vilayes, I'm thinking out aloud :)08:25
vilaThe last point that makes me uncomfortable is that we are excluding some formats at the start and plugins will never be able to do that (this is quite unrelated to that specific test)08:26
vilaI understand why we do that here, but the general problem remains08:27
vilaI encountered it several times already when features are not directly testable (transport.can_roundtrp_chmod_bits() or that kind of stuff)08:28
spivYeah, there is a general problem there.08:29
vilathanks for the explanationS (and fixes) about that test, I've enough understanding now to update my submission08:30
spivI think it's not so bad, though.08:30
spivSome new scenarios (e.g. the various loom branches) need to be considered to decide if they're applicable or not.08:31
spivIf you're lucky, clear criteria for automatically skipping some scenarios will become obvious.08:31
spivBut the main thing is to avoid writing a test and then accidentally having it *not* apply to something it should.08:32
spivJust because that's very frustrating :)08:32
vilaI think my beliefs were wrong about looms, most of the decisions are already delegated to the associated branch formats, deleting clone() goes one step further in the right direction08:32
vilaspiv: Exactly, that's why I fight against selftest --no-plugins :-)08:33
vilaand it turns out things are not that bad, I currently have a bunch of plugins which are all passing the tests08:34
vilathat includes gtk, qbzr, loom (yeah !!), upload, usertest, webdav, xmloutput (still 1 failure), bookmarks, difftools, bzrtools (err, not anymore wtf ?) :)08:36
spivvila: ah, but what about svn? :)08:39
spivIt was bzr-svn loading halfway through the suite that was causing me grief, especially as that version didn't like bzr.dev (it wanted 1.10 only).08:39
spivSo random things started giving API version errors.08:40
vilamy problem with svn is that I run tests from the same directory for OSX/ubuntu and we don't have a way to use platform-specifc extensions08:40
vilasome goes for bzr itself (I run the python modules only, never the compiled extensions, well almost never)08:40
vilas/some/same/08:41
spivvila: set your $BZR_PLUGIN_PATH differently on the two platforms?08:41
vilaspiv: that's exactly what I want to avoid :)08:41
vilaOh, I can do that for svn only...08:41
spivbzr-svn 0.5 has the C extensions split into a separate package.08:41
spivSo you could install that part ("subvertpy" IIRC) system-wide, and keep sharing the rest of bzr-svn between platforms.08:42
vilaok, will try that next time (hmmm, more OSX tweaking to install subvertpy may be ? I'll look)08:43
vilaspiv: but don't let me retain you that long I thought you were on leave :)08:43
spiv:)08:43
* spiv wanders off08:43
AfCIs it deliberate that you can merge into a branch that isn't up to date?08:48
* AfC seems to frequently run into problems where I have working trees that are out of date, don't realize it because I didn't run `bzr status` this time, do a `bzr merge`, then make a mess, then make an even bigger mess when I try `bzr update` and suddenly KABOOM *.moved08:49
AfCIf merged refused to if the Working Tree wasn't up to date, I think I would be spared this.08:50
AfCAm I missing something obvious?08:50
vilakfogel: excellent cross-linking between bugs and mailing lists threads !08:53
vilaAfC: you may want to file a bug, but I think the use case is that you may want to merge several times from different branches and do a single commit08:54
AfCYou can do that?08:56
AfCI could have sworn there was a must commit this before merging that sorta thing going on.08:57
AfCAnyway.08:57
AfCI will file one.08:57
mgedminI have a rather messy Subversion repository; and I'd like to extract the history of a single file and put it into bzr10:19
mgedminwhat's a good way to achieve that?10:19
mgedminI don't expect bzr-svn to cope with that10:20
mgedminI suppose I could write a shell (or perl, or python) script to svn checkout ever interesting revision and commit it to bzr10:21
mgedminbut I see no way to pass all the relevant metadata to bzr commit10:21
mgedminfor some reason I think I'd like to have historical commit dates10:21
mwhudsonit's easy enough in the api, i think10:21
spivmgedmin: I think svn2bzr can do some filtering10:21
mwhudsonso write a python script instead of a shell script, or a plugin that adds --date to commit, i guess10:22
spivmgedmin: or you could try filtering an dump of the svn repo (I think the svn admin tools might be able to do that)10:22
mgedminsvndumpfilter aborts in the middle with an incomprehensible error message10:22
* mgedmin looks at svn2bzr10:24
AfCI imagine using Bazaar directly in Python would actually be the solution to a lot of problems, but I don't know of a good introduction to the API from a simple use case perspective - for example, something that would be just a few lines that would be in the neighbourhood of what mgedmin wants to do.10:25
igcspiv, vila: I'm calling it a week. Enjoy your holidays heaps and see you next year!10:43
mgedminfwiw, the bzr commit --date idea would work perfectly here10:45
mgedminoh yay bzr-svn is reliable as ever: AttributeError: 'SvnWorkingTree' object has no attribute '_transport'10:48
vilaigc: Thanks ! I'll be back shortly after Christmas and before 1 Jan. Happy Christmas to you and your family though :-)10:49
mwhudsonwt = bzrlib.workingtree.WorkingTree.open('.')10:49
mwhudsonwt.commit(... args ... )10:49
mgedminlooks like https://bugs.launchpad.net/bzr/+bug/26454810:50
ubottuLaunchpad bug 264548 in bzr-svn "AttributeError: 'SvnWorkingTree' object has no attribute '_transport' during branch" [Undecided,Fix released]10:50
* mgedmin tries bzr push servername:path-relative-to-home, gets an error, and starts reading 'bzr help push' to figure out the syntax for pushing over SSH10:54
vilaspiv: if you still there, what was the subject line for the thread about exact contract for clone and bzrdirs ?10:54
AfCbzr+ssh://server/absolute-path-to-branch10:54
mgedminthank you10:54
mgedminI found bzr help urlspec via bzr help topics10:55
AfC(assuming Bazaar installed on target system, of course)10:55
mgedminbut I only knew to look because I once tried to submit a patch for it10:55
mgedminand found that someone had submitted a better patch10:55
mgedminwhich was eventually included10:55
AfCyeah, it'd be nice if ssh syntax just worked. Alas.10:55
mgedminI'd suggest listing 'urlspec' in the "See also" list at the bottom of 'bzr help push'10:55
mgedminI don't mind using bzr+ssh, but I'd like better discoverability10:56
mgedminconsider my today's rambling on this channel an unasked-for usability test ;)10:56
mgedmina 6 second pause of 'bzr ci' before it spawns an editor is definitely unpleasant12:26
mgedminI'm reconsidering using branches bound to launchpad12:26
=== jelmer is now known as Guest70117
Jc2khey Guest70117 :P13:23
=== Guest70117 is now known as jelmer
jelmerhey Jc2k :-)13:24
Jc2kjelmer: when you have a spare 5 minutes could you sanity check the way im generating a pack in bin/dul-daemon13:25
=== lamont` is now known as lamont
jelmerJc2k, Yeah, I think so.13:30
jelmerJc2k, It would be nice to factor out the code in write_pack_data() that writes to a file object13:30
jelmersince that's now duplicated in dul-daemon13:31
Jc2kjelmer: *nod*13:31
Jc2ki have a bug with it atm. some of the trees arrive at the other end corrupted somehow. not them all, though :(13:32
jelmerthat's not good13:36
Jc2kno13:39
=== sdboyer-laptop_ is now known as sdboyer-laptop
=== fta_ is now known as fta
LeoNerdWhat's the easiest/lightest way to tell if cwd is somewhere inside a bzr checkout. Don't care where the root is.14:58
LeoNerdCVS and SVN are a little easier, because I can just  test -d CVS  or  test -d .svn14:58
Taksearch upward for a .bzr?14:59
LeoNerdThis is in a little shell script, so ideally as light as possible would be good.  bzr revno >/dev/null  seems reasonable15:00
spivLeoNerd: 'bzr root > /dev/null 2>&1' then check the exit code15:01
LeoNerdAhyes.. that's probably lighter15:01
LeoNerdOh.. bzr-svn gets in the way15:01
spiv'bzr --no-plugins root > /dev/null 2>&1'  ;)15:01
* Kinnison just looks upwards for a .bzr15:02
LeoNerdAt work we use CVS and SVN, and personally I use bzr. Since I can never remember which I'm using in a checkout, I've written a tiny bin/vc script15:02
LeoNerdIt just hunts for the most likely candidate, then exec()s it15:02
LeoNerdAh, that's much nicer15:02
spivAt some point jelmer will succeed in making bzr a better svn client than svn ;)15:02
Takhasn't he? :-P15:03
KinnisonLeoNerd: http://rafb.net/p/Dq7hil79.html15:03
KinnisonLeoNerd: that's what I use in my zsh prompt-building stuff15:03
LeoNerdOoooh.. Shoving it in PS115:03
LeoNerdThat would be awwwwwesome15:03
* Kinnison grins15:03
* Kinnison has vcs, nick/branch, revno, and status summary in his prompt15:04
Takthat is pretty slick15:04
spivKinnison/LeoNerd: I guess if you wanted to be really fancy you could make that look for .bzr/checkout rather than just .bzr (assuming you really only care about checkouts)15:04
Kinnisonspiv: mine can spot repos and tell you about them too15:04
=== lamont` is now known as lamont
LeoNerdspiv: Existence of a .bzr is good enough15:04
spivLeoNerd: but what if you want to version bzr branches in svn? ;)15:05
spiv(answer: then you get what you deserve!)15:05
KinnisonLeoNerd: E.g. http://users.pepperfish.net/dsilvers/vcsshot.png15:05
LeoNerdspiv: Then I type bzr or svn specifically15:05
LeoNerdvc just execs the "most likely" choice15:05
spivLeoNerd: :)15:05
LeoNerdvc ci -m "Changed stuff"15:05
Takthat seems ... busy15:07
KinnisonTak: ?15:07
Takcrowded? cluttered?15:08
Kinnisonmy prompt?15:08
Takyeah15:08
pickscrapeI have a question about BB. Say I have branch A which contains 1 new revision, and branch B which is based on branch A and contains one additional revision15:17
pickscrapeIf I submit branch B, BB complains that it doesn't know about all revisions that B is based on (correctly). If I submit A first and then B, BB notices and even tells me in B's merge page that the patch is based on the A patch.15:18
pickscrapeThat's all fine and works well15:18
pickscrapeMy current scenario looks more like this though. Say I have A and B, each with one revision, but independent.15:18
pickscrapeAnd they are both submitted15:18
pickscrapeBut then I submit branch C, which is based on both A and B with some more of its own. Is BB able to pick up referenced revision from multiple other submissions?15:19
KinnisonTak: I typically have full-screen terminals. so it takes up less room (relatively) than you might think.15:19
Takah, that would help15:20
KinnisonI figured that a 1680x1050 example wouldn't be quite as acceptable though15:21
LeoNerdOh.. if only you could do async/lazy stuff in PS115:40
LeoNerdThen I'd have it print the clean/dirty status of the checkout, in a way that didn't slow it down15:40
LeoNerd[bzr]  vs  [bzr*]15:40
Kinnisonmmm15:40
Kinnisonthat'd be lovely15:40
* Kinnison wonders if zsh could do that15:40
rockstarzsh can move mountains.15:41
Kinnisontrue15:41
* Kinnison ponders15:41
LeoNerdYou'd have to go back later on and update the screen afterwards15:43
Kinnisonaye15:44
Kinnisonbut zsh knows where the prompt is15:44
Kinnisonbecause it can erase the rprompt and return it15:44
sven_hi! if i run 'bzr log --show-ids -r2682.1.4..2682.1.4', shouldn't it print just revision 2682.1.4?15:44
sven_for me, it prints the latest revision instead15:44
sven_sorry, it prints all revisions15:47
sven_i'm using bzr 1.1015:47
LeoNerdKinnison: I think this is likely to end badly.. E.g. big CVS checkouts might take some time to determine clean/dirty status15:50
KinnisonLeoNerd: zsh has proper and complex job control15:51
LeoNerdYa.. but I mean... I wouldn't want to rely on the not-yet-answered status of the prompt15:52
LeoNerdcurrently it's just a stat() check, so I know I can rely on it, and it's quick15:52
Kinnison(bzr?)  => (bzr) or (bzr*) after update15:54
Kinnison?15:54
Kinnisonthat'd make it clear15:54
Kinnisonbut anyway, it's all moot unless you can alter an already displayed prompt15:55
EdwinGrubbsIf I run "bzr annotate" and the line I'm interested in is from revision 5005.3.1, how do I find the revision that merged in 5005.3.1 without just searching through a log of the range of revisions that I'm guessing will contain the one I'm interested in?16:02
EdwinGrubbsrockstar: ^^^^ ?16:22
rockstarEdwinGrubbs, no idea.16:25
EdwinGrubbsrockstar: :-(16:26
rockstarEdwinGrubbs, I never use annotate.  Sowwy.  :(16:26
pickscrapeEdwinGrubbs: I find qbzr to be really useful when history-digging16:28
pickscrapeTry bzr qannotate.16:29
enigma42jelmer: With 0.5 trunk, I'm seen a routine "bzr pull" from SVN take 7 min and 40 sec (pulling no changes), whereas with 0.4.16 it took approx 15 seconds.16:31
enigma42jelmer: Is there a way I could see where bzr-svn is spending all the time?16:31
enigma42jelmer: It gets hung up in "Pull phase 0/2"16:31
=== guilhembi is now known as guilhembi|vacati
enigma42jelmer: I reran the "pull" with "-Dtransport". It looks like the plugin is making several hundred "svn get-dir" calls as part of the pull.16:44
ronnyhi17:28
ronnyanyone aware if there is a extraction of the lib that handles parsing the bzr cli arguments?17:29
luksI don't think there is17:29
ronnyhmm, maybe im blind, but is there any wsgi adapter to have smart-serving from within a wsgi app?17:32
luksronny: what's a wsgi adapter? there is a wsgi application, is that not enough?17:39
ronnyluks: i cant find the wsgi app in bzr.dev, am i looking at the wrong place?17:41
ronnyok, just found it in transports17:42
luksronny: bzrlib.transport.http.wsgi17:42
luksyeah17:42
ronnyhmm17:47
jamIs Marius Kruger lurking around here somewhere?18:26
awilkinsronny: Theres an example of using the wsgi in ServerGuide/IIS on the wiki18:57
vilajam: I think Marius nick is AmanicA19:07
AmanicAyes thats me19:07
vilajam: no I'm not there anymore, merry Christmas anyway :-)19:07
vilaAmanicA: hi :)19:07
AmanicAhi19:07
jamhey AmanicA, I just wanted to ask a quick question about http://bundlebuggy.aaronbentley.com/project/bzr/request/%3C418c22640812130437k59ecab49g6b49b9a8248117bb%40mail.gmail.com%3E19:08
jamI'm ready to merge it19:08
jambut I wanted to know if you need "StringIO.StringIO()" or whether "cStringIO.StringIO" would work.19:08
jamIn general, the reason we used the former is bogus, so we should only be using the latter.19:08
jam(StringIO.StringIO() will cast its internal variable up to a Unicode string if it thinks it needs to, but that is generally not behavior we want.)19:09
AmanicAoh, I probably copied it from some other bzr code19:09
AmanicAso i dont have a reason19:09
jamok19:09
jamI'll switch it around and submit19:09
AmanicAthanks19:09
jambtw, hi vila19:09
AmanicAand thanks for merging it!19:09
jamvila: btw, I reviewed your stacking test patch, but accidentally hit submit early19:10
jamwait for the second email19:10
eydaimonany plans to add neatbeans support? (plugin)19:10
ronnyawilkins: k, thx19:13
mtaylorstacking rules19:22
mtaylorthanks all19:22
mtayloris there a way to push something in 1.6 format to launchpad, but tell it not to stack on anything? (I want it to be a stacking source itself, and the default launchpad branch is still in non-1.6 format)20:00
nDuffWill any of the upcoming changes (ie. "views") make it easier to divorce on-disk and in-store file representations to the point of having more than one in-store object for a given in-filesystem one? I have a tree-structured file format which is better represented for to the merge algorithm and such as being a directory tree rather than a single file (the format is such that generating IDs that persist during document restructurings and conten20:48
nDufft changes is straightforward). Right now I have a bunch of bzrlib code that handles serialization/deserialization and write the whole thing out to the underlying filesystem for the working tree... but it's probably not all that portable to (say) Windows, where I'd be hitting pathname-length restrictions; it'd be nice if the whole thing could be bzrlib calls without the need to get the FS involved.20:48
awilkinsWhy do some pushes want to lock the source branch, and some don't?21:08
awilkinsI have a repository on a write-only media that I'm pushing to another disk and some of the folders it refuses to push because it's trying to lock the source branch.21:10
awilkinsAha, I think I get it ; it's trying to set the push_location21:17
awilkinsLet me just check that.21:18
NfNitLoopI love being able to continue committing to bzr when our svn server goes down. :p21:18
NfNitLoop(which it just did.)21:19
* awilkins wonders why he just doesn't copy the whole shebang wholesale to a writable drive and do it there.21:19
NfNitLoopawilkins: what about branching/pulling from the destination?21:20
awilkinsThat could work, but more of a fiddle for new branches21:20
awilkinsI've just copied the folder to a writable drive and I'll run the same script there21:21
awilkinsJust don't want to lose newer revisions21:21
NfNitLooplose newer revisions?21:21
awilkinsYes, the target repo may have more revisions than the old one21:22
NfNitLoopaah, then you don't want push anwyay.21:22
awilkinsWhy not?21:22
awilkinspush is fine, doesn't overwrite newer revisions21:22
NfNitLoopreally?  I thought if you tried to push to something that had newer revisions it would tell you to merge first.21:22
awilkinsThese have no tree21:23
LarstiQyou two are saying the same thing21:23
LarstiQor well, almost21:23
* NfNitLoop tests.21:23
LarstiQwhen diverged, push won't overwrite unless you tell it to. When the remote is a superset, there is nothing to do.21:24
awilkinsThe read-only repo is because our mighty IT overlords decided that external USB media were a security risk and reduced all non-expensive-encrypted drives to read-only mode21:24
* LarstiQ blinks21:24
LarstiQso you can only write to expensive-encrypted drivers?21:25
awilkinsI say expensive-encrypted because apparently TrueCrypt volumes are not as good as £64-for-2GB McAffee super-super-drives21:25
awilkinsHence "expensive"21:25
LarstiQright21:25
awilkinsThe 16GB one is £36021:25
awilkinsWhat's that in USD....$53421:26
NfNitLoop...21:27
NfNitLoopI hope they pay you well. :)21:27
awilkinsI'm just moving the data onto my laptop drive and serving it up from a smart server.21:27
awilkinsAlthough having it on a thumb was mucho convenient21:27
NfNitLoopLarstiQ: ah, yes, I forgot the case where the destination is a superset of the push source.21:27
NfNitLoopawilkins: do they allow outbound ssh connections?21:28
NfNitLooponce you've got it copied to a personal server, you can always just keep work & home in sync via the network.21:28
awilkinsThat's one idea, but my upstream at home sucks and I don't really want to keep my power-hungry desktop running all day21:29
awilkinsBah, the pushes had succeded anyway21:29
awilkinsIt was just throwing errors about updating the push target on the branches that had none21:29
awilkinsI'm just going to manually start a bzr:// server on the laptop and bind heavy-co on the desktop to it21:30
NfNitLoopthat works.21:31
=== abentley1 is now known as abentley
fullermdStep 4 of http://article.gmane.org/gmane.os.dragonfly-bsd.kernel/12353 gives an amusing (well, to those not doing it) result of git's move heuristics...22:01
awmcclainIs it possible to configure bzr to automatically pass off conflicts to a user-defined shell command?22:01
fullermdDon't think so.  You could parse the output of 'conflicts' maybe...22:02
awmcclainfullermd: No conflict hook, I'm thinking, right?22:03
LarstiQI don't think so22:04
awilkinsWhat it really needs is an alternate-merge-hook22:04
awilkinsOr merge plugins22:04
awilkinsI'm doing it after the fact with a script and an external tool22:05
LarstiQmerge types at least are pluggable22:06
awilkinsIsn't that a "whole merge" thing?22:07
LarstiQawilkins, awilkins: what do you do in your scripts?22:07
LarstiQawilkins: yes22:07
awilkinsmerge ; check for conflicts ; for each conflict { try external merge tool } ; try auto-resolve ; check for conflicts ;if conflicts then gconflicts22:08
LarstiQah, ok22:09
awmcclainawilkins: Ooo... care to share your script?22:12
awilkinsawmcclain: It's powershell, that useful to you?22:13
awmcclainawilkins: Not really, but I could port it to bash.22:13
awilkinshttp://pastebin.ubuntu.com/88808/22:14
* LarstiQ could port that to python22:15
awmcclainawilkins: What's bzr qcommit?22:16
awmcclainawilkins: (Thank you, btw)22:16
awilkinsA command from the qbzr plugin22:16
awilkinsCommit with pretty interface22:16
awmcclainawilkins: Gotcah.22:16
awmcclainawilkins: "Quick commit? I want that!"22:16
awilkinsThere is some domain-specific fluff in there22:17
awilkinsOn looking, I also see optimizations peeking out at me22:18
awmcclainawilkins: Yeah, not too bad. What's BC3?22:18
awilkinsBeyond Compare 3  ; http://scootersoftware.com22:19
awilkinsPayware that I'm reasonably happy about coughing up for22:20
awilkinsonly $19 a seat, cheaper in bulk22:20
awmcclainAh yes.22:20
awilkinsWell, it used to be22:20
awilkinsBit more for the pro versions now22:20
cr3is there a way to upgrade my bzr branches on Launchpad: Format <RepositoryFormatKnit1> for bzr+ssh://cr3@bazaar.launchpad.net... is deprecated - please use 'bzr upgrade' to get better performance23:16
cr3nevermind, it seems that bzr upgrade over sftp should work23:30
spivcr3: bzr upgrade over bzr+ssh should work too, with a reasonably recent client.  (It won't be any faster than sftp, though.)23:36
cr3spiv: it went pretty fast over bzr+ssh, so I suppose that means my version isn't recent enough. it's been running for a while over sftp, so I'll just sit tight23:37

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