/srv/irclogs.ubuntu.com/2010/07/10/#bzr.txt

MethsHi, if I use bzr revert in a tree to test a previous revision how do I undo that revert to carry on from the latest revision?00:47
=== jam changed the topic of #bzr to: Bazaar version control | try https://answers.launchpad.net/bzr for more help | http://irclogs.ubuntu.com/ | Patch pilot: poolie | bzr 2.2b4 has gone gold, build those installers
jamMeths: 'bzr revert'00:54
jamno args00:54
jamor 'bzr revert -r -1'00:54
MethsAh, thanks.00:56
eydaimonI merged from branch1, committed. Made some checkins. Reverted back to a prior checkin before the merge form branch1 (deploy failed and committed the revert. Made changes in branch1 to fix issues, and now I need to merge branch1 again. However, only one file is actually merging over vs the intial 20+ files. What's happening ?01:11
eydaimonIf it's clear what I want form that description (otherwise ask me to expand) how can I get it to do "what I want" ?01:11
fullermdRevert doesn't undo the commit [merge].  So you only have one more change (that one file) to merge, so that's all merge does.01:23
eydaimonso how can I do what I want?01:26
fullermdWell, you have to manually redo all the changes.01:27
fullermdFSVO 'manually', which includes automated manualiness like 'revert'.01:27
eydaimonbzr uncommit perhaps01:27
eydaimon?01:27
eydaimonI can do bzr uncommit on the main branch01:28
fullermdWell, that would work too, backing up to before you did the revert, if you can throw away all those later revs.01:28
eydaimonyeah, that's fine to do01:28
eydaimonin this case01:28
eydaimonbut what if that wasn't the case. I'd have to do it all manually?01:28
fullermdDepends on how much things have changed.  If not at all (in context), you could bzr diff | patch -R to undo the revert and restore all the changes.  You can use 'merge' against yourself to do the same sorta thing a bit smarter-like.01:29
eydaimonok, I'm on revno 1198. I wish to go back to 119301:31
eydaimonand then remerge with the branch01:31
fullermdAnd throw away 1194..1198?01:31
eydaimon1194 was the merge with the branch01:31
fullermdProbably simplest to just use pull; somethine like `bzr pull --overwrite -r1193 .`01:31
eydaimonso I could go back there, check that in, and then merge the new changes to the branch01:31
eydaimonthat may actually be the best01:31
eydaimonso if I issue the pull command, will I be able to remerge with the branch again?01:33
fullermdYeah, since at that point you'd never meged that branch.01:35
eydaimonyeah, that worked well, thanks01:35
eydaimonin this case it was ok to throw away the changes after, but what if it wasn't ok? What if I needed 1998 ?01:36
eydaimonI appriciate your help btw :)01:36
fullermdFiddling with merge against yourself or diff | patch to redo the changes.01:36
eydaimonso fairly painful, in other words01:37
fullermdDepending on how things got arranged, there are other possibilities involving really disgusting merge tricks.01:37
eydaimoni was hoping it would be fairly easy to roll back a change that failed badly in production01:38
fullermdWell, yes, with uncommit or pull to pop stuff off the top.01:38
fullermdBut revert just makes WT changes, it doesn't "undo" anything.01:38
eydaimonyeah01:38
eydaimonso maybe I should uncommit even this time?01:38
eydaimonwhat's the cleanest, since uncommit is available?01:39
fullermdYou did the same thing with pull.01:39
eydaimonok, so it accomplished exactly the same thing, except made several "uncommits" easier01:40
fullermdThe difference is in what happens with the WT.01:40
eydaimonthe WT?01:40
fullermdWith uncommit, the WT and state is left untouched.  So after you 'uncommit', you're exactly where you were before you ran 'commit'.  Pending file changes, add's, mv's, etc.01:40
fullermdIf you used pull instead to back up to that previous rev, you'd be at the "clean" state for that rev.01:41
fullermd(well, not exactly, since pull would try and merge any uncommitted changes you had sitting around, but for simplicity...)01:41
EdWyse_OfficeI'm guessing WT=working tree?01:41
fullermdDa01:41
eydaimonso if I had no pending commits, doing the pull and several uncommits would result in the same state?01:42
fullermdA pull to the previous rev is roughly equivalent to "pull ; revert".01:44
eydaimonWhat would you do in my place?01:45
eydaimonbear in mind, there are several checkouts of trunk too01:46
fullermdI'm always in favor of running naked, screaming, and covered in blood through the streets.  It's cathartic.01:46
eydaimonnot sure how I'm to deal with the checkouts yet01:46
eydaimonlol01:46
eydaimoni may try that before i'm through with this01:46
eydaimongood excuse to get rid of the cat anyway01:46
fullermdThey'll probably require some work to back the checkouts up.01:47
EdWyse_OfficeWhat about doing a diff of your changes against the starting revision, then patching those diffs against trunk?01:51
eydaimonI'v ebeen screwing around with it01:52
eydaimonand I think I've got a solution01:52
eydaimonok. yeah, looks good01:53
eydaimonI just did01:54
eydaimonbzr pull --overwrite -r 1193 .01:54
eydaimonand in the checkouts: bzr up && bzr revert01:54
eydaimonhm, maybe not so easy01:56
parthmthe NEWS on trunk doesn't seem to have a date for 2.2b4. also there is no tag for 2.2b4 on trunk. is it branched?03:45
parthmoh. ok. my bad. 2.2 is in its own branch.03:46
brylieI am getting an error when I try to push to Launchpad: different rich-root support06:22
brylieI have searched for a solution to this problem and have tried 'bzr upgrade --rich-root-pack' to no avail.06:23
brylieWhat can I do to make the two repositories compatible? Is there a method I can use to make all subsequent local bzr repositories compatible with Launchpad by default?06:26
jobu1342http://webchat.freenode.net/10:42
=== Meths_ is now known as Meths
mathrickhi17:06
mathrickis there a command to import all revs / heads from a shared repo?17:07
jobu1342has anyone successfully installed bzr on a bluehost server?22:10
jobu1342I'm interested in writing up an install guide, but I might need some help with the install22:13

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