/srv/irclogs.ubuntu.com/2012/03/23/#bzr.txt

jelmerhi poolie, wgz00:16
jelmerm4n1sh: pong00:16
mgzmorning all09:14
vilamorning mgz !09:23
jelmerhah, mgz beats me in replying to erik's mail10:36
mgz:)10:37
mgzI normally lose that race10:37
mgzI'm used to hitting reply and seeing a response from jelmer 4 minutes before10:38
* jelmer is having a slow day10:38
mgzhm, vila left just when I was going to bother him with some questions15:00
=== deryck is now known as deryck[afk]
vilamgz: (gentle nudge) bzr-2.6b1 windows installers ?15:59
vilamaxb: beta ppa update for 2.6b1 ?16:01
fullermdvila: 2.6.0 release?   :p16:02
vilahehe, I'm already late for 2.5.1, but I'm really ahead of schedule for 2.6.0 :-D16:02
mgzvila, things are pretty borked right now16:03
vilamgz: can you elaborate ? :-)16:03
mgzwell, explorer won't start without the mp jelmer submitted this morning16:04
mgzgordon needed to backport your change from post-2.6b1?16:04
mgzthe installer work for translations still needs doing16:04
mgzthere's not much point doing release stuff without fixing the code problems16:05
fullermdFor Windows?  Why not?  Microsoft has been doing it for years...16:05
vilaCan you summarize in a mail to the list ?16:05
vilagordong did release an osx installer, which change are you referring to ?16:06
vilaoh, right, sry16:06
vilalet me check16:06
vilayeah, it did include the fix for building the docs,16:07
vilano comma, just read it as a period ;0)16:08
vilaoh crap, my printer is borked...16:08
=== deryck[afk] is now known as deryck
m4n1shis there a code snippet using which I can find the list of files changed for a bzr working tree using bzrlib?18:20
mgzm4n1sh: something like...18:35
m4n1shlike if I have a WorkTree18:36
m4n1shI used open to open a repository18:36
m4n1shand then want to goto a specific commit number18:36
m4n1shmgz: and fetch the list of files changed/added/deleted in that commit18:36
mgz>>> from bzrlib.workingtree import WorkingTree18:37
mgz>>> tree = WorkingTree.open(".")18:37
mgz>>> lock = tree.lock_read()18:37
mgz>>> list(tree.iter_changes(tree.basis_tree()))18:37
mgzsee the docstring in the code for what the bits of the tuple mean18:37
m4n1shhow do I pinpoint to a specific commit?18:37
m4n1shI know iter_changes, but the name of that argument it takes was sort of cryptic18:38
mgzpass something other than basis_tree18:38
m4n1shlike?18:38
m4n1shsay I have a commit number 34318:38
m4n1shthen how do I use that method18:38
m4n1shI was stuck on iter_changed method for an hour becuase I did not figure out  how to use it for a specific revision number18:39
mgzyou turn the number into a revid, then pass the revid to revision_tree()18:39
mgzthat's using branch and repository respectively18:41
mgzeg:18:45
mgz>>> branch = tree.branch18:45
mgz>>> prev_tree = branch.repository.revision_tree(branch.get_rev_id(728))18:45
mgz>>> list(tree.iter_changes(prev_tree))18:45
mgziterates over changes between r728 and the current tree state18:45
mgzsame principle if you want the differences between r728 and r729, you just get two prev trees (and can open and lock the branch rather than the working tree in the first place)18:47
mgzm4n1sh: does that help?18:47
m4n1shmgz: trying it out18:48
m4n1shmgz: works19:03
m4n1shI get19:03
m4n1sh('configure.ac-20110725232344-gqsb35ufn2i0pf3g-9', (u'configure.ac', u'configure.ac'), True, (True, True), ('tree_root-20110725232341-3el21lx99g2juau0-1', 'tree_root-20110725232341-3el21lx99g2juau0-1'), (u'configure.ac', u'configure.ac'19:03
m4n1sh), ('file', 'file'), (False, False))19:03
m4n1shnow how do I make out if this file configure.ac is added/removed/edited?19:04
mgzas I said, see the docstring (in bzrlib/tree.py InterTree.iter_changes)19:07
mgzthe (source, target) tuple at [1] tells if you it where added, removed, or renamed19:08
mgzthe changed_content marker at [2] tells you if it was edited19:09
mgzso, your example the file was changed that rev19:10
mgzsee the code in bzrlib/delta.py for code doing this kind of thing19:12
mgzreport_changes there takes a tuple in that form and makes pretty output19:12
=== yofel_ is now known as yofel
caliboyhello20:43
mgrandihey20:43
caliboycan you help me with my wireless network20:44
mgrandiuhh sure, does this have anything to do with bzr though? :o20:44
caliboyno20:44
mgrandithen why ask here? =P20:45
caliboyidk i didnt know there was a categories thing20:47
kbulgrienok, well, it is on ml now23:40
=== Riddelll is now known as Riddell

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