/srv/irclogs.ubuntu.com/2012/05/01/#bzr.txt

dust_oi'm in a pickle. i did a commit, for the sake of example, to a revision 2. then did a push. then discovered i would like to revert to previous revision 1. so did a 'bzr uncommit' and a 'bzr revert'. however, launchpad still shows revision 2 for the project. if i try to then add a new revision 2, bzr complains about divergent branch. cannot figure out how to unpickle myself.01:47
mwhudsondust_o: push --overwrite01:49
dust_othank you so much!01:50
dust_ooh man. can i buy you a pizza or something?01:51
mwhudsonheh, i can cope :)01:52
dust_owell, thank you. was a'feared for my job 8) hehe01:53
maxbIs there anyone who actually understands builddeb's DistributionBranch?06:56
maxbI'm currently annoyed with it because its comments apparently lie06:56
jelmermaxb: hi07:01
maxbhi07:01
jelmermaxb: sure, I have a vague idea of what it does07:02
maxbSo, DB claims :07:02
maxb        You can only import packages on to the DistributionBranch07:02
maxb        if both tree and pristine_upstream_tree are provided.07:02
maxbBut the main UDD codepath doesn't do that, and I'd venture to say it generally imports packages :-)07:02
jelmeryeah, the pristine tree is no longer strictly necessary IIRC07:04
maxbThe other thing I'm having problems with is understanding why various callsites pass 1 branch / 2 branches / 2 branches + 1 tree / 2 branches + 2 trees07:06
maxb"Tree or not" makes sense - am I going to be importing things07:06
maxbAlso, the only non-test callsite which passes 2 branches which aren't the same branch object appears to be UDD's check_same07:07
jelmermaxb: the two branches are the packaging brnach and the pristine source branch07:08
jelmerwhich often aren't the same thing07:08
maxbThey appear to be the same thing in every callsite I've found apart from check_same07:08
maxbAnd in that callsite they're merely a scratch empty branch in both cases07:10
jelmerthe tip of the pristine tar branch can matter in some cases07:14
maxb*ah* pristine_upstream_tree sometimes gets assigned via extract_upstream_tree not via the DB __init__07:15
maxbalthough when that happens, pristine_upstream_source doesn't get updated equivalently07:16
maxbOh, except PristineTarSource genuinely doesn't use its self.tree at all07:20
maxbI wonder if we could remove that, or if it's immutable API at this point07:21
jelmermaxb: we can't, not without a lot of refactoring07:22
jelmermaxb: I've tried in the past07:22
maxbRefactoring in which projects?07:23
jelmerbzr-builddeb07:23
maxbOh, you mean because its needed as part of the contract of an UpstreamSource, but not otherwise?07:24
maxbno, that doesn't make sense07:25
jelmerhmm, actually - it looks like my changes actually landed07:26
jelmerso I think it can indeed go07:26
* maxb asks the tests what they think :-)07:29
maxbI wonder if DistributionBranch is used anywhere but builddeb and udd - i.e. what leeway we have in API changes07:31
maxbbuilddeb's tests pass with PristineTarSource's tree removed07:31
maxbTo double back to an earlier point: "the two branches are the packaging brnach and the pristine source branch which often aren't the same thing" - do you know of an example?07:33
maxboh this is getting horrit07:40
maxbAfter an extract_upstream_tree, DB.pristine_upstream_branch has changed into the result of sprouting from itself07:40
maxbI wonder if I could make it so that DistributionBranch __init__ took a single mandatory branch and a single optional tree ONLY07:42
maxbHmm. It almost looks as if a tree.lock_write() and a branch.lock_write() are conflicting07:58
maxbBut for that to happen, the tree would have to be pointing at the same on-disk branch via a different Branch object, wouldn't it?07:58
maxbTime to set up a staging importer with some extra logging, I guess08:00
maxb        # Should we just dump the upstream part on whatever is currently08:02
maxb        # there, or try and pull all of the other upstream versions08:02
maxb        # from lesser branches first? For now we'll just dump it on.08:02
maxb        # TODO: this method needs a lot of work for when we will make08:02
maxb        # the branches writeable by others.08:02
maxblovely08:02
mgzmorning08:04
jammgz: /wave08:15
mgzwho's handling contributor agreements for bzr atm?15:57
fullermdNFC.  I'd guess it would be either jam or jam would know, so...17:16
mgzI shall squish the jam tomorrow.17:18
david0rkHi all21:25
=== yofel_ is now known as yofel
jelmerhi david0rk21:26
david0rkHi Jelmer21:26
david0rkare you familiar with bazaar?21:27
jelmerdavid0rk: sure21:42
david0rkI've got launchpad setup (account, rsa_pubkey, ssh key)  and i've set a folder on my pc as a bazaar tree.21:48
david0rkNow I just need to figure out how to get my sourcecode in bazaar, and push to launchpad.21:48
david0rknevermind.  I figured out using a bit of common sense and tinkering.   BAZAAR IS AWESOME!22:22
=== yofel_ is now known as Guest77193
=== SpamapS_ is now known as SpamapS
=== jelmer_ is now known as jelmer
=== elmo_ is now known as elmo
=== bob2_ is now known as bob2
=== Noldorin__ is now known as Noldorin

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