sina_ | beginner question: what is bzr's equivalent of "git checkout COMMIT" and "git checkout master"? | 17:34 |
---|---|---|
sina | hello, what is the Bazaar equivalent of 'git checkout X' and 'git checkout master'? | 18:25 |
LeoNerd | Er... bzr checkout URL presumably..? | 18:33 |
sina | I need to examine an old revision of the code, how is that down it bzr? | 18:48 |
sina | *how is that done in bzr? | 18:49 |
LeoNerd | -r123 | 18:49 |
LeoNerd | or whatever the revision number | 18:49 |
sina | bzr checkout -r123? | 18:49 |
LeoNerd | -rtag:SOME_TAGNAME | 18:49 |
sina | bzr checkout -r1 --> "File exists .bzr" | 18:51 |
sina | (sorry I'm very new to bzr) | 18:51 |
LeoNerd | Oh... in an already checked-out directory..? | 18:51 |
LeoNerd | revert | 18:52 |
LeoNerd | Or checkout in a new dir. | 18:53 |
sina | LeoNerd: that worked! thank you! | 18:53 |
LeoNerd | cd ..; bzr co -r123 existindir newdir | 18:54 |
sina | LeoNerd: that is very helpful :) how would you revert back to the latest revision? | 18:56 |
LeoNerd | bzr revert | 18:57 |
LeoNerd | Or maybe revert -r-1 | 18:57 |
LeoNerd | Negative revision numbers count backwards from head | 18:57 |
sina | LeoNerd: that's a nice shortcut | 18:58 |
LeoNerd | Highly useful | 18:59 |
LeoNerd | -c is also useful; represents a change rather than a revision.. -c 10 is the change committed at 10; i.e. between -r 9 and -r 10. Useful for diff, etc.. | 19:00 |
LeoNerd | bzr di -c-1 # last committed change | 19:00 |
sina | LeoNerd: very useful, I'm trying to learn about the dev progress of an opensource project by reading its revisions step by step, so that's definitely going to help! | 19:04 |
LeoNerd | Yup, can be handy | 19:05 |
LeoNerd | Hopefully the project lays tags periodically, perhaps on releases and so on... I tend to do that.. bzr tags should list them | 19:06 |
LeoNerd | Can be useful points to compare between | 19:06 |
sina | LeoNerd: yes, it does (the project is Zim) | 19:08 |
sina | LeoNerd: when/how often would you tag revisions? | 19:11 |
LeoNerd | Well, about 90% of my bzr work is Perl modules for CPAN; so I create a tag per numbered release | 19:14 |
sina | LeoNerd: I see... | 19:21 |
sina | LeoNerd: thank you for your useful tips, it helped to speed up my bzr learning progress :o) | 19:27 |
LeoNerd | :) | 19:28 |
sina | how would you look for a file in all revisions? | 19:46 |
LeoNerd | How do you mean? | 19:50 |
sina | I mean searching all revisions to find a file (for current revision I just do find -name "x") | 19:52 |
LeoNerd | What do you mean "to find a file"... | 19:55 |
sina | e.g. I want to see what revisions have a file named "setup.py" | 19:56 |
LeoNerd | Oh.. well presumablly all of them since it was added.. no? | 19:57 |
sina | is there any way to find out when (in which revision) it was added? | 19:58 |
LeoNerd | Something like "file history"..? | 19:59 |
LeoNerd | I forget quite; it's not a query I usually make. Prettysure it exists, though | 19:59 |
sina | ah yes, I searched for it, it's "bzr log filename" (the file must exist in the current revision) | 20:04 |
LeoNerd | Ahhyes | 20:07 |
=== sina is now known as sinas | ||
=== JasonO_ is now known as JasonO | ||
poolie | good morning | 23:25 |
poolie | hi jelmer | 23:27 |
jelmer | 'morning poolie | 23:28 |
poolie | hey there | 23:41 |
jelmer | poolie: I went through the bfbip LEP the other day to see if there were any requirements that hadn't been addressed yet | 23:43 |
jelmer | poolie: It seems like the main thing that's not well defined yet is the security requirements | 23:43 |
poolie | perhaps we should have a u-d-d or u-d thread about that? | 23:44 |
poolie | or, perhaps make some more concrete proposals in the lep first | 23:44 |
jelmer | poolie: related, I wonder if it would make sense to split bfbip up into bfbia (build from branch into archive) and bfbip (build from branch into primary) | 23:45 |
poolie | the first meaning building eg into a ppa, but with no recipe? | 23:45 |
jelmer | yep, basically - just being able to say from an API call "please build this revisions from this branch into that archive" | 23:46 |
poolie | and then the second would be mostly about just the policy change of letting it go into the primary archive | 23:46 |
poolie | that makes sense to me | 23:46 |
poolie | thanks for looking at this more | 23:46 |
jelmer | glad to be able to work on this :) | 23:49 |
jelmer | I'll gather thoughts and send an email to u-d-d this week | 23:50 |
poolie | ok | 23:51 |
poolie | i'm going to do another pass over the user documentation today | 23:51 |
poolie | both to pick out nits, and for larger changes | 23:51 |
jelmer | ah, cool | 23:52 |
jelmer | poolie, Is all the documentation under https://wiki.ubuntu.com/DistributedDevelopment/Documentation or is there more? | 23:56 |
poolie | ah i actually meant the general bzr documentation | 23:57 |
poolie | but yes | 23:57 |
poolie | hm, there might be some more in a separate packaging guide (draft?) by barry, that's integrating some of this | 23:58 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!