/srv/irclogs.ubuntu.com/2009/10/11/#bzr.txt

wgrantluke-jr: You want to replay the revisions from each incompatible branch onto the canonical history, mapping file IDs.00:00
luke-jrthat would be ugly. :/00:01
luke-jrcan't just sed the branch? :p00:01
wgrantIt would be ugly. But a lot less ugly than maintaining incompatible branches or your own aliasable repository format.00:01
wgrantIt is a one-time cost.00:01
luke-jrok, how about pasting on missing history?00:02
wgrantWhat do you mean?00:02
luke-jrbzr-svn only got the last N revisions of the history00:05
luke-jrwe need to restore the full history too00:05
wgrantDo any of the bzr branches have the full history?00:06
luke-jrno00:06
luke-jrexcept the prototype ones I'm making now with cvsps-import00:07
wgrantWhy didn't bzr-svn catch it all?00:07
luke-jrit doesn't follow hierarchial changes00:07
luke-jrafter moving to Subversion from CVS, we rearranged the repository structure to be nicer00:08
wgrantAre the old CVS and Subversion repos no longer in use?00:09
luke-jrthe Subversion one is, but not for the branches in Bazaar right now00:09
wgrantEven so, that's fairly inconvenient as it means compatibility has to be maintained somehow.00:10
luke-jrnot really00:10
wgrantSo, what I would do:00:11
wgrant - Somehow get a consistent and complete copy of the history into a bzr branch.00:12
wgrant - Hack rebase so it maps the file IDs (as in the bug).00:12
wgrant - Rebase all of the branches on top of the new history.00:13
luke-jrcan I get cvsps-import to use a file-id file?00:13
wgrant(or some prefix of the new history)00:13
wgrantI don't know.00:13
luke-jrcan current-trunk-revision-2 be made to sit cleanly on top of a revision N?00:14
wgrant"current-trunk-revision-2"?00:15
TheMusicGuyI'm trying to get a very simple installation of bzr onto my shared web host. I don't have root access, but all I need to be able to do is list files in a repo.00:15
TheMusicGuyI only have FTP access to the host; no telnet, ssh, etc.00:16
TheMusicGuyHow can I do it?00:16
wgrantTheMusicGuy: Why do you want bzr on there? You don't actually need bzr on the server just to host a branch.00:16
TheMusicGuybecause webbzr needs it00:17
TheMusicGuyI want to be able to browse branches with a web interface00:17
wgrantAh.00:18
mathepicAny reason you can't use LaunchPad?00:19
TheMusicGuyits not for a project. Its for homework.00:19
wgrantTrying to get a web interface like that up on a shared host with only FTP access sounds like more trouble than it's worth.00:20
TheMusicGuyI use bzr and my personal web host for backing up school work.00:20
wgrantAlthough it is more than likely doable.00:20
TheMusicGuysorry, I didn't see your last post00:21
TheMusicGuywebbzr seems like it would work, but I need to have a bzr install on there somewhere00:21
wgrantDo you really need webbzr?00:21
TheMusicGuythat looked like the simplest solution. Its just three files, only one of which is actually a PHP file. Configuration is as simple as changing a few lines in the top of the script.00:22
mathepicFor three files, I really doubt you need a web interface00:24
mathepicOh00:24
mathepicwebbzr not your project00:24
mathepicNevermind, I misunderstood.00:24
mathepicHow big is your project/homework?00:24
TheMusicGuypretty big.00:25
TheMusicGuyCan't I just upload an install of bzr into some directory on my server and tell webbzr to use that?00:25
TheMusicGuyI don't need to make any changes or create any files from the web interface.00:26
TheMusicGuyread-only is fine.00:26
mathepicWhere can I find the source of webbzr00:26
TheMusicGuyhttp://bazaar.enseed.com/app/webbzr/00:27
mathepicWhy exactly do you need a web interface anyway00:28
TheMusicGuyso I can access the repo from workstations that don't have bzr installed while still using bzr00:29
RenatoSilvabtw, hg's web ui has an interesting feature, you can donwload a whole tree using a single link where you specify a revision/tag, loggerhead could have the same thing :)00:40
RenatoSilvaI mean, the tree is packaged as .zip or so00:41
quidnuncStupid question: How do I switch to the last commit with a given nick (branch?)00:45
quidnunc?00:45
loxsis there some way to check what percentage of the code is contributed by each developer?00:46
mathepicI just saw that00:46
mathepicsomewhere00:46
mathepicjust looking around Synaptic00:46
mathepicThis might do it00:46
mathepicbzr-stats00:46
mathepic"This is a simple plugin for Bazaar that can list the contributors to a00:46
mathepicbranch and what they worked on."00:46
mathepicI don't know if it does percents though00:47
loxsthanks00:47
james_wI don't think that works by line if that is what you are looking for00:47
james_wthough perhaps it has a mode for that00:47
mathepicI don't understand why Canonical never updated the bzr in the Ubuntu repository00:48
mathepicYou have to use the bzr in the PPA for 2a (and thus LaunchPad)00:49
wgrantmathepic: Launchpad doesn't force you to use 2a.00:49
wgrantmathepic: And the bzr team can't push inappropriate updates into Ubuntu releases just because both have Canonical involvement.00:50
wgrantUbuntu has a strict stable release update policy.00:50
TheMusicGuyAh, nevermind. I just figured out that the filesystem layout of my host won't work for webbzr. I'll have to rework it before I can do this...00:52
wgrantmathepic: bzr's new (and IMO less insane) release schedule should be a bit nicer to distros.00:53
mathepicI just took a look at the policy00:54
mathepicUgh00:54
wgrantIt is necessary.00:54
lifelesswgrant: weeeel01:09
lifelesswgrant: it is what is01:09
wgrantlifeless: That much is clear.01:10
wgrantlifeless: (what are we talking about? the SRU policy?)01:11
lifelesswgrant: yes01:53
wgrantlifeless: I'm sure you know the disasters that have come about.02:05
wgrantBut it is perhaps overly strict for less core components.02:05
wgrantAlthough it would be particularly foolish to ever SRU 2.0.0, because of the default format change.02:06
lifelesswgrant: I'd call it tricky rather than foolish02:15
lifelesswgrant: 'needs to be one with vare'02:15
wgrantlifeless: I don't want my Jaunty system to one day start creating incompatible repositories.02:16
lifelessit does that right now ;)02:17
wgrantDoes it?02:17
lifelessyes, it will be making pack-0.92, which can't pull in a growing number of projects02:17
lifelessat some point the fraction will pass 50%02:17
lifelessbut we could do 2.0.0 with a plugin for the default back, or other such techniques02:18
wgrantPulling an existing branch into a new branch doesn't seem like a very common case.02:18
lifelessregardless, I think the concept of a 2.0.0  SRU is not foolish02:18
lifelesswgrant: you said repository02:18
wgrantlifeless: Shh.02:18
wgrant2.0.0-sans-default-change would be nice, but I can't really see it happening.02:18
lifelesswgrant: all the upstream code imports are going to be moved to 2a02:19
lifelessthe ubuntu branches are 2a02:19
wgrantI know.02:20
jelmerjohnf: hi02:48
luke-jrDoes anyone have the 'fileid' or 'graft' plugins mentioned at the end of http://bazaar-vcs.org/BzrPlugins ?05:18
wgrantluke-jr: Those links have them...05:37
wgrantOh, wow, they are old.05:37
wgrantA weave repo!05:37
=== abentley1 is now known as abentley
=== abentley1 is now known as abentley
=== abentley1 is now known as abentley
luke-jrwgrant: those links are empty and "unauthorized"09:47
wgrantluke-jr: Not quite - try checking them out with bzr10:03
Zand3rHello all... Does anyone have a URL to hand where someone has documented their usage of qbzr-eclipse? I've13:30
mathepicI've never even heard of qbzr-eclipse13:32
Zand3rmathepic: Not that you are necessarily interested but this is what I am 'trying' to use http://bazaar-vcs.org/QBzrEclipse13:33
Zand3rI'm evaluating bzr for our project and the Bazaar Explorer gui seems great and makes sense but we use an Eclipse based IDE for microcontroller code and I just can't see what the workflow should be between bzr and Eclipse.13:35
mathepicI don't use eclipse, but I get along just fine switching between my editor and the terminal13:36
mathepicI tried bzr-eclipse when I was using eclipse and it wasn't very good13:36
mathepicI just took a look at the page for qbzr-eclipse13:37
mathepicScrolled down13:37
mathepicFound a link to this bug13:38
mathepichttps://bugs.edge.launchpad.net/bzr-eclipse/+bug/12193613:38
ubottuUbuntu bug 121936 in bzr-eclipse "Eclipse hangs in bazaar operations that require user input" [High,Triaged]13:38
mathepicYep, thats the same one I just posted13:38
mathepicOh wait, that one was for bzr-eclipse13:38
Zand3rYes... I had seen that which is why I opted to try qbzr-eclipse which doesn't seem to have the same issues documented (presumably because it uses the more standard qbzr gui widgets)13:39
mathepicI never had a problem pushing with bzr-eclipse when I used it13:40
mathepicIt just didn't have all the commands13:40
mathepicAnd was super slow13:40
Zand3rMy problem seems to stem from the fact that using a standard text editor I could just work with files in whatever directory (branch) I want but in Eclipse when I branch I'd have to re-import the project directory again each time which doesn;t seem like a seemless workflow.13:40
Zand3rMaybe its my lack of experience with VCSs in general but there seems to be a conflict between bzr which has a directory per branch and eclipse which expects a single directory per project and has no way to easily switch that project view toa different directory (branch)13:42
mathepicCan't you just refresh the directory in Eclipse?13:42
mathepicProject = Branch in general13:43
mathepicDo you need more than one Branch?13:43
Zand3rSay I have a project called 'Project' and I go to bzr explorer and create a branch called 'Project-Feature'.... bzr explorer creates a new directory for that new branch but the Eclipse project is still pointing at the original directory.13:44
mathepicCan Bzr Explorer turn an existing project into a branch13:44
mathepicI'm not sure13:44
mathepicI don't use it13:44
mathepicGo to terminal, go to the directory of the project13:44
mathepicAnd use the command "bzr init"13:45
mathepicIt will turn your project into a branch13:45
mathepicThen use "bzr ignore ...." for files you want to be ignored13:45
mathepicthen "bzr add" to add the rest13:45
mathepicAnd its set up13:45
Zand3rOK.. but just so I understand, if you were to then branch from that (to work on a new feature without immediately affecting the main/original branch) then what would you do? I 'think' branching will create a new directory that the Eclipse project will not be pointed to - yes?13:47
mathepicYou probably wouldn't want two branches in the same project13:48
mathepicJust create a new project for the second branch13:48
dorinsZand3r: you could set up an eclipse workspace for a lightweight checkout and then bind that checkout to different branches using 'bzr switch'13:51
dorinsI was considering this workflow at some point, I think13:52
Zand3rhmm... ahh... so I just understood what mathepic is suggesting I think.... using the terminal (or bazaar explorer) I could branch the project which would create a new directory and then import that into Eclipse as a new project, work on it.... then using the terminal (or bazaar explorer again) merge the tested changes into the original project at which time i should be able to 'refresh' the project in Eclipse which will cause it to update.13:53
mathepicYou don't have to create a new directory to branch13:54
mathepicYou can use the existing directory, which happens to be the directory of your project13:54
mathepicOh wait13:54
mathepicFor the first step you could either branch from anotther branch or you could use an existing local project13:55
mathepicDepending on whether the branch already exists somewhere13:55
Zand3rdorins: Thank you - not ignoring what you have suggested, am looking for details of lightweight checkouts13:55
dorinsthis might help: http://doc.bazaar-vcs.org/latest/en/user-guide/reusing_a_checkout.html13:55
mathepicI've never dealt with those - Is that basically having multiple branches in one directory and being able to switch between which ones you are using14:00
mathepicIt says there are no local commits; that is a signifigant disadvantage.14:01
Zand3rdorins: Thanks... I will run through the lightweight checkout workflow to familiarise myself with it... it looks like it would solve the issue of working across multiple branches without having to manually import each one into Eclipse as a new project (I could just refresh the one project after switching) but as mathepic suggests there does appear to be several disadvantages associated with that approach (including the fact that I'd have to make sur14:05
Zand3rcommitted work on a branch before switching to another branch)14:05
mathepicIt looks like it takes away the whole distributed side14:07
dorins_mathepic: the branches can be local themselves, each in it's own directory. But the working tree is a lightweight checkout that you bint to any of the branches as you work on them. This way you can share a single eclipse workspace for all branches.14:09
dorins_arr,  wifi on linux is still causing me greef14:10
dorins_s/greef/grief14:10
=== dorins_ is now known as dorins
Zand3rok... well I've realised that Eclipse can not import projects (branches) that are already in the Eclipse workspace so it seems that branching, etc. needs to take place outside of the Eclipse workspace in which case dorins' lightweight checkout approach might work best in the context of using Eclipse (keeping in mind that I'm [a] new to all this and [b] haven't run through and actually tried it yet)14:17
Zand3rUnless i'm totally misunderstanding how to use qbzr-eclipse which does add a 'branch' option to the Eclipse IDE but doesn't seem to then let me use the branch it creates.14:18
Zand3rThanks for the help both of you - I do really appreciate it - I'll continue to work through this14:19
=== abentley1 is now known as abentley
=== ubott2 is now known as ubottu
=== SamB_XP_ is now known as SamB_XP
lifelessmoin moin19:10
itistodayhow does the bzr-git plugin work?19:42
itistodaycan't find any docs on it19:42
lifelessitistoday: do you mean 'as a user how do I use it' or 'what does the code do' ?19:47
itistodaylifeless: the former19:48
itistodaysorry for not being more specific19:48
lifelesshave you installed it?19:48
itistodayyeah i think so19:48
lifelessitistoday: nothing to apologise for, I just want to answer the right question :)19:48
lifelessok, 'bzr plugins' should list 'git' if you've installed it19:49
itistodayyeah it's there19:49
lifelesscool19:49
lifelessso, generally you  can just give git:// or git+ssh:// urls to bzr now19:49
itistodayand then use bzr with it?19:50
lifelessthere is a new command to do bulk imports from git I think, 'bzr help git' should give some info on that, or perhaps 'bzr help commands | grep git'19:50
lifelessitistoday: yes19:50
lifelessitistoday: it aims to be transparent19:50
itistodayhmm... will git still work?19:50
lifelessyes19:50
itistodayah that's good to konw19:50
itistodaywhat if i've already imported something with git?19:51
itistodaydo i have to re-check it out with bzr?19:51
=== Adys_ is now known as Adys
lifelessitistoday: to use it with bzr? its recommended I think19:52
lifelessyou can just cd to the git tree and run commands like 'bzr diff' 'bzr commit' etc19:52
lifelessbut I don't think that 'bzr ignore <path>' will do the right thing yet ;)19:52
itistodaylifeless: thanks, i'll give it a shot, seems like i need to install dulwich, will do that now19:53
itistodaywell neat19:57
itistodayit seems to work like magic19:57
itistodayi'm so happy i can stay in bzr land19:57
lifeless:)19:58
fullermd_Gehm's Corollary   :p19:58
itistodaythere's a bzr-hg too :-)19:58
itistodayhey cool, bzr 2.0 has been released, need to get that19:59
itistodayhow do i install dulwich, or any other plugin, and make sure that it only installs into ~/.bazaar?20:15
itistodaydoesn't seem to be a way... at least for dulwich20:24
LarstiQdulwich is more a support library than a plugin20:26
LarstiQitistoday: it's a python libgit20:26
itistodayah20:27
itistodaybzr-hg seemed to work nicely though20:27
itistodayguess they work differently20:27
LarstiQhg itself is written in python, no need to write an implementation/wrappers for it :)20:31
LarstiQitistoday: you'll note that bzr-svn uses subvertpy which wraps libsvn20:32
itistodayLarstiQ: ah gotcha20:32
itistodaywonder what came first, hg or bzr20:33
itistodaythey're pretty similar20:33
itistodaythink the hg guys should just team up with bzr ;-)20:33
itistodaytoo many vcs' give developers headaches20:33
fullermd_That's on the schedule for right after the X radeon and radeonhd drivers merge, and MySQL and Postgres combine efforts.20:34
itistodayhehe20:34
lifelessitistoday: bzr came first20:51
mathepicHg started when that one guy stopped giving free BitKeeper licenses to Linux Kernel devs, right?20:54
mathepicI have no idea when Bazaar started though20:54
itistodaylifeless: thanks20:59
lifelessmathepic: thats when git started; hg started a little earlier than that20:59
mathepicI thought they both started in response to it21:00
mathepicWhere is your source? I can't find a "reliable" one21:02
lifelessmy memory :)21:02
mathepicGo fix Wikipedia then :)21:03
lifelessmpm - the hg author - is the guy to ask21:06
lifelessI *thought* he started sketching stuff out back in feb that year21:06
RenatoSilvaSomeone said here that diff 2.0 2.1 > 1.18 2.0, so what's so new in 2.0 to not justify a 1.19?21:11
lifelessRenatoSilva: the default format has changed21:15
lifelessthis is a very user visible alteration that we want to make sure people are aware of and take the time to upgrade properly; major releases signal such things21:16
RenatoSilvaif I upgrade to 2.0, will the old branches be converted automatically?21:17
mathepicNo21:17
mathepicbzr upgrade21:17
RenatoSilvamathepic: does it work fine? or have you been receiving some trouble reports?21:18
mathepicI didn't have to21:18
mathepicrun bzr upgrade21:18
mathepicthen bzr check21:18
lifelessRenatoSilva: what are you really asking21:19
RenatoSilvalifeless: if upgrading to the new format using bzr upgrage will always work fine21:24
lifelessRenatoSilva: you should read the upgrade guide21:24
RenatoSilvaok it's not trivial then, I'll google for that, thanks21:24
lifelessRenatoSilva: it often is. sometimes its not.21:27
RenatoSilvaok21:27
itistodayis there a way that i can check whether two branches are different?21:37
Peng_itistoday: "bzr missing"?21:39
itistodayPeng_: thanks, that worked21:44
itistodayis there anything special i should do to remove a branch?21:45
itistodayor will just rm'ing it work fine?21:45
itistoday(it's part of a shared repo)21:45
=== khmarbaise_ is now known as khmarbaise
Peng_itistoday: Just rm it. If the branch had any unique revisions, they'll still be in the repo, but it's not worth the effort of removing them.21:59
Peng_Unless you, like, added an ISO.21:59
itistodayPeng_: thanks22:24
=== spm` is now known as spm

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