/srv/irclogs.ubuntu.com/2010/01/23/#bzr.txt

hichamanybody in here ?00:02
nailuj24nah00:03
hichamhow can i reduce the revision size when checking out a repo ?00:04
hichamany hint nailuj24 ?00:04
nailuj24hmm, i don't know, but someone in here probably does00:06
nailuj24let's just wait a little :)00:06
methodscan i push to a checkout and have it instantly cause the checkout to update ?00:08
hichamif bzr forces everybody to download the whole history then that is just weird00:09
nailuj24hicham: it's the way most dcms' work00:10
hichamnailuj24 : not git anyway00:11
hichamnailuj24 : in git we have the --depth switch00:11
nailuj24hicham: not? how do you revert to an older version then?00:11
nailuj24ah i see, never mind00:11
nailuj24i'm sure this is possible somehow00:12
hichami don't know why canonical is duplicating efforts00:13
hichamthey created bazaar to make our life more complicated00:14
nailuj24lol00:14
nailuj24they created bazaar to make a good and easy-to-use dvcs00:15
nailuj24and cross platform, by the way00:15
hichamwhat was first git or bzr ?00:15
nailuj24bzr i suppose, but let me google it :)00:16
Nafaihicham: I'm pretty sure bzr was started first, but it didn't meet the kernel team's needs, so they started git00:16
Nafaiand bzr is derived from earlier efforts, going back to Tom Lord's tla00:16
nailuj24bzr was 1 month earlier00:17
mzz1 month? that doesn't sound right00:17
* mzz checks00:17
* nailuj24 is taking his info from http://www.infoq.com/articles/dvcs-guide00:18
hichamwell, can somebody tell me how to reduce the revision log downloaded ?00:18
hichami get more than 100Mb for 5Mb of sources !00:19
mzzmmm, git's older than I thought then.00:19
hichamcanonical as always is wasting money on duplicate stuff00:21
hichambzr, launchpad, notify-osd ...00:21
mzzthere might be a way to do what you want using stacked branches, but I'm not sure (and definitely don't know how)00:21
nailuj24hicham: well, if the new solution is better than the original one00:23
hichamnailuj24 : i don't know, they develop solutions for internal use only00:24
hichamnailuj24 : not like redhat00:24
mzzyou're not making sense00:25
Nafaihicham: canonical is more than happy to share things up upstream00:25
mzznotice how bzr and notify-osd have always been open source and launchpad is now also open source00:25
Nafaihicham: In fact I was just hired to work on converting some things to a new application indicators api and I am going to do my best to get things upstream00:25
mzzalso, please try to keep this channel about bzr, not about how canonical should encourage open source development.00:26
hichammzz : sorry, sorry, i am just a little bit frustrated with bzr, not familiar with it00:26
mzzhicham: I feel the same way about those silly projects using git :P00:26
Nafaihicham: me too, used to git, but I'll get used to it :)00:26
RAOFhicham: To answer your actual question - you can use “bzr checkout --lightweight” to get svn-like behaviour.  That is, you'll only have the current revision locally.00:27
hichamRAOF : thanks a lot !!!00:27
mzzthat's not quite svn-like, since you also don't have the *current* revision locally, just the working tree.00:27
mzzso a lightweight checkout whose branch is remote will be awkwardly slow for some common operations.00:28
RAOFThis is true.00:28
mzzof course you may prefer that over a full branch anyway.00:28
hichami don't want any revision00:30
hichami just want to do a simple checkout !00:30
hichamshould i be forced to pull 100Mb for 5Mb of sources ?00:30
mzzhicham: then see what RAOF said00:43
hichammzz : thanks00:43
* mzz thinks he didn't describe the difference between svn checkouts and bzr lightweight checkouts correctly00:43
mzzhicham: what I meant is that with a lightweight checkout things like "bzr diff" (to compare the working tree to the current revision) go over the network00:44
mzz(that is: if they're a checkout of a branch on the network)00:44
mzzso you do have the source code locally, it's just that pretty much all bzr operations that need already-checked-in data access the network (that's slightly different from svn, which keeps a local copy of just the current revision)00:45
abadger1999Question, is bzrlib/patches.py supposed to deal with any patch or only patches created by bzr?00:46
=== nailuj24_ is now known as nailuj24
jmlI'm thinking of writing a plugin command called "bzr better"01:14
jmlit will tell you if your change makes the code better or not01:15
jmlusing a simple algorithm.01:15
nailuj24lol, how can machines find out something like this? i'm interested.01:15
jmlif the diff deletes more lines than it adds, it is better.01:16
nailuj24well, that may not be very accurate, but okay for projects who've already been around for a while01:17
Pengjml: Check if it's adding or removing XXX/TODO comments. :D01:21
Pengjml: And the presence of the words "ugly" and "hack".01:21
Pengjml: Alternately, have it send the diff to Amazon Mturk.01:22
jmlPeng: no, I think simple is good. Besides, I already have a plugin that checks for XXX / TODO comments in diffs.01:22
KilrooI think I've figured out the way I can get the most benefit from using bzr with the screwball svn repositories I deal with at work until I have time to insist on getting them fixed.01:23
jmlwhich I can't find on Launchpad :(01:23
KilrooAssuming I can manage to get it set up right.01:23
KilrooShared no-trees repo per project, with one branch bound to the subversion repo and local feature branches as I feel like making them, and a lightweight checkout in my actual Eclipse workspace that I switch between branches to accomplish things.01:25
KilrooAnd I think I might be figuring out a way to do something fairly similar for the projects that are still on bare ftp by having an rsync for pulling down other people's changes.01:27
KilrooThen maybe when I try to explain what the heck I'm doing they'll get confused and I can tell them well it would be a lot simpler if we'd actually use real version control in a sensible way...01:28
=== nailuj24_ is now known as nailuj24
KilrooOh yes...and of course, for the projects that have them, I'll need one branch bound to the production subversion repo and one bound to the development repo.01:32
mac9416How do I revert my branch to a previous revision?01:33
Kilrooum...bzr revert -r<revision>, ain't it?01:35
mac9416I don't think so. Doesn't that revert changes since the last commit?01:36
KilrooCorrection, I think that'll undo the revision specified, so it'd be <revision+1> if revision is what you're aiming for...01:36
Kilroohttp://doc.bazaar.canonical.com/bzr.dev/en/user-reference/revert-help.html01:37
mac9416Thanks. Think I've got it now.01:38
=== Adys_ is now known as Adys
mkanatHey mwhudson. Got your email.02:41
mobodoHi, I'm trying to write a scrip that can be run from a web page that lets me download a bzr branch as a tgz file - is it possible to bzr branch directly to a tar file?02:44
mobodo(I'm guessing not, but I'm asking just in case)02:44
mkanatlosa ping03:08
mobodois there a bzr release command that can remove the .bzr folders?03:20
Pengmobodo: Do you want "bzr export" here?03:22
RAOFbzr export is probably what you're after.03:22
PengJinx!03:22
jmlmkanat, you're unlikely to find a losa now.03:25
mkanatjml: Okay.03:26
jmlmkanat, they've got 6x24 coverage.03:26
mkanatI just need a backtrace from loggerhead next time it freezes.03:26
mkanat(Before it's restarted.)03:26
jmlmkanat, ahh right, like the bug report says?03:26
mkanatjml: Yeah, I added the note to the bug report, so I think it should be OK.03:27
jmlmkanat, I reckon that mwhudson can arrange that w/ spm when they are both in on Monday03:27
mkanatjml: Okay.03:27
jmlPeng: lp:difftodo is my thing for getting the XXX comments, btw,03:27
Pengjml: Oh, neat.03:33
jmlPeng: if you use emacs, it's even more handy, since it makes XXXs look like compile errors so you can easily jump to them.03:34
PengI do not use emacs. :P03:35
PengNano is about as much as I can handle.03:35
jmlhmmm. how do I get the bzr nick of a branch via the api...03:35
* jml does builtins03:35
jmlbranch.nick, yay03:35
PengBe careful when getting the nick. For example, in a lightweight checkout, do you want it to check the branch, even if it's remote?03:36
jmlPeng: in this context, the circumstances are very, very tightly controlled03:37
=== Sam__ is now known as SamB_XP
mobodobzr export is exactly what I needed :)04:54
mobodois there a way to export to stdout?04:55
mobodogot it, n/m04:56
=== verterok_ is now known as verterok
grettkeHi folks, question... I've got a shared repo that is served up over bzr. I would like to rename a project within it. Can I just rename the folder, or, is it more than that?15:04
=== khmarbaise_ is now known as khmarbaise
ronnygrettke: should be enough15:11
grettkeronny: thanks I will test it out...15:12
keithyI want to have a project, but within that project there are some very large files, so I would like them to branch, only with the latest version, without the history. Is that possible?16:23
maxbkeithy: If you literally want to drop all history, why not simply import the content into a new empty branch16:45
nailuj24keithy: you can bzr checkout --lightweight16:49
nailuj24this will only get the latest revision, i think16:49
keithynailuj24: hi... I know about lightweight, however, I want to a) branch and b) only mark 2 files for "lightweight" treatment16:59
nailuj24hmm, tricky, i'm not sure whether this is possible17:00
gerard_keithy: do these large files change often?17:02
keithyyes17:20
keithythe large file is the build product of the small files17:20
keithyso you want to supply the starting point to the user17:21
keithybut not every single starting point ever17:21
maxbkeithy: That sort of file should not be version-controlled at all17:31
keithymaxb but it has to be18:04
keithybecause18:04
keithyyou start with the starting point and build on it18:05
keithyevery so often you save a new waypoint18:05
keithythe user only needs the most recent waypoint18:05
keithyif you dont version the waypoints then the builds dont work, because things get out of sync18:06
Glenjaminif its the build product of the small files, cant you just build it from them?18:17
maxbkeithy: um, the build requires the output of a previous build?! How painful18:37
lifelessvila: hihi18:53
vilalifeless: reading your answer :-) I agree, I hit reply too fast.18:54
vilas/patch_attribute/restore_attribute/18:54
lifelesswell yes18:54
vilabut other wise I see you point18:54
vilaalso, that doesn't address several cases (but addAttrCleanup either):18:55
vila        def restoreDefaults():18:55
vila            msgeditor.hooks['commit_message_template'] = []18:55
vilaor anything else like that where you want to restore only part of an object18:56
lifelessright18:57
lifelessbut again it still isn't either part of executing a test, or of making an assertion18:57
vilaIt also means that we now do: addCleanup(restore_attribute()) ; set new value18:57
lifelessso I don't think it should be put on TestCase18:57
vilapracticality beats purity ? I was thinking about TestCase.overrides(obj, attr_name, new_value) and makes it handle objects, lists and dicts18:59
vilaeven less pure :)18:59
lifelesspractical only gets to claim that when it might be nicer to use19:00
lifelessif you give patch_attribute a new attribute value it could set the attribute at the time19:00
lifelessbut I think that19:00
lifelessself.addCleanup(restore_attribute(...))19:01
vilalifeless: I'm deploying it on the bzr code base to see, 80% done, that removes a lot of code19:01
lifelessthing.value = new_value19:01
vilayup19:01
lifelesswould be clearer to read19:01
vilayeah, may be19:01
vilaand we can add restore_dict_item19:02
lifelessanyhow, you don't need to restore hooks :P19:02
lifelessIt would be good to stop changing global state quite so much.19:02
vilatrue, I may address that in a different commit (hooks)19:02
lifelessvila: I don't know what you mean by that19:03
vilaand changing global state, yeah, but that's out of scope here :)19:03
lifelesshooks are already globally reset by the test framework19:03
vilayeah19:03
lifelessby restoring the entire hooks object, not individual lists19:04
lifelessIIRC19:04
vilaI may address: 'stop restoring hooks because it's useless' in another commit different than the one where I deploy addAttrCleanup/restore_attribute19:04
lifelessok19:04
lifelesswhere are we manually restoring hooks?19:05
vilasearch for restoreDefaults, I think I've seen 2 occurrences so far19:06
vilamost probably it predates the test framework handling19:07
SamB_XPjust make sure you don't get any commits with messages like "silly commit" somehow ;-P19:08
luke-jreveryone should "affects me too" on https://bugs.launchpad.net/bzr/+bug/67174 plz :P19:09
ubottuUbuntu bug 67174 in bzr "[master] record cherry-pick merges" [Medium,Confirmed]19:09
lifelesshmm added by jelmer in april 200819:10
lifelessmust have missed it when adding hook restoration/didn't review it myself or something.19:10
vilalifeless: no big deal :D19:10
gerard_"Subversion supports this now :)"19:22
gerard_now just the distributed vcs part...19:22
luke-jrheh19:27
luke-jrtbh, I think most projects only use Bazzar over Subversion for the merging capabilities ;)19:28
gerard_pfff... this merge stuff is complicated19:45
gerard_is there a document somewhere about what bazaar does internally19:45
gerard_it's not much code, but its hard to see what is going on19:46
vilalifeless: mwhahahaha bzrlib/plugins/launchpad/test_lp_api.py TestDependencyManagement.patch(self, obj, name, value)20:14
Glenjamini dont get it?20:17
gerard_pretty ingenious20:18
Glenjaminthats just stubbing a method surely20:18
vilaGlenjamin: read the logs, we discussed an alternate way to do that with lifeless a couple of minutes ago, it's fun to find an existing implementation :D20:19
Glenjaminare there any mocking frameworks?20:19
Glenjamini know ruby has 2 or 3 gems which provide easy ways to do mocking20:19
vilaGlenjamin: search bzrlib/tests20:19
Glenjaminand stubs20:19
vilaGlenjamin: or have a look at lp:testtools, lp:subunit, lp:testscenarios or ask lifeless and jml for more :)20:20
gerard_could I have some comments on http://launchpadlibrarian.net/38202975/prevent_merges.patch for bug #113809 ?20:37
ubottuLaunchpad bug 113809 in bzr "update performs two merges" [High,Confirmed] https://launchpad.net/bugs/11380920:37
=== arjenAU2 is now known as arjenAU
vilagerard_: I'm leaving so I can't comment right now, but do a merge proposal instead of adding a patch to a bug, you'll get more feedback sooner (instead of eventually no feedback at all)20:38
gerard_hmm ok20:38
gerard_but I know it's not good enough for a merge right now20:38
gerard_should I still do a merge proposal then?20:39
vilaI'm pretty sure the process is documented in doc/developers/HACKING.txt, if not, file a bug :)20:39
vilagerard_: oh yes, no problem with that, just say so in your cover letter20:39
* vila really off now20:39
gerard_ok, bye20:39
lifelessGlenjamin: yes, there are mocking libraries for python20:45
timClickswhat is the easiest way to move to "checkout --lightweight" to a full-blown branch?21:40
timClicksi just want to commit locally then push to my new branch on lp21:41
mzztimClicks: you probably want "bzr help reconfigure"21:59
timClicksmzz: thanks22:00
yacoobaaargh.23:45
yacoobdoes bzr has any problems with smbfs?23:45
yacoobbzr: ERROR: Could not acquire lock "/Volumes/archiwum/bzr/go/.bzr/checkout/dirstate": (45, 'Operation not supported')23:45
yacoobfunnily enough, I didn't have this kind of problem with previous versions of bzr23:48

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