/srv/irclogs.ubuntu.com/2017/06/01/#bzr.txt

dorian_Hey there. I hit 'bzr revert' by mistake. Some file were backed up under the file.d.~#~ convention. Some were not. Do you know if I can find the missing backup files ?15:01
LeoNerd'revert' tries to check if the outstanding edit is due to a 'merge' or similar operation15:02
LeoNerdI.e. something that didn't involve human effort to create and can be rebuilt by applying the same operation if necessary15:02
dorian_LeoNerd, like unshelve ?15:05
LeoNerdAh.. mmmm15:05
LeoNerdYes that tricky little cornercase ;)15:05
dorian_are the unshelved patch stored somewhere ?15:05
LeoNerdI don't know what happens to unshelve'd changes, whether that is preserved somewhere15:05
LeoNerdLast time I looked I couldn't find one15:05
dorian_where can I find help about this ? I might have lost a day worth of work15:06
dorian_I want to make sure before starting over15:06
LeoNerdTake a look under the  .bzr/checkout/shelf directory and see if there's leftover files in there15:07
dorian_nope15:09
fullermdAn unshelved change should be the same as a manual one; bzr doesn't know where it came from...15:09
mgzdorian_: pastebin the log section of the failed unshelve operation?15:09
mgzeverything should generate conflicts/orig files, except when shelve breaks badly15:10
dorian_mgz, the unshelve operation didn't fail. It's the revert operation which didn't make backups15:10
mgzpastebin that then? revert always makes backups of files that actually have changes in them15:12
mgzalso, it's a good habit to just make checkpoint commits in a work branch, even when experimenting15:13
mgzit's pretty easy to pull them out into neater branches later15:13
dorian_there is nothing is the log of the revert operation which is out of the ordinary15:15
dorian_the return code is fine also15:15
dorian_I hope bzr doesn't actually do the revert operation if it doesn't make backup successfully :/15:15
mgzhm, did were you discarding a pending merge at the same time?15:20
mgzI mean, I'm not sure how you have a days worth of uncommitted changes and decide to type revert, but trying to understand what actually went wrong15:21
dorian_It's ok. I resigned and accepted that my work is lost. I won't stop using bzr since it's my boss choice either -__-15:23
mgzI'd like to know what you did and help it not happen again15:24
* LeoNerd (also suggests commit-early commit-often, but knows that doesn't immediately help the current problem :/ )15:25
mgzbut I need an actual log to have any idea15:25
dorian_I wasn't at the latest revision. I had local changes. I hit revert15:26
dorian_no backup to be found15:26
dorian_maybe it comes from that15:26
LeoNerdAh, for that situation I always shelve / pull / unshelve15:26
LeoNerdTreat revert as "Throw away my changes". Those "backup" files are just for accident recovery15:27
dorian_thanks for you help anyway15:27
mgzhm, I still get a backup file in that case.15:29
jvelasquezhow could I see a list of everything managed by bzr?23:35
jvelasquezgot it.  bzr ls -V23:37
fullermdYou may want -R too, depending on the meaning of "everything".23:37
jvelasquezohh. yea! thanks.23:38

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