/srv/irclogs.ubuntu.com/2010/08/12/#bzr.txt

wilcoI see there's bzr-svn which seems to work like git-svn, where I keep my central SVN repo; is there an svn gateway for the hold-outs? Most of my team wants to use something more advanced than svn, but there are a few low-level folks that would need too much re-training00:45
amanicawilco, I'm not sure what you mean. You can keep everything in a svn repo and then use bzr-svn as a svn client00:47
amanicaI do that a lot, but I prefer to use bzr for central server too00:48
wilcoI'm thinking of something like git-cvsserver, but for bzr & svn... I don't want to hobble my central-server-side capability but I want to not break everyone's docs + training00:49
amanicawilco, I don't know of a something that works like that. afaik if you want to have pure svn clients, you need a pure svn server00:50
wilcoI see00:51
wilcoThanks for the info00:51
jelmerwilco, there is an experimental svn server on top of bzr, but it's not finished yet00:51
jelmerwilco, 'bzr serve --svn' IIRC00:51
wilcojelmer: Interesting; thanks.00:56
wilcoany idea of how incomplete it is? I don't see anything in the bzr package docs00:58
jelmerwilco: it only implements some parts of the svn smart server protocol, e.g. "svn log". It lacks a few important commands, including checkout.01:00
spivGood morning.01:00
jelmerwilco: it's built as a thin layer on top of bzr-svn. I started on it about a year ago but haven't had time to spent on it since.01:01
pooliehi spivvo01:01
wilcoOh. I was hoping "incomplete" meant a lack of svn attributes and such.01:01
AfCjelmer: I know you did a bzr-git release recently. Any chance we can get someone  to put that into the Bazaar PPA?01:05
AfCbzr-git crashes for me at the moment, unfortunately [I mean, sure, {shrug} but I daresay it's long since fixed]01:05
jelmerAfC: I'm happy to upload to the PPA just now, but I won't make any promises about keeping it up to date...01:08
jelmerpoolie, spiv: Who is maintaining the PPA these days?01:08
AfCjelmer: hey sure :)01:08
AfCCome to think of it, shouldn't bzr 2.2 be in the PPA now, too?01:09
AfCanyway01:09
AfCboat to catch01:09
pooliejelmer, mostly me?01:10
pooliefeel free to upload01:10
jelmerpoolie: ok01:10
jelmerI've just asked the Debian release team for a freeze exception for bzr 2.2 in squeeze01:11
jelmerbzr was released just one day after squeeze was frozen, apparently :-/01:11
poolieoops01:24
pooliedid they have 2.2b4? it's a tolerably small change from that01:24
=== mwhudson_ is now known as mwhudson
AfCjelmer: sorry to drop out on you02:08
lifelessAfC: jelmer has halted() :)02:22
AfClifeless: just so as someone reboots him in the morning, we're fine.02:22
=== Ursinha-bbl is now known as Ursinha
=== spm changed the topic of #bzr to: Launchpad down/read-only from 0800-0930 UTC for a code update | Bazaar version control | try https://answers.launchpad.net/bzr for more help | http://irclogs.ubuntu.com/ | Patch pilot: poolie | bzr 2.2-final has gone gold, build those installers
=== Ursinha is now known as Ursinha-zzz
=== oubiwann is now known as oubiwann-away
=== oubiwann-away is now known as oubiwann
spivLaunchpad down... sounds like time to finish work for the day :)09:09
pooliegood night spiv09:31
senderHi, question: I'm trying to push and get this warning: bzr: ERROR: Working tree "/var/www/" has uncommitted changes (See bzr status). Use --no-strict to force the push.09:40
senderRunning bzr status, gives me no output. Anyone has an idea what's going on?09:41
pooliesender: that's strange09:42
senderpoolie: thanks... I thought so too. I've tried to sudo both commands. Don't know if that could help, but it didn't. :(09:42
poolieand does the push succeed if you do use --no-strict09:43
pooliesudo isn't likely to help except for things like permission problems09:43
senderpoolie: bzr status -S gives me: +   database/db.sql09:43
senderpoolie: I just rm'ed this file... it was never versioned.09:44
senderpoolie: is it normal that something shows up in bzr status -S, and not with bzr status?09:44
poolieno!09:45
sender:(09:46
pooliewhat does 'bzr --version' say?09:46
senderBazaar (bzr) 2.1.109:47
senderpoolie: can this be a cause: I got permission errors on ~/.bzr_log, I've chown'd that file to my own user09:48
senderpoolie: is there a way to verify my bzr repo?09:49
poolie'bzr check'09:49
senderpoolie: running bzr check now09:49
poolieso bzr status really just says nothing?09:49
senderthat's correct09:52
pooliesender: that's really weird, i can't imagine a bzr bug that would make things show up in short mode but not otherwise09:52
senderpoolie: bzr check didn't return any errors so it seems09:53
pooliewhat does 'bzr st database/db.sql' show you?09:53
poolieor 'bzr ls' that file09:53
mvoI get the following error on bzr diff http://paste.ubuntu.com/476834/plain/ (version 2.2.0)09:54
mvois there anything I can to do recover?09:54
senderpoolie: bzr: ERROR: [Errno 2] No such file or directory: '/var/www/database/db.sql'09:54
senderpoolie: on bzr ls that file09:54
pooliesender: and 'bzr info'?09:54
senderpoolie: bzr status that file gives me nothing09:55
senderpoolie: (format: 1.9-rich-root)09:55
pooliesender: is that file perhaps a symlink ?09:55
senderpoolie: and related branches... normal stuff09:55
sendernope09:55
pooliehow about plain 'ls -ld /var/www/database/db.sql'09:55
mvois that/could that be releated to LP being down?09:55
senderpoolie: no connection with LP09:55
senderpoolie: it's a local project09:56
senderpoolie: ah I remember: I added the file, then rm09:56
sender'ed it (sorry for the \n)09:56
senderpoolie: I think I might be able to resolve it by reverting the file...09:57
senderpoolie: but that doesn't change the fact that status and status -S have a different output09:58
senderpoolie: and that I can't push without --no-strict...09:58
pooliemvo: it's possible, but it's probably not related09:59
pooliemvo: is this a new local branch?10:00
pooliemvo, can you please file a bug and ask jam to help when he wakes up?10:01
mvopoolie: its a checked out branch I was using for some time but recently upgraded to the latest format10:01
mvopoolie: sure, will do10:01
mvothanks!10:03
senderpoolie: should I try to revert the file? Or did I hit a serious BZR bug?10:05
senderpoolie: Ok bzr revert . did resolve the problem10:10
=== spm changed the topic of #bzr to: Bazaar version control | try https://answers.launchpad.net/bzr for more help | http://irclogs.ubuntu.com/ | Patch pilot: poolie | bzr 2.2-final has gone gold, build those installers
quicksilverbzr merge from an old repo format into a new one is a bit broken12:38
quicksilveryou probably don't care much but I thought I'd remark on it.12:38
bialixquicksilver: please, file a bug report12:52
quicksilverfirst of all it said "ERROR: Branches have no common ancestor, and no merge base revision was specified"12:53
quicksilverwhich was not the case12:53
quicksilverand then after specifying revision numbers it came up with hundreds, lierally, of conflicts.12:53
quicksilverupgrading the old repo first fixed it all.12:53
quicksilverI'm not really in a positon to file a reasonable report, and I don't have time today.12:56
quicksilverI'll make a note to try to do so next week.12:56
bialixquicksilver: error about common ancestors seems familiar for me, what is your bzr version?13:00
quicksilverjust checking.13:00
quicksilver2.1.013:01
quicksilverthe "new" format repo was Bazaar Branch Format 7 (needs bzr 1.6)13:01
quicksilverthe "old" one was Bazaar Branch Format 6 (bzr 0.15)13:01
bialixwhat is repo format?13:02
quicksilverI thought that's what that was13:02
quicksilverhow do I find out?13:02
quicksilverI did cat backup.bzr/branch/format13:03
quicksilverto get that part above13:03
bialixbzr info -v13:03
quicksilverbut you need it for backup.bzr I guess?13:03
bialixit said about both branch and repository13:03
bialixmaybe13:03
quicksilverah13:03
quicksilvercat  backup.bzr/repository/format13:03
bialixthen repository/format13:03
quicksilverBazaar pack repository format 1 (needs bzr 0.92)13:03
quicksilvernew is Bazaar repository format 2a (needs bzr 1.16 or later)13:04
bialixah, rich-root vs poor-root13:08
bialixI'd suggest to check with bzr 2.213:08
quicksilverbialix: If I copy the old backup.bzr to .bzr then I have the old repo back for reproduction purposes, right?13:18
quicksilver(there never was a working tree anyway)13:18
bialixyep13:18
bialixsorry, bbl13:18
=== oubiwann is now known as oubiwann-away
=== oubiwann-away is now known as oubiwann
=== Ursinha-zzz is now known as Ursinha
=== deryck is now known as deryck[lunch]
=== Ursinha is now known as Ursinha-lunch
jammvo: hey, I missed the start of the conversation, but I'm around if you wanted to chat about something16:20
thropeis there a way to get a list of controlled files? ie like bzr status but list files that are unmodified16:34
mvojam: I had a problem with my bzr branch, I solved it/worked around it now by using the .bzr dir of a fresh checkout. its the first time this ever happend to me, so it might just be local corruption, not sure its woth debugging it16:35
thropeah bzr ls -V is what I was looking for16:36
* lamont found 616878 to be most annoying16:46
jelmerbug 616878 ?16:47
ubot5Launchpad bug 616878 in bzr (Ubuntu) "bzr commit error because of no identity (affected: 1, heat: 8)" [Undecided,New] https://launchpad.net/bugs/61687816:47
lamontperfectly good repo, commit requires 2 commands instead of 116:47
lamontin about 400 repos16:47
lamontwith something like 10 users16:47
mgzif you're really doing it that many times, you can write yourself a two line shell script16:48
jelmerlamont: previously bzr would use "$USERNAME@$HOSTNAME" and that caused some people to do a lot of commits without a valid email address. IIRC that was the reason this check was put in place.16:49
jelmerallowing anonymous commits is reasonable, perhaps we should have "bzr whoami --anonymous" ?16:50
jelmeror maybe just "bzr commit --anonymous" ?16:50
mgzthat bug should probably be converted into a question or something16:50
mgzI agree the --anon commit idea is good though, provided it doesn't just get misused16:51
lamontmgz: yes, we could, and we will.  just not very happy about it.16:51
mgzwell, surely it's better than leaking your username and hostname into the repo?16:51
lamontthese repos never do anything that has anything to do with emailing anything.16:51
lamontnor does the repo ever leave the machine in question, other than in backups16:52
jelmerlamont: Is it really anonymousness you're after or just wanting to avoid extra configuration ?16:52
jelmerit sounds like it's more about configuration than anonymousness16:52
lamontit's really just having bzr commit keep working across the upgrade that I'm after... really don't care what the user/email addr are in the commit16:52
mgzokay, so we've caused you some pain.16:53
jelmerlamont: So it's the extra configuration that was previously not necessary.16:53
mgzin your case for no gain, but bar reverting the change (which I think is a bad idea), what can we actually do to help you?16:53
jelmerlamont: it will use the EMAIL or BZR_EMAIL environment variables if set, if that helps.16:54
lamontjelmer: does it only care about email?16:54
jelmerlamont: it doesn't really care about the value, just that there is something set explicitly.16:54
lamontcool16:54
lamontjelmer: you wanna throw that into the bug as a comment/workaround suggestion?16:55
lamontotherwise, I will16:55
jelmerYeah, sure16:55
lamontta16:56
jelmermgz: what do you think about warning rather than errorring out completely ?16:58
=== deryck[lunch] is now known as deryck
Ngwhat about etckeeper? it is a robot doing commits to bzr. a robot with no email address17:00
Ngjust as a random thing in the ubuntu archive which does non-humanic commits ;)17:00
jelmerHi Chris17:01
jelmerNg: it sets EMAIL explicitly IIRC17:01
Ngif it is, it's using $USERNAME@$HOSTNAME? ;)17:02
jelmeryep17:03
mgzjelmer: but what would bzr do after issuing the warning?17:03
jelmer./commit.d/50vcs-commit:export EMAIL="$USER <$USER@$hostname>"17:03
jelmermgz: continue on doing the commit17:03
mgzusing what as the email?17:03
jelmermgz: the guessed email address (as we did prior to 2.2). The user can always uncommit and recommit with an email address set.17:04
mgzpart of the reason I'm glad so see the old code go is that trying to interpret `username + "@" + hostname` as an email adress lead to a lot of bugs17:04
mgzboth are unicode on windows, and can contain spaces17:04
mgzthis means unicodeerrors, and code trying to split things getting confused by extra spaces, and so on.17:05
jelmerhmm17:05
Ngjelmer: well then that's not a great example ;)17:05
mgzalso, having my local username and hostname end up in some public repo is a bad thing.17:05
Ngmgz: because of your specific circumstances, or general position?17:06
mgzI prefer getting yelled at.17:06
jelmerI like being told, but not being blocked.17:07
mgzng: well, a general position, it's a Bad Thing.17:07
jelmerPerhaps we could just use $USERNAME17:07
mgzone repo I poked on launchpad had four different contributors depending on which box the guy who owned it was hacking from.17:08
lamontother VCS implementations going back a decade or so use $USERNAME@$FQDN17:08
lamontrather than the short hostname17:08
mgzmight work on a university box,17:08
mgzbut who has a sensible domain set up from their home machine?17:09
Ngmgz: why does that matter?17:09
lamontmgz: many of us do17:09
mgzI like clean repos with readable blame and stats.17:09
Ngthen make whoami procedure for your employees :)17:10
mgzI'm a lone hacker, and it's other people's repos I worry about.17:10
jelmermgz: I don't think that's a reason to force everybody to have a sane committer email address...17:10
mgzI think telling them is better than using an insane address.17:10
elmomgz: you're assuming the email address matters17:11
mgzif they want to use something odd, they can set whoami to (nearly) whatever they like17:11
jelmermgz: Telling them is different from forcing them to use a sane address.17:11
elmomgz: that's not a reasonable assumption17:11
mgzI think the user *id* matters17:11
mgzwhich unfortunately means Name <Email>17:11
mgzthe user id is baked into every commit made.17:12
Ngwhat this discussion clearly shows to me is that this is a local policy issue17:12
mgzwhat this discussion shows is that four people are awake currently.17:13
jelmermgz: I count 5 >-)17:13
mgzI don't think you can draw big conclusions, but bugging people is always unpopular, sure.17:13
mgzwhatever happens that isn't a return to buggy code that doesn't even make much sense on nix, I'll live with17:14
lvhhey17:15
jelmerhi lvh17:15
lvhany eclipse+bzr users here? I'm somewhat confused as to how you use the plguin effectively17:15
lvhthe only way I can figure out is if you use lightweight checkout and switch all the time17:15
mgzswitching is fine.17:16
lvhthe other way is if each branch is its own project17:16
lvhmgz: I've never done it. What docs should I read? bzr switch manpage?17:16
mgzyou can have a shared repo with no trees, and one tree under it for eclipse17:16
mgzthen switch that tree between the other branches on the repo as you work on them17:16
mgzI think there was something on the list quite recently with directions you could read...17:17
maxbThat's basically the only way I can see making sense - it's a shame Eclipse makes it so hard to add/remove projects.17:17
lvhyeah17:18
lvhit's definitely eclipse's fault but you know it's a sad day when hg integration makes me happier than bzr integration17:18
maxbWell... MercurialEclipse is vastly more advanced than bzr-eclipse17:18
maxbAnd qbzr-eclipse, whilst useful, isn't exactly an Eclipse integration17:19
maxbI would love to push bzr at work, but this is my primary inhibitor17:19
jelmermgz: fwiw I don't think we should pretend we can guess the email address by using $USERNAME@$HOSTNAME. I'd rather just use the $USERNAME as the full committer text and be done with it; we already have to deal with that situation in other cases anyway when we import committers from svn or cvs.17:19
mgzjelmer: encoded as utf-8?17:20
jelmermgz: Yeah (we already mandate that the committer field is encoded as utf8)17:21
mgzlvh: this is actually about large repos, but the workflow is the one you want: https://lists.ubuntu.com/archives/bazaar/2010q3/069499.html17:23
mgz(maxb can correct me if there's anything wrong)17:24
maxbI don't think so17:25
=== Ursinha-lunch is now known as Ursinha
=== beuno is now known as beuno-lunch
basic`Hi everyone, is it possible to force filesystem permissions in bzr?  We're using it for drupal.org webroots and for whatever reason new files are being added with rw------- / 600 permissions that can't be read by the webserver18:20
basic`has anyone hit an issue similar to this?  the files in the repository checkout that the commits are coming in from have 664 permissions18:21
basic`i read over https://bugs.launchpad.net/bzr/+bug/67589 but it didn't seem to be the right issue18:21
ubot5Launchpad bug 67589 in Bazaar "bzr does not store permissions (affected: 0, heat: 1)" [Wishlist,Confirmed]18:21
maxbbasic`: I would check the umask of the user executing bzr on the webserver18:34
basic`maxb: it's 022 like the other users18:34
maxbthat is surprising18:34
basic`it should be creating directories with 755 and files with 64418:35
basic`and it seems to be working for the other sites under bzr.. let me test18:36
basic`maxb: actually... i take that back it looks like the umask is different on the box that has the nfs mount and these updates are being run... that explains it18:38
basic`wait, it's even more permissive on that box (0002)18:39
maxbodd.18:39
* maxb afk now18:39
basic`maxb: thanks :)18:39
=== beuno-lunch is now known as beuno
dleeTrying to find revisions lost on revert.  Sequence done: unbind, local commits, bind, update... got a bunch of unexpected conflicts apparently caused by case differences in folder names... mistake?: did a revert, but now I can't find any of my local revisions.  Can I get them w/o knowing revids??20:22
james_wdlee: "bzr heads --dead"20:23
james_wfrom bzrtools20:23
james_wthat should show you the tip revision you had before the upload20:24
james_wupdate I mean20:24
dleeI thought bzrtools was integrated now... uknown command "heads" bzr 2.0.0 here.20:25
dleeI can probably get that part to work... but on finding it, can I still reintegrate those local commits?  I had planned to do update/rebase/commit to update the upstream repo.20:26
dleeFound the revids using a 2.2.0 where "heads" works... so down to that above question. :)20:30
james_wdlee: you can either "bzr pull --overwrite -r revid" to get back to where you were before you started20:35
james_wor "bzr merge . -r revid" to get back to where you were before the revert20:35
dleeHmm... pull, when the found revid is only local?20:36
james_werr, yeah, with a dot as well, sorry20:37
james_w"bzr pull . --overwrite -r revid"20:37
dleeTrying to decide which makes more sense for the ultimate goal, which is to upload my local commits onto the upstream branch, presumably after a rebase.20:38
dleeAh ... the "pull" should literally rewrite everything to where it was, then I can try the original merge again... wonder if --reprocess will help deal with the mess of foldername conflicts...20:39
dleeGetting "no such revision" on "bzr log -rrevid:<foundID>" and a traceback, in 2.0.0 and 2.2.0.20:43
basic`maxb: so i'm as stumped as you are with the permissions thing... doing another bzr checkout of the tree has the correct permissions20:46
dleeJamesW:  Ouch... your "pull --overwrite" suggestion worked, but I forgot to unbind first!  Result: I overwrote the upstream branch with my local one.  Odd though, the upstream branch is supposed to forbid history alterations.21:01
dleeThe error I mentioned earlier is a bug in "log": It crashes trying to convert a revid to a dotted revno.  I'll file that one when I can.21:02
orospakrHi!  I'm looking through the docs, but I can't find a mode I thought exists for having a smart-server's repo containing multiple-branches in place.  at least, I don't want to have to make a copy of my entire repo on my server for every new branch I want to have.21:04
orospakr(my workflow is creating a new branch for each new ticket of work, so super-cheap branches are a must)21:05
orospakrah, http://doc.bazaar.canonical.com/bzr.2.2/en/user-guide/shared_repository_layouts.html#nested-style-project-branch-sub-branch21:06
orospakrI think.21:06
dleeorospakr: yes, sounds like a perfect time for a shared repo structure.21:10
orospakrhm. with that approach (init-repo), do I have to create all new branches on the server by sshing to it and typing a `bzr branch` command in locally?21:12
dleeorospakr: You can do that, but you can also push a branch from elsewhere if you have one to push.  Do all branches start from one common branch?21:25
orospakryeah, everything ultimately has a common ancestor. You're saying that if I happen to fork a new branch on my dev machine, I can push that into the server's shared repository without interacting directly with a shell on the server?21:26
dleeI doubt "bzr push bzr+ssh://my.domain.com/var/bzr/proj/branch5" from a local copy of the main branch would cost that much... Others can correct me of course, but I doubt that sends all the texts from local to server when the server has a shared repo for the branches.21:26
orospakrah, so if I just give it the path with $existing_repo/my_new_branch, it should Just Work?21:27
dleeorospakr: Yes:  If you have, say, done "bzr co bzr+ssh://my.domain.com/var/bzr/proj/trunk," you can do what I showed above to make branch5.21:27
orospakrie., bzr push  bzr+ssh://myserver/$existing_repo/my_new_branch21:27
orospakrsweet. it worked!21:28
orospakrthanks.21:28
dleeorospakr :)21:28
orospakrit'd be a bonus if I could avoid typing the "bzr+ssh://myserver/$existing_repo" part every time I want to make a new branch there.21:29
orospakror rather, *push to* a new branch there.21:29
dleeorospakr: (1) shell variables.  (2) "bzr bookmarks" etc., if you have bzrtools (I believe that's part of bzrtools at least)21:30
fullermdSeparate plugin.21:31
dleeoops thanks21:32
orospakrhm. I wonder, I want to figure out how my colleague can pull that branch onto her machine, without having to make an entire new local branch, with redundant storage of all the history that is already in her local repo of the main branch of our project.21:33
orospakrI guess she could branch her local one, and then pulled the new branch from the server into that new local branch.  Requires more steps that I think would be elegant, though.21:34
rocky--jelmer, hey... when i merge from a remote svn branch, commit changes in my local branch, and then push back... i get an error saying operation denied because it would change mainline history... did i do something wrong21:37
rocky--?21:37
jelmerrock--: No, but you have to realize your change would remove the current tip from the remote branch and replace it with your merge revision.21:38
rocky--hm that sounds more intrusive then i'd like21:38
jelmerrocky--: That's why it's requiring you to set a configuration option before allowing that.21:39
rocky--is there a less intrusive thing i could have done to achieve a similar result?21:40
jelmerrocky--: rebase21:50
jelmeror you could've merged your branch into an up to date copy of the remote branch and pushed that.21:51
dleeJamesW:  If you're still here, thanks much... got all cleaned up and rebased and in sync.21:59
quotemstrSay I have a branch in ~/foo/bar/trunk; I'd like to convert ~/foo/bar to a shared repositroy.22:16
quotemstrCan I do that by just running (with CWD being ~/foo/bar) bzr init-repo . and bzr branch trunk trunk2 ?22:16
jelmerquotemstr: yes, although you can also do:22:20
jelmerbzr init-repo . && cd trunk && bzr reconfigure --use-shared22:20
quotemstrThanks.22:20
=== Ng_ is now known as Ng
=== cody-somerville_ is now known as cody-somerville
=== jpds_ is now known as jpds

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