/srv/irclogs.ubuntu.com/2007/11/25/#bzr.txt

loswillioshah!01:09
* loswillios waits for james_w to appear01:10
nirWhat can cause this error on bzr merge ../other01:40
nirbzr: ERROR: [Errno 1] Operation not permitted01:40
nirboth branches are local, both owned by me01:41
nirI merge changes in main in the other branch, but I can merge changes from other in main01:42
nirsolved :-)01:47
nirOne file was locked (mac os x feature) I don't have any idea why01:48
niranyway, the error message is not helpful - it should show the path that failed01:49
lifelessnir: good point; its likely though that its an OSerror being raised rather than a bzr internal error that we can format and show useful data on01:51
lifelesswe can certainly fix this particular case if you can provide the traceback and info for reproduction01:51
=== Verterok is now known as Verterok_
minghuaHi, I wonder if there is a way to combine multiple commits into a single one when doing "bzr rebase".03:03
jelmerminghua: not at the moment, no03:04
minghuajelmer: Thanks.03:05
jelmerminghua: Why would such a feature be useful?03:05
minghuajelmer: I am a translator.  I commit my work every day.  But it makes little sense to push or send patch of multiple changes when the translation is sent to upstream.03:07
minghuajelmer: If you read the bottom of http://wiki.debian.org/Teams/Dpkg/GitUsage you'll see the Debian dpkg upstream developers require translators to combine their changes before pushing.03:08
jelmerminghua: that's specific to git though03:10
jelmerwhen upstream merges your changes with bzr, there is only one additional revision on mainline03:10
minghuajelmer: Yes.  That's why I am asking if bzr has something similar...03:10
jelmerminghua: I don't see how it clutters mainlines revision history with zbr03:10
minghuajelmer: Oh, maybe that's the case.  I am a quite new bzr user.  But I just did a "bzr rebase", and I got an empty commit for "merge from upstream".03:12
minghuaI did some translation changes in my branch, then I "bzr merge" with upstream, then I "bzr commit" as revision #n, finally I decided to do "bzr rebase".  And the revision #n is rebased as an empty commit.03:13
jelmerthere shouldn't be a reason to do a rebase at all there03:13
minghuaHmm.  Maybe there isn't.  I should just run "bzr diff" across two branches.03:14
jelmerin general, if you do a merge of upstream+commit there's no need for a rebase and vice-versa03:15
jelmerminghua: If you don't use rebase at all, you won't clutter upstreams mainline03:16
jelmerand there will simply be one revision in mainline where your branch was merged03:16
jelmerno matter how many revisions it has03:16
jelmer"bzr log" will then show your revisions indented below that merge revision03:17
jelmeror not at all, depending on what you ask it to show03:17
minghuajelmer: I see.  Thanks for the explanation.03:17
jelmerminghua: what are you trying to do exactly? Are you submitting a patch to dpkg?03:26
minghuajelmer: No.  I was doing man-db's translation work, and upstream uses bzr.  I did some small incremental changes to the translation.03:32
minghuaThere were also upstream changes in between, and I merge and commit them once in a while.03:32
minghuaToday I want to see how many changes I've made and what they are, so I did rebase, now all my local changes are on top.03:33
minghuaI'll probably send a patch to upstream since I can push into the upstream repo, but that's not really relevant to the discussion.03:34
minghuajelmer: So in summary, what I was trying to do is to see my changes over the past months (which are acutally on a single file).  "bzr diff" across two branches should do that.  It would be nicer to see them individually, though, and I don't know how to do that yet.03:36
jelmerbzr diff -c <revno> should show you the changes in an individual commit03:38
minghuajelmer: But that requires me to go through "bzr log" to get the revno of my commits, doesn't it?03:43
jelmeryep - you're looking for something that will present a concatenation of all those patches?03:51
jelmerI guess something like "for I in `seq FROM-REVNO..TO-REVNO`; do bzr diff -c $I; done" can do that, but I'm not aware of any command in bzr that can03:51
minghuaWouldn't that include changes I merged from upstream as well?03:52
minghuaI am looking for a way to see individual patches of my commits, and my commits only.03:52
jelmerahh, ok03:53
minghuaThen say if I'm doing both translation work and code changes, I may want to put all my translation changes in one commit to upstream, but separate the translation and the code.03:53
minghuaI admit that's quite a corner case, of course.  And I probably should use two different branches for that.03:54
radixare you trying to maintain a branch long-term?03:54
radixbecause indeed, you're probably much better off using specific, task-oriented branches.03:54
minghuaIt will be long-term if I don't have much time to work on it...03:55
lifelessminghua: rebase destroys history and collaboration; if you don't plan to collaborate on the translations, you can rebase safely. But if you plan to collaborate, rebasing is a significant negative.04:39
minghualifeless: No, no collaboration so far.  Thanks for the warning, though. :-)04:41
lifelessnp04:41
lifelessits a significant part of why rebase isn't a common workflow in bzr land; and one of the things I find most weird about the git culture04:41
minghuaI am from SVN land.  Both cultures are new to me, I am just trying to figure out what is the best way to construct my workflow.04:42
lifelessok04:43
=== cprov-lunch is now known as cprov
=== kiko-afk is now known as kiko
=== cprov is now known as cprov-away
datoif I `bzr pulled`, and then I decide eg. I pulled something I didn't want in my branch yet, is there a way to go back that isn't `bzr uncommit; bzr uncommit; bzr uncommit` ?13:18
fullermdpull from yourself at the chosen rev?13:22
dato`b pull -r 1284 --overwrite . ` did the trick, thanks fullermd13:23
loswilliosjames_w: hej13:41
loswilliosjames_w: I fixed it13:41
loswilliosturns out, /usr/lib/python2.4/site-packages/bzrlib was missing __init__.py and such stuff13:42
james_wloswillios: wow. good catch.13:46
loswilliosthe debian package is missing some symlinks here. manually symlinking the stuff works now13:56
james_wloswillios: you're running a backported version?13:58
loswilliosyep13:59
loswilliosbut the package in etch was missing the symlinks also (bzr-0.11, lol)14:00
loswilliosI begin to think, that something with this debian installation is wrong14:00
james_wit sounds like something funky might be going on with python-central14:00
datoloswillios: how are you installing the .deb?14:01
datoloswillios: the .deb itself won't have the symlinks, they are created at instalation time14:01
loswilliosyes.. they symlinked each file seperatly. symlinking the whole /usr/share/pycentral/bzr/site-packages/ to site-packages did the trick14:01
james_wdato: I believe he said aptitude yesterday.14:02
loswilliosdato: yeah, I thought so. with aptitude / apt-get14:02
datook14:02
ubotuNew bug: #165014 in bzr "IPv6 support" [Undecided,New] https://launchpad.net/bugs/16501416:10
jelmerlifeless: ping17:21
=== YGingras__ is now known as YGingras
=== abadger_afk is now known as abadger
=== abadger is now known as abadger1999
james_wjelmer: congratulations on your DM advocation.17:50
jelmerjames_w: thanks!17:55
=== weigon_ is now known as weigon
=== kiko is now known as kiko-afk
mwhudsonbzr: ERROR: Installed bzr version 0.93.0.dev.0 is too old to be used with bzr-svn, at least 1.0 required18:25
=== Verterok_ is now known as Verterok
mwhudsonjelmer: where do i get bzr 1.0 ? :)18:26
fullermdWe're keeping it in svn.  Just use bzr-svn to check it out...18:38
Odd_Bloke^_^18:38
mwhudsonheh18:39
jelmermwhudson: whoops :-) Fixed now, thanks.18:45
jelmermwhudson: btw, that bug you hit pushing pydoctor should be fixed now18:46
jelmermwhudson: although pushing should still be somewhat slow18:46
* mwhudson tries18:47
mwhudson"finding branches" is still pretty slow18:53
jelmermwhudson: yeah, I hope to fix that for 0.4.518:53
jelmerits result can be completely cached, with a little bit of work18:53
mwhudsonjelmer: will it get cached once it's completed?18:53
jelmermwhudson: bits of it, but not completely18:54
mwhudsoni see18:54
jelmerit uses svn metadata to find those branches and that metadata already gets cached18:55
mwhudsonpuh, conflicts19:15
jelmermwhudson: during svn push?19:15
mwhudsonyeah, but legitimate ones19:16
mwhudsonhow i wish svn had uncommit19:22
mwhudsonpushing again, let's see how that goes19:22
mwhudson!paste19:34
ubotupastebin is a service to post large texts so you don't flood the channel. The Ubuntu pastebin is at http://paste.ubuntu-nl.org (make sure you give us the URL for your paste - see also the #ubuntu channel topic)19:34
mwhudsonjelmer: hee! http://paste.ubuntu-nl.org/45816/19:35
mwhudsonradix: you are being mailbombed, sorry about that19:35
jelmer:-(19:36
jelmermwhudson: this is with subversion 1.4?19:36
mwhudsonjelmer: it's whatever's in gutsy19:37
mwhudsonjelmer: it looks like 11 commits actually ended up in svn though19:38
mwhudsonjelmer: i'm trying again after 'ulimit -c unlimited'19:39
lifelessjelmer: pong19:40
mwhudsonwth19:41
mwhudsoni accidentally ^Ced it19:41
mwhudsonand this: http://paste.ubuntu-nl.org/45819/ happened19:42
jelmerlifeless: 'morning19:42
jelmerlifeless: I was wondering if you could advocate my application to become a Debian Maintainer?19:42
lifelesssure19:42
jelmerIt should be a matter of replying to the thread in debian-newmaint19:44
jelmerhttp://lists.debian.org/debian-newmaint/2007/11/msg00157.html19:44
mwhudsonhi lifeless19:44
mwhudsonthere was something i wanted to ask you, but i can't remember what it was19:45
datojelmer: if you'd bounce him the mail, replying would keep the threading19:45
jelmerdato: good point - just did so19:46
lifelessmwhudson: :)19:52
samiammorning all19:57
samiamI have a really quick and possibly stupid question19:58
samiamis it possible to change a log entry for a commit, post-commit?19:58
samiamI just realized I had made an error and would like to correct it19:58
datonope.19:58
datobut if it's the last commit19:58
datoyou can `bzr uncommit` it19:58
datoand commit again, with a fixed message19:58
samiamgood point19:58
samiamit isn't the last19:59
samiamits no big deal, I just thought that this might come up from time to time and felt I should investigate now19:59
samiamits a single-user repo anyway19:59
samiamthanks dato19:59
mwhudsonat least in conception, bazaar revisions are totally immutable19:59
samiammwhudson: I had never really seen this capability in other vcs' so I thought I would ask just in case20:00
samiamtruthfully, that would be a really bad thing to have in a vcs, because you'd lose the integrity or value of the commit logs20:01
mwhudsonsamiam: right :)20:01
mwhudsonsamiam: you can use rebase in situations like this, if it's really important20:01
mwhudson(probably not for a commit message, tbh)20:01
samiamit isn't important at all20:01
samiamjust exploring bzr right now and using it for personal work20:02
mwhudsoncool20:02
samiamthanks for the feedback mwhudson20:02
mwhudsonnp20:03
* mwhudson stares at merge.py20:07
radixmwhudson: heh20:08
radixmwhudson: when are you going to start using bzr? :)20:08
mwhudson_jelmer: so that run got nixed by my machine crashing :)20:28
=== mwhudson_ is now known as mwhudson
jelmernot due to bzr-svn, I hope ? :-)20:30
mwhudsonjelmer: don't think so :)20:30
abentleyhey mwhudson, how goes?20:41
radix_there's_ the spam :)20:49
radixmwhudson: use Launchpad!20:50
fullermdHm.  I think progress bars on check are a little squirrely.20:54
lifelessradix: mwhudson is using bzr. merge.py is in the guts20:54
fullermdUnless checking versionedfile 0 really does take about 10 times as long as the other 200-some, I suspect it's doing something other than it claims at that time.20:55
lifelessfullermd: enumerating the versionedfiles requires a table scan in packs20:55
fullermdI'm using good old-fashioned knits.20:56
lifelessah, then its disk IO20:56
fullermdAll in cache.20:56
lifelessbleh20:56
lifelesshit ctrl-\ and type bt CR20:56
fullermdpython's getting 100% CPU while it's doing whatever it's doing there...20:56
fullermdInner frame at the bottom?20:57
lifelessyes20:57
lifelessbut look up the stack for the relevant function names20:57
fullermdSeems to be spending a lot of time in xml_serializer stuff.20:59
lifelessso look up20:59
lifelesssome function will probably have iter or some hint in the name20:59
fullermdSeems to be mostly in repository._generate_text_key_index()21:00
fullermdIt probably spends about 20 seconds in that versioned file 0/xxx on a branch where check runs in under a minute.21:00
lifelessok21:01
fullermdLemme halt it a couple times for a sampling...21:01
lifelessso that is scanning all the inventories21:01
lifelessit's meant to do a progress bar for that21:01
lifelessbut it's reasonable for it to be expensive, its the dominating data structure of bzr21:01
fullermdIt seems new, though.  Nowhere near that much time elapsed between the revision checking and versionedfile checking last week or so.21:03
fullermdIt used to just start counting as soon as it was in versionedfile.21:03
fullermdA few samplings within the process: http://paste.ubuntu-nl.org/45844/21:07
mwhudsonradix: >:)21:07
mwhudsonabentley: good thanks, about to have dinner21:08
fullermdWait, "unreferenced text versions" can't possible be right.  It's within 1% of total revisions * file-ids; that's more texts than should exist period.21:11
abentleylifeless: The thing about KindChange is that it must appear in the list at the end, and diff_text must be second.21:15
luislavenahello guys.21:15
lifelessabentley: KindChange I can understand; why Text ?21:15
lifelesshi luislavena21:15
luislavenaquick question: anyone using bzr-gtk on windows?21:15
luislavenahi lifeless21:15
lifelessfullermd: have you reconciled this repository with 0.92 or bzr.dev ?21:15
lifelessluislavena: I know people have managed to get it to work, and bzr-tortoise incorporates parts of it21:16
abentleyDifftext must be second-last, because it's a catch-all.  If it's early, more specialized diffs will never be used.21:16
luislavenalifeless: I'm using Olive without problems, but the diff it generates aren't colorified :P21:16
lifelessabentley: I don't think it has to be second-last. I think it has to be after anything else that would diff the same files21:17
lifelessabentley: same with DiffSymlink21:17
lifelessabentley: if I had a variation on that, I have to put it before DiffSymlink21:17
lifelessabentley: in fact, *all* of these have an ordering. I don't think there is a problem in allowing a certain amount of rope though :)21:18
abentleyYes, but diff_text is an instance and can't appear in the factory list at all.21:18
abentleySo it must either appear before all registered factories (disaster) or after (safe).21:19
abentleyAnd KindChange must appear after diff_text.21:19
fullermdlifeless: Yep.  http://paste.ubuntu-nl.org/45846/21:19
lifelessabentley: oh; I must have glitched on this. I thought it would still be a factory21:20
lifelessabentley: let me check the patch again21:20
abentleyNo, its construction depends on what parameters are passed to show_diff_trees.21:20
ubotuNew bug: #165061 in bzr "bzr branch http:// with a pack repository takes too long" [High,Triaged] https://launchpad.net/bugs/16506121:20
=== kiko-afk is now known as kiko
lifelessabentley: so the old and new label parameters seem applicable to all Diff classes21:22
abentleyI don't think they are.21:22
lifelessabentley: and the internal_diff parameter is indeed a touch tricky21:22
abentleyIt's purely a unified diff formatting quirk.21:23
abentleyIt's so that patch -p1 works.21:23
lifelessabentley: they change the path prefix don't they ? we should be showing that on e.g. symlink changes too21:23
abentleypatch can't understand symlink changes.21:23
lifelessthats true21:23
lifelessbut humans will be weirded out by something like:21:24
abentleyWe've never used them for anything except unified diff formatting.21:24
lifelessold/text   new/text21:24
lifeless...21:24
abentleyWe don't use them in the === modified message.21:24
lifelessbase/link  changed/link21:24
lifelessoh hmm21:24
lifelesswell.21:24
lifelessLike I said, if you don't agree - and it seems like there is good reason that its not trivial to do the entire thing I suggested, its fine as is21:25
lifelessI still think having Diff.__init__(self, a_diff_tree): would be good21:25
abentleyOkay.  So now we let poolie decide whether it's 1.0-worthy.21:25
lifelessbecause it opens the door to doing the rest later with less of an API change21:25
abentleyI've done that change.21:26
lifelesssweet21:26
abentleyOr rather, I created a real factory.21:26
lifelessI'm confused. Do you have a further tweak beyond your latest mail?21:26
abentleySo that we can still construct the Diff classes in a straightforwardway.21:26
abentleyI have a further tweak, if we want it.21:27
abentleyBut it doesn't allow us to put DiffKindChange in the factory list, which was the reason for your suggestion.21:28
lifelessright21:28
lifelessDo you think it looks nice other than that? If so, lets do it.21:28
abentleySure.21:28
lifelessI'll be on the phone with poolie in 1.5 hours21:29
lifelessI'll raise this patch to his attention if it's not already there.21:29
lifelessbrb21:29
=== me_too is now known as too_short
=== too_short is now known as me_too
lifelessluislavena: I would suggest filing a bug on bzr-gtk21:31
luislavenalifeless: I'm googling for something like this before, maybe I missed something, but guess not.21:32
cbx33hey all21:34
lifelesshi21:35
luislavenacbx33: hi21:35
cbx33hi luislavena21:35
luislavenalifeless: done, there is no info about this on the web, so submited a new bug report to bzr-gtk team. thank you.21:44
abentleyfullermd: versionedfile data and the inventory data are stored along different axes.  So doing the first versionedfile requires reading most inventory revisions.  That data's then cached.21:49
lifelessabentley: my lower memory reconcile changed check too21:50
fullermdWell, but it seems new, though.  It used to just count up through the revisions, then count up through the vf's, without the big pause there.21:50
lifelessabentley: so it no longer incrementally generates a inventory->text cache at all.21:50
lifelessfullermd: it should be faster overall21:50
fullermdThat might do it.  When the vf numbers do start counting, they seem to go a lot faster than they used to.21:50
lifelessfullermd: if you run check with -v you should get a list of the text versions that are not referenced21:51
lifelessfullermd: and we can dig into why they are not being cleaned up21:51
fullermdIt's not the existence; it's the wildly extreme number.  I don't recall doing anything special in the history of these branches; there shouldn't be that many texts ever existing, much less unreferenced.21:53
fullermdThere were some uncommits or discarded branch revs, but those would still be ref'd, AIUI.  And this is a fresh branch, so it wouldn't bring those along.21:55
fullermd-v doesn't output anything different.21:55
datojelmer: that was fast, eh? (re joeyh's mail)21:55
lifelessfullermd: ok thats weird. Is this a repo I can get access to ?21:56
fullermdProbably not...   I can make a nothing-branch that starts showing up unref'd text versions, though...21:58
lifelessfullermd: if its in the same repo thats why22:00
fullermdNo, in a fresh standalone.22:01
jelmerdato: wow, that /is/ fast22:01
dato:)22:02
fullermdlifeless: http://paste.ubuntu-nl.org/45848/22:02
fullermdlifeless: It seems to need the second file; just stuffing text in foo and committing more revs doesn't make it show up.22:04
lifelessdato: what happened ?22:04
lifelessfullermd: blarh. please file a bug22:06
lifelessfullermd: (I reproduced it, just need a note to track it)22:12
* fullermd nods.22:12
fullermdProbably a check bug, and not that we're actually making extra texts?22:12
datolifeless: he was already added to the debian-maintainers keyring22:14
fullermdFiled.22:14
lifelessdato: rofl22:19
ubotuNew bug: #165071 in bzr "check reports spurious unreferenced texts" [Undecided,New] https://launchpad.net/bugs/16507122:21
jelmerhmm, the quick reference doesn't contain any info about "22:31
jelmerbzr send"22:31
jelmerI wonder whether that should be considered a bug?22:31
lifelessjelmer: yes23:05
sdhcan anybody tell me a good resource to learn how to use bzr in a mixed-type environment23:09
sdhso i have a central repos, and can branch onto my laptop, say, commit there, then commit all back later?23:09
sdhe.g. when on plane23:09
sdhprobably not explaining well :)23:10
lifelesssdh: the tutorial probably is enough23:10
sdhlifeless: just realiesd that wasn't one of the docs i read, heh. thanks. :>23:11
lifeless:)23:12
lifelessplease do ask for more details and hints once you've given it a shot23:12
sdhthanks... i did read lots... of blog posts ;)23:12
sdhso far today i've tried git, hg and now bzr... bzr "feels" good so far :)23:13
lifelessexcellent23:13
sdhi watched a video of linus talking about git at google and learnt two things23:14
sdh1) git is supposedly fast23:14
sdh2) linus is even more arrogant than i thought23:14
sdh:)23:14
fullermdPfft.  Obviously, you are Ugly And Stupid   :p23:15
sdhhaha, that's the one ;)23:15
ubotuNew bug: #165080 in bzr "Quick Start Guide doesn't document "bzr send"" [Undecided,New] https://launchpad.net/bugs/16508023:21
sdhis there a way to push to the parent branch without specifying it explicityly?23:44
sdhexplicitly, even23:44
abentleysdh: just "bzr push".23:50
abentleyThat will push to the remembered branch.23:50
mathrickhiya23:50
abentleyWhich is actually a different location.23:50
abentleyBut you don't have to specify it explicitly each time.23:51
mathrickwhat is the right foo to get a working tree in a treeless branch?23:51
sdhit didn't work for me, i got:23:51
abentleymathrick: bzr checkout .23:51
sdhoh it works after the first push :)23:51
abentleysdh: right.23:51
sdhthanks23:51
abentleysdh: np23:52
abentleymathrick: or on recent Bazaars, "bzr reconfigure --tree".23:52
mathrickoh, already checkouted :)23:52
mathrickand yes, it's 0.93, so recent23:52
fullermdMmp.  We probably need a good section in the docs on reconfig (and that alias).  I like to think I have a reasonable knowledge of bzr, but I couldn't guess what "Reconfigure to a tree" means.23:54
mathricksmall inconsistency: bzr status takes -V, but bzr ls doesn't23:57
mathrickyou have to use --versioned23:57
lifelessmathrick: yah, IIRC we put -V in for ui friendliness with svn23:59
mathrickit's a good alias23:59
lifelessplease file a bug about -V for ls23:59

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