=== thumper-otp is now known as thumper | ||
=== jordan is now known as charles`` | ||
=== charles`` is now known as jordan`` | ||
=== jordan__ is now known as jordan | ||
hazmat | is there a way to do bzr status if on a non HEAD revision | 12:37 |
---|---|---|
lifeless | hazmat: what do you mean 'on a non HEAD revision' ? status is a tree operation... | 20:37 |
hazmat | lifeless, i do bzr up -r 42 && echo foo > README && bzr status | 20:51 |
hazmat | lifeless, i get back.. update to run status | 20:51 |
hazmat | lifeless, its a simple operation via the api.. but i wanted to run it with the cli | 20:52 |
hazmat | lifeless, basically i want workingtree/copy status .. but the cli refuses to work when on a non head revision | 20:52 |
lifeless | how very odd; status should be well defined for any tree state like that | 20:53 |
fullermd_ | Sounds like you've got something squirrely, since it works fine here... | 20:53 |
fullermd_ | % bzr stat | 20:53 |
fullermd_ | working tree is out of date, run 'bzr update' | 20:53 |
fullermd_ | modified: | 20:53 |
fullermd_ | README | 20:53 |
lifeless | possibly a change since my time :( possibly oversight ? or squirrels :> | 20:53 |
fullermd_ | Though that reminds me that I need to double check that I filed that bug about status an !workingtree cases $YEARS ago... | 20:55 |
hazmat | lifeless, http://pastebin.ubuntu.com/7539216/ | 20:56 |
hazmat | which i try to workaround via the api doing.. tree = WorkingTree.open(self.path) | 20:56 |
hazmat | return tree.has_changes() | 20:56 |
hazmat | fullermd_, oh.. | 20:57 |
fullermd_ | That all looks fine. "working tree out of date" isn't an error that's stopping things, it's just a warning displayed along the way. | 20:57 |
hazmat | fullermd_, cool | 20:57 |
mgrandi | thats how you tell if a tree has changes? i couldn't find that it seemed lol | 20:57 |
fullermd_ | (and there're no changes at that point, so it doesn't have anything else to display) | 20:57 |
hazmat | fullermd_, the message through me that it wasn't | 20:58 |
hazmat | working, but your right it is | 20:58 |
mgrandi | thought you had to get a TreeDelta | 20:58 |
fullermd_ | If it's a small change, you'll need a TreeEpsilon instead. | 20:58 |
* fullermd_ goes back into hiding. | 20:59 | |
mgrandi | lol | 21:07 |
lifeless | hazmat: so that tree has (correctly) no delta in it | 21:07 |
mgrandi | but where is tree.has_changes() defined? i dont see that in tree or working tree | 21:07 |
lifeless | hazmat: at the end echo bar > readme again and then do st again | 21:08 |
lifeless | mgrandi: its on the delta object I think | 21:08 |
mgrandi | doh | 21:09 |
mgrandi | there it is | 21:09 |
mgrandi | working trees were confusing to get a delta from, but i managed to figure it out | 21:10 |
mgrandi | except has_changes() doesn't report if it has unversioned files, hmm | 21:12 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!