/srv/irclogs.ubuntu.com/2009/12/29/#bzr.txt

NfNitLoop()!&*(ULWDJKFW.   Apparently git-svn doesn't always create the same commit IDs for things it's mapped from svn.02:37
NfNitLoopgaaaah.02:37
NfNitLoopI'm just going to have to fix bzr & bzr-svn to work with my repo, git-svn is making me want to stab someone. :p02:38
NfNitLoopOh.  Wow.  That was way easier than I thought.02:50
NfNitLoop1-line change in bzrlib.   2-line change in bzr-svn.  Now I can check out my repo with files with backslashes in it. :D02:51
fbondHi.  Why does bzr init recursively scan the contents of the directory I run it in?03:36
fbondThis directory happens to contain a huge tree of files that I'm not interested in versioning, so init looks like its hanging.  strace showed me why.03:37
gutworthit assumes you want to version them :)03:37
fbondI would think that that wouldn't happen until I run bzr add.03:37
NfNitLoopHrmmm.   Odd.   'bzr branch <svn-branch>' gave me a 2.3GB directory.04:17
NfNitLoopa bit larger than the svn or git checkouts.04:18
NfNitLoopso then I bzr init-repo, and branch that branch into the shared repo.04:18
NfNitLoopand magically it's reduced to 1.4GB.04:18
NfNitLoopweeeeeird.04:18
spivNfNitLoop: 'bzr pack && rm .bzr/repository/obsolete-packs/*' would probably have the same effect.04:26
spivNfNitLoop: the bzr-svn import works incrementally (1000 revisions at a time) rather than doing it all in one transaction, and the reduces the effectiveness of the automatic packing (in the short term).  The tradeoff is that if the import is interrupted it can be resumed, rather than needing to redo from start.04:27
spiv(Also some of the obsolete packs won't have been cleared out by the autopacking.)04:29
NfNitLoopaaaah.  Yeah, I'd tried a pack but didn't rm obsolete-packs.04:32
NfNitLoopit's nice.  a bzr-svn branch with full history is smaller than my svn checkout. :D04:32
spivNfNitLoop: :)04:36
NfNitLoopSo.  To get this to work with my repo, which includes a file in its history with a \...04:36
NfNitLoopI had to remove checks for that character in bzrlib and bzr-svn.04:36
whitleyhi all.  I'm looking at the ignore tests (test_ignores.py, per_workingtree/test_is_ignored.py) and don't see any tests for '**/ignoreme.o' patterns or regexp patterns.04:36
NfNitLoop3 lines changed total.04:36
NfNitLoopShould I put those on launchpad?   Wondering what the ... ettiquette is there.04:37
NfNitLooper.  etiquette. :p04:38
spivNfNitLoop: oh04:43
spivNfNitLoop: so, that check is unfortunately intentional04:43
spivNfNitLoop: It's true that the current format is technically capable of representing it safely, but there are interoperability issues with other versions of bzr and other formats that meant to have identical capabilities.04:44
spivNfNitLoop: so unfortunately it's not as easy as a 3-line patch04:45
spivNfNitLoop: and you will probably have issues if you use an unpatched bzr on this repo.04:45
spivNfNitLoop: If the filename with the \ only exists in pretty old revisions, you might be able to safely do something like construct a repo that omits all revisions at and before that point04:47
spiv(i.e. those revisions would be a 'ghosts' in our jargon)04:47
spivNfNitLoop: that would preserve all the same revision and file-ids, so bzr-svn would keep interoperating pretty happily unless you tried to access those old revisions.04:48
NfNitLoophow do you do that?04:48
spivNfNitLoop: I think you'd need a script or a plugin to make that happen, post to the list and I'm sure someone can throw one together for you04:48
NfNitLoopoh.04:48
spivNfNitLoop: unfortunately I don't have time to do so right now :/04:48
spivNfNitLoop: good luck04:49
* spiv -> afk04:49
NfNitLoopHrmm, I don't quite understand what you mean by "interoperability issues with other versions of bzr and other formats that [are] meant to have identical capabilities".04:50
=== abentley1 is now known as abentley
NfNitLoopI know that an unpatched repo might see the \ and throw an error.04:51
NfNitLoopBut that's fine by me.  I just want to use bzr wih my svn repo. :p04:51
=== rockstar` is now known as rockstar
NfNitLoopHrmm.06:31
NfNitLoopI seem to have accidentally pushed a repository onto the root of my shared repository.06:31
NfNitLoopIs there a way to undo that?06:31
bob2pushed a /branch/ onto the root of your shared repository?06:46
bob2if so, I think it is safe to just rm ~/repo/.bzr/branch06:48
NfNitLoopah, ok, thanks!07:10
bob2(backup first of course :)07:10
NfNitLoopthat did it. :p07:14
visik7how can I pick a commit made on a branch and put it in another branch ?10:41
hmeland_visik7: Do a "cherrypick merge"; see the 81..82 example in "bzr help merge".10:50
visik7ok thanks10:50
abeaumont_is there any way to join a bzr-svn subtree in a bzr tree?13:08
nomatter001hi13:31
nomatter001is it somehow possible to get the working tree populated on an central server13:31
nomatter001so that with a push i also get the working-files there?13:31
Pilkynomatter001: I believe there is a plugin that does a push and checkout13:34
nomatter001Pilky: but a checkout doesn't do anything for me13:34
Pilkynomatter001: https://launchpad.net/bzr-push-and-update/13:34
nomatter001Pilky: the files are still just locally13:34
Pilkyyeah you need to checkout the remote branch to the server13:35
nomatter001Pilky: how do i do that?13:35
Pilkyand then after each push update the working tree on the server13:35
nomatter001Pilky: on the remote server is no bzr installed13:35
Pilkyif your server is http://foo.com/repo then13:36
Pilkybzr checkout http://foo.com/repo http://foo.com/repo13:36
Pilkyor however you access it13:36
Pilkyeither way you checkout the branch to the branch location13:36
nomatter001Pilky: my problem is that i created the branch locally13:37
Pilkybut you've pushed it to a server?13:37
nomatter001Pilky: yes13:37
Pilkywell that's a copy of the branch on that server13:37
nomatter001Pilky: but now, how do i also get the working-tree onto the server?13:37
Pilkyby checking out the branch on the server, to a location on the server13:38
Pilkyare you coming from subversion to bzr?13:38
nomatter001Pilky: i used svn a lil bit but i'm generally a beginner13:38
Pilkyright, well think of it like this13:39
Pilkyyou have a branch, which you can think of as a blob which contains the full history13:39
Pilkyif you push a branch somewhere then that is copied (unless it is stacked but we won't get into that)13:39
Pilkyso there are two independent copies of the branch now13:39
Pilkyif you delete the branch from your machine then the one on your server still exists13:40
Pilkya working tree is basically the physical files that you can work on13:40
Pilkyin order to get a working tree from a branch that doesn't have one13:40
Pilkyyou need to checkout that branch13:41
Pilkywhich basically pulls the files out of the blob that represents your history and creates the individual files on disk13:41
Pilkythat make sense?13:41
nomatter001yes13:44
nomatter001but how do i checkout the branch in itself on the server13:44
nomatter001so that i have basically the same on the server as on my local disk13:45
Pilkywell you just do what I said, at the moment your branch that has been pushed has no working tree so you need to checkout it out to the location of the branch so you do13:45
Pilkybzr checkout urltobranch urltobranch13:45
Pilkythat will checkout the remote branch to the location of the remote branch13:45
nomatter001ok thx i'll try13:46
Pilkythen every time after that, after you push to the remote branch13:46
Pilkyyou need to update the remote branch too13:46
Pilkybut if you use this push and update plugin (https://launchpad.net/bzr-push-and-update/) then every time you push, update will be called for you13:47
nomatter001now i do get: sfp://... is not a local path13:47
nomatter001so the checkout from remote to remote doesn't work13:47
Pilkyhmm, not entirely sure then, I mean I haven't done this myself but theoretically from the commands it should work13:48
Pilkyyou'll probably be best askign one of the bzr devs13:49
nomatter001Pilky: ok but how do i get to them?13:49
Pilkyit seems jam wrote the push and update plugin, but he isn't online at the moment13:49
Pilkyjust look for people with these nicks: http://wiki.bazaar.canonical.com/IrcNicks13:50
__monty__Can anyone tell me where ~/.bzr.log is written, in what module?14:02
nomatter001Pilky: ok ic14:04
nomatter001Pilky: thx so far14:05
__monty__I understand that ~/.bzr.log is referred to as _trace_file in bzrlib, is this correct?14:38
NfNitLoopnomatter001: Populating remote working trees isn't supported generally.15:07
nomatter001NfNitLoop: so there is no way to do it?15:17
NfNitLoopyou can log in to the remote machine and do 'bzr checkout .' to create a working tree.15:18
NfNitLoopthere may also be an option to push these days?  Let me check...15:18
NfNitLoopyep, `bzr help push` says:   The target branch will not have its working tree populated because this is both expensive, and is not supported on remote file systems15:19
nomatter001NfNitLoop: so it's impossible?15:23
nomatter001NfNitLoop: that it's expensive doesn't bother me15:23
NfNitLoopwith bzr, yes.  There are other tools that are more efficient for copying files.  rsync/scp...15:23
rubbsnomatter001: I'm not sure what you are looking for but if you go to http://wiki.bazaar.canonical.com/BzrPlugins and look under publishing, it gives some plugins that can push and update remote dirs.15:23
NfNitLooprubbs: Oh!  Good to know.15:24
rubbsno prob.15:24
rubbsit's not a part of the core because of too many problems supporting remote systems. but if you have ssh access you can use most of the plugins IIRC15:25
NfNitLoopnomatter001: I think one of the reasons it's avoided is that it gets complicated fast if there are changes in the remote files, which requires doing merges, possibly including conflicts.15:25
NfNitLoopso you basically need to *read and write* the entire remote filesystem to do it safely.15:26
rubbsnomatter001: I think automirror might be what you are looking for: http://doc.bazaar.canonical.com/plugins/en/automirror-plugin.html15:27
rubbsnomatter001: if your looking to just upload the working dir and not worrying about all the history then check out "upload": http://doc.bazaar.canonical.com/plugins/en/upload-plugin.html15:28
krisivesDo we have a formal retort to http://whygitisbetterthanx.com ?15:36
NfNitLoophttp://doc.bazaar.canonical.com/migration/en/why-switch-to-bazaar.html15:37
NfNitLoopThere's that.15:37
NfNitLoopyeah, I read "why git is better than X" a while back and rolled my eyes at a lot of them.15:38
rubbsIt seems to be out of date.15:40
rubbsit doesn't list what versions of each system they tested on.15:40
rubbsbzr doesn't seem to be that slow anymore15:40
krisivesNfNitLoop: Agreed15:41
krisivesIMO git is more complicated15:41
NfNitLoopWAY more complicated.15:43
NfNitLoopI was just lamenting in here yesterday about having to use git-svn for something.15:43
rubbsI also think that some of it is just wrong. like git's branching model is similar to the repo idea that bzr uses. No multiple directories with the same history or anything15:43
=== gutworth_ is now known as gutworth
NfNitLoopI wanted to push my changes into a branch.  So I had to tell git where my svn branches were.  So it re-fetched all of svn history.  And gave everything *new commit IDs*.  Which meant my existing branch was no longer related to where I wanted to push it.15:44
NfNitLoopso I got to go become an expert in their rebase command to try to fix it.  >.<15:44
NfNitLoopwhereas with bzr-svn it would've just been "bzr svn-push <new-branch-location>"   <315:45
=== beaumonta is now known as abeaumont_
__monty__Where is ~/.bzr.log written?17:02
gutworthwhere in the code base?17:03
__monty__Yeah17:03
gutworthbzrlib/trace.py I believe17:03
fbondHow can I get bzr stats to map e-mail addresses to something more useful than "Unknown"?17:03
__monty__gutworth: Is .bzr.log written in mutter?17:04
gutworthI don't know, is it :)17:05
gutworth?17:05
NfNitLoopHrmm, I always forget.  How do I log "patches in this branch not in OtherBranchX?"17:08
gutworthbzr missing17:08
NfNitLoopaha, thanks. :)17:09
NfNitLoopI always try to fool with `bzr log -r <wacky Revisionspecs>`17:09
__monty__gutworth: If you want to know, I think .bzr.log is written in push_log_file() , I don't really understand what mutter() does yet.17:12
gutworthI see _trace_file.write() in mutter()...17:14
__monty__You're right.17:15
__monty__But _trace_file originates from push_log_file()17:15
__monty__gutworth: I'm trying to solve this error: https://bugs.launchpad.net/bzr/+bug/257170 ; Am I looking in the right place?17:21
ubottuUbuntu bug 257170 in bzr "log does not record bzr version" [Low,Confirmed]17:22
gutworth__monty__: well, the arguments are printed in commands.py17:26
__monty__gutworth: How did you find that, grepping?17:28
gutworthno, I remember17:30
__monty__gutworth: Why is there a while loop instead of a for loop in run_bzr()?17:39
gutworthbecause it skips args in the loop17:39
__monty__Can't you do that with for?17:41
gutworthno17:42
gutworthwell, I suppose, but it would be uglier17:42
__monty__gutworth: What do you think about this: http://python.pastebin.com/d9ad1c1a ?17:58
gutworth__monty__: it's ugly18:04
gutworthand not flexible18:04
__monty__:-(18:05
__monty__What are your criteria?18:05
gutworthwhy do you care so much?18:05
__monty__I don't really do.18:06
__monty__gutworth: Where should I print the version number in .bzr.log?18:15
gutworthbefore the arguments?18:17
__monty__bzr arguments: [u'VERSION', u'...', u'...'] like this, gutworth?18:29
jwhitleyhi all, I'm not finding any tests for '**/...'  or regexp ignore patterns.  Am I just missing them, or do they need coverage?  not in test_ignores.py or test_is_ignored.py18:36
jwhitleyI'm about to start working on https://bugs.launchpad.net/bzr/+bug/428031, and can add tests for those cases while I'm at it...18:37
ubottuUbuntu bug 428031 in bzr ".bzrignore should support exclusions" [Medium,Confirmed]18:37
jwhitleyor perhaps I'll put it another way: is there some notable obstacle to having test_ignores/test_is_ignored cover '**/...' or regexp patterns?18:43
gutworth__monty__: like that18:45
gutworthjwhitley: can't hurt to have more tests18:46
__monty__gutworth: So I just add the version as if it's an argument?18:46
=== abentley1 is now known as abentley
gutworth__monty__: how about the line before18:46
__monty__gutworth: Bazaar version: x.x.x ?18:48
gutworthsure18:50
__monty__And in which function, module should I put it?18:50
gutworthhow about above bzr arguments?18:51
__monty__?18:51
jwhitleygutworth: right, then.  I'll have a go at fixing up ignore test coverage while I'm at it...18:52
gutworth__monty__: in commands.py18:53
__monty__gutworth: right above trace.mutter(...) ?18:54
gutworthyep18:55
__monty__gutworth: And I do this via a call to trace.mutter() ?18:56
gutworthyes18:57
jwhitleyah, test_globbing has the ** and regexp coverage, but not related to ignores.18:57
__monty__gutworth: To retrieve the bzr version, can I use bzrlib.__version__19:06
__monty__?19:06
gutworthsure19:07
Peng__monty__: Yeah, using bzrlib.__version__ or bzrlib.version_string (which are completely equivalent) is standard practice.19:25
__monty__I get '2.1.0dev5' if I print bzrlib.__version__ , this is correct right?19:26
Peng__monty__: Uh-huh.19:31
__monty__Peng: If I wasn't clear enough, the dev... is only printed for my version, not for every version right?19:32
Peng__monty__: Alphas, betas, release candidates and releases are indeed different.19:34
__monty__Peng: Could you check my solution to this: https://bugs.launchpad.net/bzr/+bug/257170 ?19:35
ubottuUbuntu bug 257170 in bzr "log does not record bzr version" [Low,Confirmed]19:35
Peng__monty__: I'm not qualified to review tests, but sure.19:36
__monty__How can I make a diff of my change? (it's only one line so I could just write it here)19:37
Peng__monty__: Well, "bzr diff".19:38
__monty__Peng: And I just copy the output?19:38
gutworthpush a branch19:39
PengYeah. You'll have to do that eventually anyway.19:40
__monty__To launchpad?19:40
gutworthyes19:41
PengOr you could push it elsewhere and then have LP mirror it, but not many people bother with that. :D19:41
gutworth__monty__: have you read http://doc.bazaar.canonical.com/developers/?19:42
__monty__Partly19:42
__monty__Should I push to lp:username/bzr/giveback, or .../giveback/somedescriptivenamehere ?20:02
NfNitLooplp:~username/bzr/descriptive-branch-name-but-not-too-long-like-this-one20:03
NfNitLoop;)20:03
NfNitLoopjust from what I've seen.20:03
NfNitLoopmaybe an actual dev has other preferences.20:03
__monty__So no 'giveback' as suggested in HACKING.txt ?20:03
NfNitLoopoh.  Ignore me then. :)20:05
gutworthit doesn't matter hugely20:05
__monty__NitLoop: I was just asking to be sure.20:06
__monty__gutworth: What is the custom?20:06
Peng__monty__: Look over https://code.launchpad.net/bzr to see what other people do.20:07
Peng__monty__: The custom is to name it something descriptive and useful to you, like "log-bzr-version" or somesuch.20:07
Peng__monty__: Some people like to include the version number it's intended for in the branch name.20:08
NfNitLooplooks like some others include the bug number.20:08
PengAh, right, forgot that.20:08
NfNitLoopbut that's a bit redundant since you can tie it to a bug.20:09
NfNitLoopvia launchpad.20:09
PengBTW, you can do "bzr commit --fixes lp:1234" to add a little meta data tying the revision to the bug.20:09
NfNitLoopooooh, cool.20:09
PengIt's not actually very *useful*, though. But LP's branch scanner will automatically link the branch and bug together when it comes across it./20:10
__monty__So I just do a commit --fixes lp:257170 to link the branch to this https://bugs.launchpad.net/bzr/+bug/257170 ?20:11
ubottuUbuntu bug 257170 in bzr "log does not record bzr version" [Low,Confirmed]20:11
rubbsyes20:11
rubbsit will link up to that bug...20:11
__monty__Ok, thanks.20:11
rubbsso when you view the bug on lp you can see "related branches"20:11
rubbsalso if you are on the branch's page, you can see linked bugs20:12
__monty__I get 'pointless commit' if I do a commit --fixes lp:257170 , what should I do, commit --unchanged ?20:16
gutworthhave you made any changes?20:16
gutworthgenerally you commit the --fixes with any change you've made20:17
__monty__I already commited my changes.20:17
Peng__monty__: it's not worth trying to retroactively do it, then.20:17
Peng__monty__: But you should keep it in mind for the future. :)20:18
__monty__Oh ok20:18
PengHonestly, I forget --fixes most of the time. :)20:18
rubbs__monty__: Peng is correct. It's not worth retroactivly doing, but you do --fixes at the commit.20:18
__monty__Should I propose my branch for merging?20:24
Peng__monty__: If it's ready, yes.20:26
__monty__It solves the 'bug' so I believe it's ready.20:27
__monty__What should the Target Branch be?20:31
Peng__monty__: What is it a branch of? lp:bzr, lp:bzr/2.0? Whichever.20:32
Peng__monty__: I mean, the target branch should be what it's a branch of.20:32
__monty__Should the 'Cover letter' be written in Initial Comment ?20:37
__monty__And what should I enter in Reviewer and Review type ?20:46
Peng__monty__: For reviewer and review type, just go with the default.20:53
Peng__monty__: for the cover letter, um, yes?20:53
__monty__And review type may be empty?20:53
Peng__monty__: That's the default. :D20:54
rubbs__monty__: yeah, just put in your cover letter in the initial comment section. the reviewer and reviewer type can be left blank because you are not a reviewer. They are not manditory fields21:00
__monty__Thanks everyone for all the help. :-)21:05
__monty__Goodnight.21:05
rubbsnight21:08
__monty__One more question, how do I create a patch with bazaar?21:09
rubbs__monty__: do you mean like diff? you can use -p and specify old and new file names to create a patch.  see "bzr help diff"21:12
__monty__Ok thank you.21:12
Peng__monty__: "bzr send" can create a merge directive, which includes all of the metadata as well.21:12
Peng__monty__: If you're talking about a Launchpad merge proposal, LP will create a diff automatically.21:12
__monty__It's to add a comment to the page of the bug with the patch.21:13
rubbsnot neccissary. LP will do that for you21:13
__monty__Oh, ok21:14
rubbsNecessary*21:14
__monty__Well, goodnight then.21:14
rubbsnight.21:14
Peng_ -- darn, left.21:15
rubbshaha.21:15
PengI was just gonna say "good night".21:16
PilkyPeng: how rude of you not to ;)21:16
* Peng cries21:16
PilkyPeng: don't worry, you can say good night to me when I go offline21:19
Pilkythough that won't be for another few hours, spending the evening in photoshop21:19
PengPilky: Pre-emptively, "Good night, Pilky".21:20
Pilkyshame monty left though, what I'm working on might have interested him21:21
Pilkyhttp://dropbox.mcubedsw.com/skitchpics/BazaarX%20Commit.png21:21
rubbsPilky: that's pretty nice looking... what is it?21:22
Pilkymockup for BazaarX, a bzr GUI I'm making for the Mac21:23
PilkyI've restarted the project enough times already21:24
PengNext someone needs to make a GUI for the iPhone. ;D21:24
Pilkyso I'm going through and mocking up the entire UI before I write any more code21:24
Pilkyannoyingly just as everyone on the Mac is switching to Bzr, Git or Hg, there were two really good GUI clients for Svn released so I'm wanting to build an open source client of a similar calibre21:25
rubbsPeng: you may be joking, but I thought about the possibility of at least a diff and log checker for my Android phone. Might even do it too21:25
Pilkyfor comparison: http://www.versionsapp.com/ and http://zennaware.com/cornerstone/21:26
PilkyPeng: doubt it would be that useful :p21:26
rubbsPilky: gotcha. sounds like a good idea. If I had a Mac to play on I'd thikn about helping out. but alas.. :(21:26
PilkyiPhone optimised UI for launchpad though21:26
Pilkythat would be useful21:26
Pilkymight try it when I start my crazy rocketship project21:27
rubbsagreed... a mobile version of lp could be very useful.21:27
Pilky(I'm going to be building an alternate UI for launchpad)21:27
Pilkywhich I swear is the last open source project I'm going to commit to, otherwise I won't have time to work on the code that brings in the money :p21:28
PengPilky: Get Canonical to hire you. ;-D21:28
Pilkyheh, well these are mostly side projects that I'm doing to help my main stuff21:29
NfNitLoopPilky: Heh.  that screenshot's so nice I wanted to grab the sliders and play around with it. :p21:55
Pilkyheh21:55
NfNitLoopI do so little development on my mac, though...21:57
NfNitLoopI mean, I'll be typing on my mac.21:57
NfNitLoopbut it's into an ssh session somewhere else.21:57
Pilkyheh21:57
NfNitLoopThe only local dev. work I do is on my linux box here at work.21:58
Pilkywell all my dev work is done on my mac so a desktop client for bzr would help me a lot21:58
NfNitLoop*nod*21:58
NfNitLoopMostly I was just QQing that I wouldn't get to use it. :)21:58
=== khmarbaise_ is now known as khmarbaise
Pilkywell it likely won't be finished for a long time :p22:00
Pilkyat the moment it is just consisting of mockups22:00
NfNitLoopaah.22:00
Pilkyanyway, time to get offline for the night22:05
PilkyPeng: if you want to do the honours :p22:05
PengPilky: Good night. :D22:06
=== Helheim_ is now known as Helheim

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