[00:39] How can I branch into a remote location without having to branch, push & reconfigure? [01:01] GungaDin: What? "bzr push"? [01:02] no, I want to immediately branch from a remote place to a remote place. [01:02] I think I managed simply by specifying both urls. [01:02] Oh. [01:06] spm: I don't know if you saw, but we pushed an actual fix for one of the bugs lately, so you might want to update codebrowse to loggerhead trunk if you haven't in the last two days or so. [01:10] mkanat: excellent! ta; will do! [02:36] mkanat: an actual fix? [02:36] as opposed to a fake fix? [02:36] thumper: I checked in a fix that didn't fix it, at first. [02:36] ah [02:36] mkanat: which bug? [02:37] thumper: https://bugs.launchpad.net/loggerhead/+bug/420738 [02:37] Launchpad bug 420738 in loggerhead "LRUCache.cleanup raises KeyError" [Critical,Confirmed] === verterok_ is now known as verterok [08:44] wgrant: didn't you recently post an lsprof of 'bzr branch' to a bug? Do you know what bug that was? [08:45] jam: probably https://bugs.edge.launchpad.net/bzr/+bug/562666 [08:45] Launchpad bug 562666 in bzr "2a fetch is very cpu intensive" [High,Confirmed] [08:45] jam: 562666 [08:45] Yeah, that's the one. [09:20] lifeless: 13 minutes to locally branch devel. [09:49] wgrant: ok [09:53] wgrant: we have some results [10:03] hi all, how can I commit part of a file's changes? something like 'git add -p'? [10:04] ziminq: 'bzr shelve' [10:05] spiv: thanks, i'll take a look at this :-) [10:05] ziminq: e.g. use bzr shelve to temporarily set aside the changes you don't want to commit yet, then you can commit, and then you can unshelve again. [10:06] spiv: yeah, just what I want. similar to idea of git stash. [10:09] lifeless: Aha. Panic panic? [10:29] Someone remind an idiot how to push a new branch into an empty SVN repository? [10:29] awilkins: hey [10:30] awilkins: bzr push /trunk [10:30] Hello Jelmer [10:31] wgrant: a 12% improvement about to be put up for review [10:32] jelmer, I'm getting "http does not support mkdir()" [10:33] jelmer, And I'm an idiot because I don't have bzr-svn installed :-S [10:34] Thaaat works better [10:39] awilkins: that'd explain it :-) [10:43] lifeless: Ah, great! [10:43] Not so great, however, is that my lp:linux checkout is about to reach 2.5GiB. [10:45] wgrant: `have you tried repacking it [10:45] ? [10:45] jelmer: Well, it's still downloading.. [10:47] wgrant: hmm, that's odd - I think it was only around 300Mb here.. [10:48] wgrant: you're not accidentally fetching into a 1.9 repo? [10:48] jelmer: Yes, it was just a few undred megabytes when I tried it a few weeks ago. [10:48] jelmer: No, fresh checkout into /tmp, which is not a shared repo. [10:49] wgrant: hmm [10:53] i guess it would be interesting to get a losa to run du a couple of times [11:11] wgrant: srsly? [11:16] lifeless: Yeah, 2.5GiBwas shown in the progress indicator thingy, but .bzr ended up at only 475MiB. [11:18] Does it transfer compression groups or does it stream their content? [11:19] e.g. - if pulling and you ask for a revision stream that's in a compression group does it just send the group so you can hit that later on? [11:27] does bzr-git support dpush? [11:27] Tak: yes [11:27] but not regular push yet, correct? [11:28] Tak: right, though it might not be too long before it supports regular push [11:28] dpush works for me for now [11:38] is there a known good way to dpush to github? [11:39] bzr dpush git+ssh://git@github.com/tak/repo [11:43] What's the difference? [11:43] http://paste2.org/p/822944 [11:45] cbz: between what? [11:46] Oh - it strips the metadata [11:47] In working with git i presume the model isn';t one of rebase and then push - but that one pushes all one's revisions upstream [11:48] cbz: not sure I follow, in git rebase seems to be used a lot [11:49] that's with branch, commit, dpush [11:49] I just meant that when working with subversion one has to rebase ontop of the latest chanegs in the remote repository before pushing upstream [11:49] tak: that's a known issue in trunk at the moment [11:49] oh, ok, is there a known good rev? [11:50] Tak: I'd use a release [11:54] oh, hmm, so it actually pushed my revision [11:57] awilkins: neitherish [11:59] I'm getting this error when doing a bzr pull: bzr: ERROR: sqlite3.OperationalError: database is locked [11:59] is there a way of cleaning up the lock? [11:59] cbz: you have two bzr processes accessing the same svn repo [12:00] cbz: you can install python-tdb to work around that issue (it allows concurrent access) [12:00] jelmer: something must have left the lock behind. The only other thing running is a tbzrcache process [12:00] and then you can mangle the subversion.conf file :) [12:01] cbz: I wouldn't be surprised if that's what accessing the database.. [12:03] Is the lock a per user or per repository setting? [12:03] i've exitted tbzrcache and stil get the same error - any way of cleaning up? [12:59] cbz: it's per repository [12:59] cbz: It shouldn't give that exception if there aren't any processes using that cache [13:00] I guess you could remove the cache, if windows will allow you [13:05] Hmm - only a reboot fixed it in the end [13:16] Hi, im new in layout of cvs and how is the best way to create a branche from a trunk in the same repo? [13:17] cvs? [13:19] yeah, layout like svn, trunk/ tags/ branches/ - before i never use this, only one directory [13:19] i see a svn tutorial to use a svn cp trunk/ branches/0.1 - for exemple [13:19] how the best way into bzr [13:21] "bzr branch"? [13:23] i dont know about that, i dont understand how this work fully... but bzr branch creat a copy of a branch, is the correct way? branch inside branch? [13:28] I think you should read the tutorial or something. [13:28] "bzr branch" creates a branch. [13:29] Which starts out as a copy of the branch you're branching from, yes. [13:29] this i understand [13:30] my question i how to work with this layou branches/ trunk/ tags/ [13:30] i read in same blog's, the trunk is a production branch and when i make a modifications i make a copy from trunk to branches/ [13:31] right? [13:34] Why do you want to work with that layout? [13:35] I've never uinderstood the point of consigning non-trunk branches to some "branches" directory. [13:35] And in Bazaar, tags are dcreated with "bzr tag". [13:36] so, i can make a tags so easy? [13:38] so the best way is making a tags? [13:45] The "best way" for what? When you need a tag, make a tag. When you need a branch, make a branch. [13:45] =) [13:54] hersonls appears to be used to SVN [13:55] SVN implements tags and branches by convention only using the ability to copy a SVNFS inode [13:55] awilkins, haha, i'm reading a good article about this [13:55] and i like that [13:55] http://www.scribd.com/doc/10965126/ccbazaar [13:56] I liked SVN a lot ; I converted 3 shops to it, I still administer SVN repositories, but I'm a born-again DVCS convert [13:58] the only problems i have with bzr is a permission in repo, when one user make a push when anothe make too make a access denided using sftp [13:58] =( [14:03] hersonls, you need to have them both in the same unix group [14:05] yeah, i see in this - chmod 770 /bazaar/bzr; chmod +s /bazaar/bzr [14:07] Does the sticky bit work over SFTP? [14:08] The sticky bit is +t, not +s [14:08] Oh. :P [14:08] Peng_: do you mean sticky or setgid? in any case [14:08] +s/+t work at the filesystem layer, so it doesn't care how you're accessing it [14:08] some servers filter out setuid/gid [14:09] I remember OpenSSH having issues with something, but IIRC it was just the umask? [14:09] * Peng_ has never used any of the unusual bits, so he doesn't know them well. [14:10] The problem with using setgid directories and a common group is it requires that users' umasks do not mask group permissions [14:12] Hi, is there any documentation on how plugins are supposed to handle locking? === oubiwann is now known as oubiwann_ === oubiwann_ is now known as oubiwann [14:30] jam: https://code.edge.launchpad.net/~lifeless/bzr/command-help-bug-177500/+merge/25055 === idnaria is now known as idnar [14:40] bzr send not defaulting to --strict anymore is great :-) [14:45] lifeless: i believe I already reviewed [14:45] jam: ok [14:45] ah yes [14:45] stale webby pagy [14:53] So, are plugins supposed to call tree.lock_read(), or are lock operations considered to be internal to bzrlib? [14:53] only the highest level functions take locks automatically [14:54] Are the locks recursive? [14:54] any non-trivial plugin will be likely taking locks explicitly [14:54] reentrant? yes [14:54] All right, then it shouldn't be too hairy. [14:57] Incidentally, how long is the bzr codebase supposed to be python 2.4 -compatible? The with-statements introduced in 2.5 would make writing critical sections much easier. [14:58] we were talking about this earlier [14:58] I'm not sure, is the short answer ;) [14:59] but we can add glue for with to bzr without being 2.4 incompatible [15:00] You mean, make it easier for plugin writers to use with-statements (and lose 2.4-compatibility) if they choose, but refrain from using them in the core? [15:01] Of course, the glue itself is pretty trivial: http://pastebin.com/nmfpHHsb === oubiwann is now known as oubiwann_ [15:05] By the way, here are some plugins I intend to write. Please tell if you are aware of something similar already underway. [15:05] bzr-mtime: store mtimes of added and modified files under .bzrmeta/mtimes. Add a merge hook for that file to select the newest mtime. [15:07] bzr-snapshot: allow making "snapshot" commits, so that the latest non-snapshot revision is tagged as such. A "real" commit is then actually a final snapshot, plus a merge into the latest non-snapshot revision. === oubiwann_ is now known as oubiwann [15:08] (This allows storing an intermediate, ugly state of the tree, but since it ultimately happens in a branch that gets merged back, the final history will look cleaner) [15:09] Finally, a plugin that traverses through the working tree and interactively asks the user what to do with each unknown file: delete, add or ignore henceforth. [15:10] I'm not aware of anything underway for those things [15:11] All righ.t [15:12] (I do think that the mtimes should be stored by the core in the inventory, though.) [15:12] well we have the time of the commit [15:12] which is more accurate in many ways (consider e.g. revert, touch, etc) [15:13] I don't mean that the mtimes should be utimed to the working tree during checkout. [15:14] But they are useful information. [15:14] Suppose I edit a file in the working tree but forget to commit, and after some weeks edit some more and then commit. [15:15] Then it's nice to retain the information about the earlier editing. [15:15] lifeless: ping [15:15] pon [15:16] lifeless: When would be a good time to look at colocated branches / foreign branches this week? [15:16] tomorrow perhaps ? [15:18] lifeless: there's quite a few session I have to attend tomorrow, thursday or friday would work better for me [15:18] sure [15:28] Is there some specification for file-ids? [15:29] I think it would be good to have a fixed, custom file-id for the mtime file, but I'm not quite sure if there is some convention for choosing the id. [15:31] jam, do you mind if i put you down as PP next week? [15:32] Lor: I don't think there's any hard-coded file ids other than the now deprecated TREE-ROOT [15:34] But per-tree metadata files that are managed by plugins probably ought to have hard-coded file-ids, since otherwise bad things will happen if two unrelated repositories get merged. [15:34] s/repositories/branches [15:35] On the other hand, _really_ bad things will happen if two distinct plugins choose to use the same file-id. [15:36] A namespace convention would be useful for preventing collisions. [15:39] Lor: the path is sufficient, I think. the plugin can handle merging appropriately [15:40] Uh, how can it be handled appropriately if two mtime files have been created in two unrelated branches, with different file-ids, and then those get merged (joined, in practice)? [15:42] Hm. Doesn't the .bzrmeta directory (which, I gather, is the officially recommended place for data stored by plugins) also have a fixed file-id? [15:42] Or shouldn't it? [15:42] No, it doesn't have a fixed file-id. [15:42] It might be nice if it did. [15:42] But even the tree root doesn't... [15:43] Oh, that has changed? [15:43] How then are two unrelated branches merged? [15:44] Ah, it's an error nowadays. [15:44] Hmm, not sure how different tree roots affect it, but I'm fairly sure "bzr merge -r 0..-1 $unrelated" manages to do something useful. [15:45] I always thought that it's really pretty that every branch has a common ancestor. [15:45] But obviously that wouldn't work with nested trees. [15:46] So, um, with nested trees, file-ids have to be unique throughout the hierarchy? [15:47] yes [15:47] Then, obviously, all subtree-specific metadata files also have to have unique ids. [15:47] yes [15:48] Well, that decides it. [15:50] So then I need a hook to be run during a join operation, one that migrates the metadata from subtree/.bzrmeta/mtimes to .bzrmeta/mtimes [15:52] Except that no hooks are currently run during WorkingTree.subsume... === oubiwann is now known as oubiwann_ === oubiwann_ is now known as oubiwann [16:12] === IslandUsurper is now known as IslandUsurperAFK === beuno is now known as beuno-lunch === IslandUsurperAFK is now known as IslandUsurper === beuno-lunch is now known as beuno === khmarbaise_ is now known as khmarbaise [19:34] Hi all, I've got a project that is a checkout of a google code repository, but that I also publish to my another repo on my homepage [19:34] now I always need to type 'bzr push && bzr push bm:upstream' to push it to these locations (the bookmarks plugin already helps a ton) [19:34] BUT [19:35] I'm sure there is an even better way to push to these two locations [19:35] (as I always want that) [19:35] but I couldn't find anything in the plugins section or with gui [19:35] sorry, in the wiki [19:35] or with google [19:35] so thats why I'm asking here [19:35] I'm actually also interested in this. [19:35] So please help, how to spare typing those extra characters? [19:36] Lor: Yay, now we're two! :) [19:36] dwt and Lor, make an alias for, say, "push-all" [19:36] If your entire problem is typing more, then... echo. [19:37] I have (or will have) a slightly more complicated situation, though. [19:37] IslandUsurper: alias means that it is global and not local to one repository, right? [19:38] dwt, I think you can have both [19:39] I'm not sure about it now, though. I may have been thinking of git :-/ [19:39] IslandUsurper: Those seem to be defined in ~/.bazaar/bazaar.conf [19:39] can I have one of those per project too? [19:39] there's a branch.conf [19:40] in .bzr/branch/branch.conf [19:45] http://wiki.bazaar-vcs.org/ConfiguringBzr Aliases cannot be specified in locations.conf or branch.conf [19:45] :-( [19:45] Other ideas? [19:45] Why does this need to be branch-specific? [19:45] Well, repository specific would be fine for me [19:46] but as far as I understand that means it has to be in locations.conf or branch.conf [19:46] right? [19:47] There are all kinds of kludges (or non-kludgy Real Solutions) you could do, but I'm not sure if they're worth the effort. [19:57] Hrm…., well, I can always resort to makefiles / scripts as a last resort [19:57] I'd rather hoped to avoid that though [19:59] It's pretty simple to write a plugin that modifies the push command so that multiple push_locations are supported. [20:01] Frankly, the api is a bit messy, though. [20:01] Too much of the logic of ordinary commands is in the actual command classes. [20:02] Doing an ordinary push from python code should preferably just be a single method call without parameters. [20:25] Yeah…. Well, maybe if the internal implementation is simplified I might give it a go [20:25] :-) [20:35] Wait a sec... a commit hook only gets access to the branch, not the working tree? [20:38] uhm, yes/no/maybe? [20:39] Sorry, I have no knowledge of bzrs internals. :) [20:45] Ah, I was looking at pre_commit when I really should have used start_commit. [20:54] If the current working tree is in a state of an uncommitted merge, is there a way to find out which of the currently modified/added files came from the merge without conflicts? [20:57] Also, what's a ghost revision? [21:16] Why doesn't Tree.changes_from() support specific file_ids? [21:16] It seems funny that an api supports specifying an argument as a path (which is then converted into an id) but not directly as an id. [22:32] moinmoin === IslandUsurper is now known as IslandUsurperAFK