=== ajaksu is now known as ajaksu_away === ajaksu_away is now known as ajaksu [01:00] I've tried importing an svn repository using svn-import of the bzr-svn plugin via bzr 1.3 using both the none and branch schemes, and it doesn't seem to preserve history across what were svn cp's [01:01] is there anything fairly easy one can do to automatically get the revision number into a controlled source file on commits? [01:02] nysin: that's correct, bzr does not support copy tracking [01:02] what I did now is I have version = 120 in one of my files that I try to remember to manually increment each time -- but it's a losing battle [01:02] Oh. I took "Follow branch copies. Revision history is not truncated when a branch was copied in Subversion." from the BzrForeignBranches page to mean something else? [01:03] nysin: that's copies of branches, not copies of directories or files [01:03] Ah, alright. [01:04] Which means that it doesn't matter which branching scheme svn-import uses with regards to intra-repository history tracking? [01:05] (The reason I tried to use scheme=none was to get that history) [01:05] nysin: yes [01:07] Okay, thanks. [01:10] nysin: Or perhaps, another way to look at it is [01:10] nysin: only copies of the root of a branch are tracked [01:11] nysin: so if you copied /branches/foo to /trunk and you use scheme=trunk, bzr will keep the history of that branch [01:11] nysin: if you use scheme=trunk and you copied /trunk/foo to /trunk/bar, that will not be tracked [01:11] Hm. That's more or less what I did. The former. [01:11] But I guess not via a branch. [01:12] It started as /svn/trunk, then a big change happened, so I split off that version to /svn/branches/foo and branches/bar [01:12] And then finally branches/bar back to /trunk when it stabilized [01:12] But it was all via svn copy [01:13] it should show all history for that then [01:13] How might I determine why it isn't, then? [01:14] Or, maybe it is an I'm missing it somehow [01:14] is this a public repository? [01:14] The svn is, yeah [01:14] URL in a moment. bzr is all local so far [01:14] http://colon.ath.cx:8008/svn/ should work [01:15] * jelmer tries with bzr-svn 0.4.9 [01:16] /trunk/foo is branches/wtl [01:16] /trunk/bar is branches/smartwin [01:16] er /branches/... for the first two in those [01:17] Oh, yeah, and that's the bzr-svn version I was using too, from Debian unstable. [01:19] ScriptManager.{cpp,h} as well as the scripts/ directory are files that should have retained a history amongst the longest... [01:21] nysin: branches/wtl and branches/smartwin are unrelated in that svn repository [01:22] yes [01:22] wtl should have no offspring to speak of [01:22] nysin: where exactly were you expecting it keep history but it isn't? [01:23] Alright, for example the scripts directory [01:23] which was copied around unchanged from one part to another [01:24] from wtl into smartwin you mean? [01:24] As well as trunk/ from smartwin/, which is just a big scp copy [01:24] yes [01:24] er [01:24] svn copy [01:24] nysin: that's a directory copy though [01:24] Which you said wasn't covered, yes [01:24] nysin: not a branch copy [01:24] I guess I wasn't clear on that distinction whilst using svn - it worked about as well either way [01:25] the copy from /branches/smartwin to /trunk appears to be picked up correctly here with history retained [01:25] hm. [01:25] nysin: svn doesn't have a notion of branches [01:25] which is one of its strongest advantages and one of its weaknesses :-) [01:25] Yeah, and its documentation discusses copies as 'light branches' of sorts [01:25] I really like that [01:26] Verifying locally though [01:26] the history... [01:27] Yeah I don't see it [01:27] "bzr log formatting.lua" has only one entry [01:27] in trunk. [01:29] nysin: that's correct, because it was introduced by a directory copy (r820) [01:30] Yeah, which you said before etc. I had accepted that and then I got confused when you said you did in fact see some cross-branch history preserved [01:30] nysin: right, with copies such as the one in r818 history is preserved [01:32] Alright, but when I actually go and check that in the wtl directory... [01:33] branches/wtl$ bzr log --short changelog.txt [01:33] 818 cologic 2008-01-18 [01:33] archive WTL 0.699d version [01:33] And that's it [01:33] It did have a history before that.. [01:33] nysin: I mean r818 in svn [01:34] Yeah my current bzr is no-branches so they match revision-wise [01:35] svn818 is the trunk -> wtl branch in both repositories specifically. [01:35] or bzr818 [01:36] But regardless, I'm trying to see what history you're saying it's preserving? I might be missing something there [01:36] That's only true for scheme=trunk [01:36] Which causes /trunk and /branches/wtl to both be considered branches [01:36] hm? scheme=trunk produced local revision #s [01:37] revision numbers are per-branch in bzr [01:38] Sure, so they weren't going to match svn. Which is fine and all, but just means that I don't see what correspondence you say works with and only with scheme=branch? [01:39] history preservation only works when copying branches [01:40] scheme=trunk causes "/trunk" and /branches/* to be considered branches [01:40] scheme=none considers "" to be considered a branch [01:40] ah [01:40] Now it makes sense [01:40] s/considered// [01:40] I've been looking at the no-branch version (I archived both so I'll go look at the branching version now...) [01:45] ahh [01:45] Much better. [01:50] It would be nice if bzr could support file copy tracking at some point, even if just for log and annotate [01:51] When I was Googling I found some mailing list messages all the way back from the 0.10 era agreeing with that [01:53] And, especially, since svn at least does treat copies as 'branches' of sorts, then it seems pretty useful. [02:08] Oh, there's even a spec on it ( https://launchpad.net/bzr/+spec/filecopies ) which gets at the usage scenarios [02:35] i swear i got bazaar to include the diff in the commit note (in the ignored section) somehow, but i can't remember how i did it :/ [02:35] is it a config option? [02:36] tro, just do bzr commit [02:36] without -m [02:36] ah, no, wait [02:36] all i get is the modified files list [02:36] yes, that's right [02:37] bzr ci --show-diff [02:37] aha [02:52] why is bzr always telling me about conflicting tags? i just moved the tag, i want it to be moved on the remote branch as well [02:52] sorry, i left by mistake [02:53] Stavros: push --overwrite [02:53] o [02:53] hmm, thanks [02:53] shouldn't that be done normally, though? [03:00] Stavros: bzr won't overwrite a tag by default, because it doesn't know which one is the one you want to use. [03:01] oh [03:01] so it doesn't save the change of the tag as well, huh.. [04:10] New bug: #212645 in bzr-svn "cannot import name CachingParentsProvider" [Undecided,New] https://launchpad.net/bugs/212645 [04:40] New bug: #212649 in trac-bzr "Viewing a changeset in trac 0.11 produces traceback" [Undecided,New] https://launchpad.net/bugs/212649 === mwhudson__ is now known as mwhudson [06:32] What are the differences between bzr branch, clone and get? [06:33] there are none [06:33] cammoblammo: $ bzr help branch | grep Aliases [06:33] Aliases: get, clone [06:33] cammoblammo: they're all the same command [06:35] Ah. I thought I saw that somewhere, but I couldn't find it! [06:35] Thanks [06:47] I've got an existing working branch that I want to turn into a shared repository without the tree. What's the canonical way to do it (or can I just copy the branch and remove all the non .bzr directroies?) [06:49] cammoblammo: branch it into a shared repository (initialise the repo with "bzr init-repo --no-trees PATH") [06:50] That's what I thought. I wasn't sure if that worked for already existing repositories. [06:57] Okay. I successfully tried "bzr init-repo --no-trees --rich-root-pack SharedRepo" [06:57] However, "bzr branch OldRepo SharedRepo" complains that the repo exists already. But of course it does... [06:58] Hang on, shouldn't I be using the import command? [07:04] Don't worry folks, I'm having a brain fart. I've figured it out, and yes I am embarrassed. [07:04] ;-) [07:16] does bzr preserve perms and ownership? [07:17] no === Verterok is now known as Verterok_ [07:17] alas [07:17] bah looking for a good solution to manage my server config files such as /etc [07:17] svn does it but only with a wrapper [07:17] etckeeper [07:18] (which layers on top of bzr) [07:18] ahh ok [07:18] does it hook into rpm as well? [07:19] dunno [07:23] one last question do newly created files and dirs get automatically added to the repository? also are deletes removed? [07:28] Can an existing branch be turned into a --no-trees cwntral repo? [07:30] exothermc_: bzr records deletions automatically, but not additions [07:31] not sure what etckeeper does on top of that [07:31] ok [07:31] cammoblammo: not, afaict, through the ui [07:31] cammoblammo: bzr reconfigure --no-trees would get rid of the working copy, though [07:32] cammoblammo: is the branch just too big for you to create the repository and then branch into it? [07:34] I'm trying to reconfigure my set up so I can put my repo on a server at home rather than the free piece of rubbish my ISP gives me (no ssh, etc.) [07:35] ok [07:36] so, is "bzr init-repo --no-trees --rich-root-pack repo ; bzr branch /your/branch repo/branch" what you wany? [07:36] Something like that. I did try that sort of thing, but I had problems. I'll try it again and see if it an operator error ;-) [07:39] Hm, same thing. I end up with a treeless version of my branch in a directory in the repo. [07:40] So it looks something like /home/cammoblammo/repo/branch/.bzr [07:40] With a .bzr in the /repo directory as well. [07:40] cammoblammo: isn't that what you're after? [07:42] Not quite. I was after /home/cammoblammo/repo/.bzr without anything else in there. That's how my current repo at my ISP looks. [07:43] standalone repos always have .bzr in the root and in the branch... [07:44] what you have at your isp looks like it's just a standalone branch with no working tree... [07:44] That's what I'm trying to get here. Isn't that how it's supposed to look? [07:45] not if you want a shared repository [07:45] what was your original goal (i.e. not "make it look like the existing one")? [07:48] I need to be able to access my repo from work. I used to run a svn server here at home, but when I changed to bzr I moved the repo to my ISP to save space on my home machine (not to mention give me more reliable access when I'm on the road). The ISP only lets me use ftp, though, which is a big performance hit. I want to move it back to try using bzr+ssh. [07:48] ok [07:51] sounds like a shared repository would work well for you. 'bzr init-repo --no-trees repo', then branch things into it. the branches will be in subdirs under repo (and have their own, small .bzr dirs), but all the revision data gets store in repo/.bzr, so it's not duplicated. [07:52] Well, if that's what I have to do ;-) It will look a bit silly though --- I'm only running one branch. Of course, I don't have to look at it, do I? [07:53] ah, ok, now I understand [07:53] As another thought, will it work if I just copy the directory at my ISP? It's probably dirty, but... [07:53] don't make a repo then, just create a branch [07:54] that will work fine [07:56] Out of interest, is there any reason I shouldn't just copy the repo over? [07:58] btw, "repo" is generally used to mean something else (what init-repo produces) in relation to bzr, hence my confusion earlier [07:58] sure, you can copy it over [07:59] Oh well then, problem solved! I've never seen that sort of approach mentioned in the docs, so I figured it must be discouraged for some reason. Then again, that's how I got it to the ISP in the first place. [08:00] "bzr branch /home/cammoblammo/repo/ ftp://blahblah" should just work, as well [08:03] Hmm, let's see... [08:04] * cammoblammo is waiting very patiently...! [08:05] Well, something's coming down the tubes... [08:21] bob2: It worked, but it wasn't treeless, even though I initialised the repo that way. Oh well. [08:23] oops - bzr reconfigure --branch ftp://... [08:40] bob2: Yeah, I picked up on that. [08:40] Hang on, no I didn't. [08:41] Let me see now... [08:50] Well, close! I took a copy of a standard working branch and ran the reconfigure command over it and it worked. [08:51] Now for another problem :-( ! [08:53] ok [08:53] I can check the shiny new repo out locally, but via bzr+ssh I get a problem: ERROR: Repository KnitPackRepository(local details) is not compatible with Repository RemoteRepository(Repo details) [08:54] what does "bzr info" say when run in the same location that is giving you that error? [08:54] Do I have to change the repository format? [08:56] ? [08:56] Sorry, missed your message. One sec... [08:57] Bound branch format: pack-0.92 [08:58] The repo (if I can use that word) is rich-root-pack. [08:58] that's the entire output? [08:58] the related branch part isn't important [08:58] Yes, apart from the Location and binding info. [08:59] whici is what I wanted to se... [08:59] Oops. One tic... [09:00] branch root: . [09:00] the error could be because you're inside a repo made with init-repo, or it could be because you're co'ing from rich-root-pack [09:01] Hmm. I'm trying a clean checkout, so I'm not inside anything relevant (and I did check that). [09:01] Is there a problem co'ing from a rich-root-pack? [09:01] ah, ok. it's because co has a bug and uses the bzr default format for the checkout, instead of the remote branch format [09:02] Yay me! I didn't do something wrong (for once). Is there a work around, or do I have to somehow reconfigure the repo? [09:03] you can either: "bzr branch ftp:/// foo ; bzr reconfigure --checkout foo" or "bzr init-repo --rich-root-pack repo ; bzr branch ftp:// repo/blah" wwwwwwwwww [09:03] note that rich-root-pack is generally only useful if the branch came from svn (or you're z bzr developer) [09:04] Really? Someone here told me it was now the default and I should upgrade. [09:04] Grr. [09:05] Anyway, let's give it a go... [09:05] default's still pack-0.2 afaik [09:06] Don't believe everything you see on IRC! [09:06] you can generalize that to The Internet :) [09:07] ;-) [09:07] Actually, you can generalise that to anything involving, well, anything. [09:11] Guess what guys? IT WORKED!!!!! I now have a treeless copy of my project which is functioning as a shared repository for at least two other machines, and I've lost no history along the way, but I have gained bzr+ssh functionality. YIPPEE!!! [09:12] (Now I can get back to work) [09:12] Dammit. [09:12] yay [09:12] Oh yeah, thanks bob2 (and everyone else for putting up with the noise). [09:13] no worries [09:13] See you on #emacs! [09:13] ciao [11:12] Hello there. I was wondering, has any of you managed to set up svn integration in Bazaar on OS X? [11:12] I'm having issues with python bindings. [11:14] I compiled svn 1.6 from source and installed python bindings with 'make install-swig-py' but bzr keeps telling me "Installed Subversion version does not have updated Python bindings." [11:15] And whenever I try to run 'from svn import fs, repos, core' in python it says: [11:15] http://pastie.caboo.se/176037 [11:18] Any ideas? [11:21] alows [11:21] hello [11:22] lol[ [11:57] matid: did you follow the instructions on the wiki? [11:58] jelmer: Yeah, I did. [11:58] You're referring to http://bazaar-vcs.org/BzrForeignBranches/Subversion right? [11:59] They refer to svn 1.5 even though trunk is 1.6 now, so atm I'm trying to build it with the 1.5.x branch. [11:59] We'll see if it works. [11:59] yep [12:12] jelmer: No luck. [12:13] Still the same issue, both with svn 1.6 and 1.5 [12:14] you probably have another svn install that's conflicting with the one you just installed [12:17] jelmer: Yeah, I've got one that is installed with Mac OS X by default, but it shouldn't conflict with the new one... [12:20] matid: I don't know then, sorry. [12:21] it's getting the wrong svn library for some reason though [12:27] OK, thanks for your help anyway. [12:27] I'll try to work it out on my own. [12:33] if I have a shared-repository on a remote server (sftp), can I push a new branch on that server? [12:34] pbor: as far as I know yeah, there's no problem in doing that [12:35] bzr push sftp://yourserver/your/directory/ [12:35] * pbor tries [12:35] yeah [12:36] the shared repo docs only mention "branch", that's why I ask [12:40] worked great [12:40] awesome [14:41] I had a branch in a shared repository. I did: $ bzr reconfigure --lightweight-checkout; then $ bzr reconfigure --branch . Now the branch is missing revisions. Any way to get them back? [14:50] matthewlmcclure: What does `bzr info` report the repository location (of the branch) to be? [14:51] $ bzr info [14:51] Repository tree (format: pack-0.92) [14:51] Location: [14:51] shared repository: /c/home/mlm/sandbox/bzr/repo [14:51] repository branch: . [14:57] That's odd. [14:57] I don't really know what else to try... [14:58] matthewlmcclure: installing the heads plugin and using that may help you resurrect the missing revisions. [14:59] james_w: presumably because they are in my shared repo still? [15:00] matthewlmcclure: yeah, they won't have been deleted. [15:01] Can anybody explain http://dpaste.com/43416/ to me? I try to update an SVN repo. [15:02] Sorry, forget it, my fault. [15:05] james_w: thanks... is this a bug/missing feature in 'reconfigure'. shouldn't it protect the user from this? [15:09] matthewlmcclure: it sounds like it may be a bug. [15:09] it would be interesting to know what about your setup caused it [15:09] it may be the fact that you were in a shared repo, or it may have been something else. [15:10] i'll see if i can reproduce [15:12] matthewlmcclure: When you say they're "missing", what do you mean? Log doesn't include them? [15:12] right, log doesn't include them [15:15] Strange that it would do that. Is there anything significant about the revision where it stops? [15:18] the broken branch had a parent in the shared repo, and the last rev in the broken branch is the parent's last rev [15:19] I have trouble imagining how a bug like that could work. If you can reproduce it, that would be great. [15:20] Oh, okay. [15:21] let me see if it could be the reconfiguration to lightweight checkout. [15:21] that would be my guess as to when things went wrong [15:23] Yeah, that's it. [15:24] It's not really sensible to convert a branch with unique revisions into a lightweight checkout, because whatever it's a checkout of won't have those revisions. [15:24] so it's official that i know just enough to be dangerous now [15:24] I'm sorry about this bug. I'll add a check [15:25] I can help you recover the revisions. [15:25] i don't actually need them in this case, but thanks for offering [15:25] Okay. [15:27] hm... actually, i am curious if there's a way to recover a branch from a repo; say, if i had deleted the branch's directory [15:28] You can create a new branch with the same tip. [15:28] First you have to find the revision-id of the branch tip. [15:28] The heads plugin is useful for this. [15:29] got it. thanks [15:29] Then you branch from any branch in the repository, and specify -r revid: [15:36] New bug: #212853 in bzr "AssertionError: 17 != 18 when trying to comuit to bzr.debian.org" [Undecided,New] https://launchpad.net/bugs/212853 === weigon__ is now known as weigon [16:56] The docs show some examples that use abbreviations for URLs, like "bzr branch m:/cool-trunk [16:56] where is that abbreviation format described? [16:59] offby1: there's an "m:/" described? [16:59] there's "lp:/" provided by the launchpad plugin that is shipped with bzr. [17:01] there's both! [17:02] there is bz-bookmarks [17:02] .../doc/en/user-guide/branching_a_project.txt, r3336, line 60 [17:03] offby1: that's a windows drive, "m:/" [17:05] right, but check bzr-bookmars as asabil said [17:05] er, bzr-bookmarks [17:06] oho [17:07] I also created my local repository by doing "bzr branch lp:bzr" [17:31] New bug: #212908 in bzr "fetch all from a repo with identical contents fails with pack repos" [High,Triaged] https://launchpad.net/bugs/212908 [17:45] New bug: #212917 in bzr ""make check" got an internal error" [Undecided,New] https://launchpad.net/bugs/212917 === Verterok is now known as Verterok-laptop === lamont` is now known as lamont [20:23] New bug: #212979 in bzr "trying to do checkout of some django code" [Undecided,New] https://launchpad.net/bugs/212979 [20:25] good afternoon. [20:27] I'm looking for a SCM to integrate into an IDE project that I'm writing, and I've been looking at bazaar as a possible option. The idea is to use a SCM to internally version saves, as well as allowing a user to use an "external" SCM. What I'm looking for is a SCM that will allow me to use a non-standard directory to store the SCM's files, so that I can have two instances of the SCM versioning the same source tree. Can bazaar do that? [20:30] I like bazaar since it's written in Python, which will make it easier to integrate into my IDE (since I'm writing it in Python). [21:35] New bug: #213032 in bzr "allow to change author (name ) and description in past commits" [Undecided,New] https://launchpad.net/bugs/213032 [22:03] I'm probably missing something obvious, but I want to branch a repository onto my server [22:04] I can't access the repo from my server (firewall etc) [22:04] so something like bzr push that pushes the files. What can I do? [22:25] nick125: mm, writing an IDE now? [22:27] TFKyle: yep [22:29] TFKyle: What are you upto these days? [22:30] nick125: looked at crypto/digital signing stuff a while ago, a few days ago I got a fingerprint scanner and made a small thing using pylibusb to access it and get fingerprints from it :) [22:31] Sweet, how much did the scanner set you back/ [22:31] nick125: ~$50 CAD [22:31] That's not bad. [22:33] the scans seem a bit low quality, dunno what sort of quality the other scanners have though (can create 128x128 images, with a few pixels being blacked out for some reason (think the register values I'm using aren't the most perfect combination though, stole them mostly from the kernel driver (that doesn't compile with newer kernels obviously)) [22:35] tried just changing the one required for it to send data, but it seems to produce more heat (or more electricity, not sure), should have a look at what the windows driver does too [22:37] TFKyle: I wonder what kind of program you'd use for reverse engineering the windows driver.. [22:37] nick125: usbsnoop/snoopy is supposedly pretty good for USB devices (logs the traffic to the USB device) [22:40] TFKyle: Aah, fun. I've never tried to reverse enginner anything before. [22:41] (Well, least over USB) [23:09] poolie: up? [23:10] nick125: so, we don't have code in bzrlib to maintain two completely separate trees like you want to; knowing why might help :P [23:12] lifeless: Would it be possible to simply use a different directory for .bzr? [23:15] lifeless: Also, the reason I want to have two trees is so that my "internal" save bzr tree will not conflict if the user uses bazaar for an external SCM. [23:21] nick125: why not simply support bzr alone ? :D [23:22] you can still write repository handlers for other scms ? [23:23] asabil: Well, the idea is that I'd integrate really closely to a SCM to keep an internal save revision tree, that way, if you delete a file or something, you can restore it easily. The only problem with using bazaar for the internal SCM is that it might conflict if the user wants to use bazaar for their "external" SCM. [23:26] how would I get the list of uncommited changes to a working tree? I'm getting a bit lost in the code [23:31] nevermind, got it :) [23:32] nick125: well, you could submit a patch:P. [23:34] Is the .bzr path hardcoded into bazaar? [23:50] no [23:50] and yes [23:50] see, we support svn natively :P [23:51] so there are factory functions to drive a lot of things; you could for instance subclass the stock format and create a .idesave control directory [23:51] which would be a bzr one internally but just change the .bzr -> .idesave [23:51] lifeless: Hmm, how hard would that be to implement? [23:52] I think the setup.py of the plugin would be longer than the code [23:52] ouch :p [23:52] (or you could import bzrlib and register after import, no bzrlib plugin needed then, in which case the code will still be small :P) [23:53] I wonder how hard it is to interface with bazaar in Python [23:53] * nick125 looks at bzrlib [23:53] as a user of ides from time to time, I would prefer to see ide save stuff to be done as a branch off my actual vcs; but thats me [23:54] pydoctor generates good docs, there is developer docs in doc/en/developer/ [23:54] or something like that :) [23:54] bbiab [23:54] Hmm...using a branch could be useful.