=== elmo_ is now known as elmo === bradm_ is now known as bradm === Jordan_U_ is now known as Jordan_U [07:06] happy pre-morning all [07:07] Oh no, not another one. [07:10] fullermd: they come once per day, dude [07:12] he can always hope, some day that may change. [07:13] I've devoted my life to the erradication of this horrific scourge upon mankind. [07:59] How can I get currently checked out revision (HEAD in git, . in mercurial, BASE in svn)? === RenatoSilva is now known as Pikkachu [09:52] hi vila? [09:53] poolie: hey ! [09:53] hey, thanks for your reply about orphans [09:53] mypleasure [09:53] i was just going to ask the same question as bialix, about whether/why this isn't linked in to the main doc tree [09:53] oops, didn't say hi :-} [09:53] also, whether your mail is a vote against changing the default [09:54] surely not, my vote is (and always been) to turn it on :) [09:54] it has been in my bazaar.conf since day one [09:55] ok [09:55] and about linking to the main doc tree, yeah, it's on my radar to link all config option helps there but I haven [09:55] i have a branch [09:55] i was going to add some docs to the user guide too [09:55] and about linking to the main doc tree, yeah, it's on my radar to link all config option helps there but I haven't looked at how this should be achieved [09:55] there is a bug titled 'config doc is ugly' or something [09:56] that I think about as a way to track that [09:56] the most important part was to *have* a doc for each option which has been going pretty well since we started to migrate [09:58] yeah [09:58] fixing this together with deleting the ugly hardcoded doc would be good [10:29] How can I get currently checked out revision (HEAD in git, . in mercurial, BASE in svn)? [10:40] Define "get" ? [10:40] You can know it, by bzr revno [10:40] You can refer to it if needed explicitly by -1, because negative revnos count backwards from the top [10:44] LeoNerd: It is answer to my question? [10:44] Yes [10:45] LeoNerd: Try the following: “bzr branch lp:bzr && pushd bzr && bzr update -r -2 && bzr log -r revno:-1”. I do see revision 6472 in the output [10:45] But I must see 6471 here [10:45] ? [10:45] bzr log -r-1 [10:45] Is sufficient [10:45] LeoNerd: Exactly the same. [10:46] Oh I see, you updated to -2 [10:46] LeoNerd: It does not show currently checked out revision [10:46] Yes it does. It shows the -checked out- revision [10:46] Which is now earlier, because you up -r-2 'ed [10:47] LeoNerd: I have checked out revision 6471 which is -2. “bzr log -r -1” shows 6472 [10:49] LeoNerd: Maybe there is a problem with understanding term “checked out”. In mercurial terms it “currently checked out rev” = “working directory parent”. [10:54] I am surprised there is no simple answer to such question. I bet I would have got “use HEAD/./BASE as revision argument” answers on git/mercurial/svn channels just after somebody saw my question. [10:55] If you want the working tree rev, you want revno --tree (or various other incantations for revid) [10:57] Ya, it's a rare situation [10:57] 99.9% of the time the revno of the checkout == the revno of the branch [10:57] Your update -r ... has specifically gone and changed that [10:58] fullermd: Thanks. Thus “bzr log -r $(bzr revno --tree)” is the only way to get message for working directory parent? [10:59] Probably. I have vague recollection of discussion about a tree: revspec, but I don't see it listed in the help, so it probably never got implemented. [10:59] I don't understand this phrase "working directory parent" [10:59] Working directory is a UNIX concept, the CWD of a process. [10:59] The things important here are the checkout, and the branch. [11:00] "working tree" would be the more common VCS-world term. [11:00] Both have a (latest) revno concept. Normally the checkout is a copy of some revision of a branch, possibly including some local modifications that will become the next revision [11:00] Normally, the checkout is a copy of the latest revision in the branch. So normally bzr revno and so on is unambiguous [11:01] But specifically in your situation you rolled back the checkout to an earlier revision from the branch, so now you have two different "latest"s, depending whether you asked the branch (6472) or the checkout (6471) [11:03] LeoNerd: “working directory parent” is how revision “.” is described in “hg help revisions”. [11:03] Yah, please read what I just wrote :) [11:04] right, that would be basis revision for the working tree in bzr speak [11:07] ZyX-I: I think the initial confusion is that 'bzr log' always refers to the branch tip (which is almost always the same as the working tree (wt) basis revision) [11:08] ZyX-I: instead of 'bzr update -r-2' you could have used 'bzr pull -r -2' and your wt will have pointed to the branch tip [11:08] ZyX-I: but may be I don't understand what you were trying to achieve ? [11:10] vila: No. Initial confusion is that all other VCS I have to support mention basis revision in either “vcs help revisions” (hg,git) or directly in the description of every command supporting revision arguments (svn). Only bzr requires use of the separate command. [11:10] that doesn't tell me what you're trying to achieve :-/ [11:11] vila: I want to make vim-addon-manager distinguish between cases “‘bzr pull’ has updated something” and “‘bzr pull’ did not touch working tree”. [11:12] right, so better avoid 'bzr update' then, 'bzr pull' outputs 'No revision to pull' if nothing has changed IIRC [11:13] vila: I don’t do “bzr update”. But the user may have done it. [11:14] vila: If there are revisions to pull, but basis revision/=tip revision, “bzr pull” won’t update anything like other “vcs pull”, will it? [11:16] hmm, I dunno for other VCSs but I think 'bzr pull' doesn't require a clean wt to pull, it merges the uncommitted changes if there are any instead [11:16] Not relevant to the question ;p [11:17] meh, the question, as I read it was: will pull do something if revisions are missing in the branch even if the wt basis revisions is not tip anymore [11:17] No, bzr pull will force the tree up to the new head rev. That may or may not be a bug... [11:18] In hg, pull will always pull the branch, and not touch the tree. You'd need a separate update, or a pull -u to get it to touch the tree too. [11:18] ha right, I never ends up in setups where wt basis revision != branch tip [11:18] That explains the years it took to land update -r... :p [11:19] right, pull updating the wt if there is one matches my use cases... [11:19] hehe [11:19] probably, but I'm only one user, others have different workflows ;) [11:19] I'm not entirely sure it should when it's not the previous tip. That seems like it may be slightly surprising. [11:20] right, seems weird to me too, but I don't know the workflows involved hence my remark [11:20] well, s/don't know/don't have enough practice with/ [11:21] It's probably never come up or been explictly questioned at all. Just Happens(tm). [11:22] I always thought that if you want to get a tree not based on your branch, it's only temporary (since you will commit on tip anyway) [11:22] that bzr doesn't warn or block in these cases is probably a bug in itself [11:22] I can't think of an obvious case where you'd want to pull, AND maintain that explicit older rev. Still, it feels more like the right choice. [11:23] If I update -r, I'm telling bzr, I want the tree on that rev specifically; I'm not sure later saying 'pull' is best interpreted as "undo my update too". [11:23] * vila nods [11:23] You could make a case either way I guess. Just never been actually argued, TTBOMK, so we get the emergant behavior. [11:24] add a --strict to pull ? [11:24] Well, that also opens up the can of --overwrite worms. [11:24] yeah, exactly [11:25] Plus we'll get to tackle the bound branches arguments all over again. [11:25] I can't hear you ? [11:25] Would be fun, of course. But I don't really have the time for that... [11:54] vila: could I perhaps trouble you with two reviews? [11:55] https://code.launchpad.net/~jelmer/bzr/use-tree-iter-children/+merge/93609 and https://code.launchpad.net/~jelmer/bzr/iter-child-entries/+merge/93993 [12:01] jelmer: I'm gently landing the eggs I'm juggling with and was about to lunch, will have a look after that [12:02] vila: maybe you should have eggs for lunch ? :P [12:02] vila: anyway, thanks :) [12:02] hehe === mrevell_ is now known as mrevell [14:22] jelmer: reviewed [14:25] vila: danke! === mandel is now known as p === p is now known as mandel === kirkland` is now known as kirkland === yofel_ is now known as yofel [16:00] I branched a working copy from remote, i want to create a experiment branch from checked out copy [16:01] go ahead and do that then :) [16:01] But bzr creating a seperate directory [16:02] So i had to configure ide to experiment branch [16:02] seperate dirs are the default if you only want one tree to avoid confusing your ide, you can use switch, [16:03] either with the current beta and colocated branches, [16:04] or by reconfiguring your setup so you have a lightweight checkout and two different treeless branches [16:05] it's more difficult than Git :s [16:07] currently there's an extra step you need to begin with, yes [16:08] what version of bzr are you using currently? [16:08] 2.4 [16:11] So branching from remote will be normal bzr branch project [16:13] Next i need to create lite [16:14] okay, so you can either use the bzr-colo plugin, or do what I do [16:14] the first requires some specific forms to address branches, see the documentation [16:15] for the treeless branches thing, you do: `bzr init-repo --no-trees PROJECT` [16:16] then `bzr branch REMOTE PROJECT/trunk` (remote can be the local branch you already have, if you then change it's parent) [16:16] then `bzr checkout --lightweight PROJECT/trunk PROJECT/tree` [16:16] you can point your IDE at the tree folder [16:17] ok [16:17] and create a new feature branch from in there with `cd PROJECT/tree && bzr switch -b feature` [16:17] merging and other things that need branch references you just point at the branch locations you have in the filesystem [16:23] Ok maybe i got it [16:26] mgz: Thanks man === mandel is now known as p === p is now known as Guest68461 === mgedmin_ is now known as mgedmin === deryck is now known as deryck[lunch] === deryck[lunch] is now known as deryck [21:47] Hi. [21:47] What is the best way to convert whole SVN repo to BZR? [21:47] So far I was not able to arive to satisfactory result. [21:47] what happened when you tried bzr-svn? [21:48] The best so far seems conversion based on svn2git -> fasexport from GIT -> fastimport to BZR. [21:48] note that oddly managed svn repos will suck to import into anything else [21:48] bob2: It seems to convert only a single branch at once. [21:48] there's also svn-all-fast-export [21:48] mgedmin: Where is that? [21:49] apt-get install svn-all-fast-export, or http://repo.or.cz/w/svn-all-fast-export.git [21:49] I just learned about it the other day [21:49] seems to be very fast [21:50] and you can define rules to straighten out quirks in a messy svn history [21:52] http://gitorious.org/svn2git/ [21:52] That seems like a older version of svn2git. [21:53] I have a fastexport file that it created. It contains branch "1.1" but bzr fastimport never creates this one branch. It also ignores many of the merges. [21:53] what about https://github.com/nirvdrum/svn2git ? [21:53] I'm confused -- are there two different tools both called svn2git? [21:54] mgedmin: It looks more like forks of the same source. [21:54] I recently watched a linuxconf.au video about svn -> git conversion tools [21:55] the guy mentioned three existing ones, described their downsides (two couldn't handle messy conversions, the last one was too slow, iirc) and told how they wrote a fourth tool based on those [21:55] unfortunately I don't remember any of the tool names [21:55] I wonder if svn-all-fast-export is that fourth tool [21:56] btw, re: "It seems to convert only a single branch at once." [21:56] bzr svn-import should be able to handle multiple branches [21:56] afaiu [21:58] http://barrbrain.github.com/svn-dump-fast-export/ [21:58] This is the one from the video, I think. [21:58] I believe it did not work well either. Let me retest. [22:05] wilx: 'bzr svn-import' will indeed import all branches from the repository [22:06] Ah, right, it crashed, the http://barrbrain.github.com/svn-dump-fast-export/ tool. [22:16] fast-import isn't a great format for conversion that doesn't involve git, as it can only represent things that exist in git [22:21] Ah, I know why I did not like svn-import. It seems that it entirely ignores all merges. [22:21] Hmm... [22:21] But cherry pickings are not recored in bzr specially, right? [22:21] That might be it. [22:22] wilx: yeah, they're indeed not recorded (yet). None of the DVCSes track cherry pick merges in their metadata yet. [22:23] I think arch used to :) [22:23] is it not a DVCS now? [22:24] Arch/TLA was weird. [22:24] Darcs does too. [22:24] jelmer: Well, The SVN->GIT conversion did show some merges though. [22:24] Probably need a 'conventional' in that sentence 8-} [22:28] mgedmin: ah, sorry, yes - arch did indeed [22:28] don't mind me, I'm just trolling [22:29] when people say "DVCS" nowadays, they mean git + hg + bzr [22:30] Actually, I'm pretty sure they mean "git". [22:31] (see, _that's_ trolling!) [22:43] fullermd: really, I thought they meant "monotone or darcs" ;) [22:43] Don't be such a fossil. [22:43] svk gets no love for some reason ;) [22:59] SVK seems like SVN with disconnected operations. [22:59] Not too distributed. [22:59] Though I have never used it seriously. [23:14] mgedmin: i have no idea why!!