emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is it possible to undo bzr pull --overwrite ?


From: Stephen Berman
Subject: Re: Is it possible to undo bzr pull --overwrite ?
Date: Tue, 11 Jun 2013 00:14:24 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

[CCing emacs-devel for the record.]

On Mon, 10 Jun 2013 15:46:11 -0600 Jason Earl <address@hidden> wrote:

> On Mon, Jun 10 2013, Stephen Berman wrote:
>
>> I wanted to update my local Emacs branch in which I develop the new
>> version of todo-mode.el that I just posted here, but unfortunately I
>> thoughtlessly used `bzr pull --overwrite' and now the entire history of
>> my package appears to be gone.  Is it possible to recover it?  A web
>> search found a suggestion to use `bzr heads --dead-only' and then `bzr
>> pull -rrevid:THEREVID .' and with the first command I found only the
>> revids of last change I made and one I made almost a year ago, but with
>> the second command, using the revid of the latest change, I only got
>> "bzr: ERROR: These branches have diverged.
>
> The fact that you have a dead head that corresponds with your last
> change is good news.  What you need now is a *new* branch--create it
> somewhere with bzr init.  The new branch does not have to be in the
> shared repository (although it will be much faster if it is).  Then cd
> to that branch and issue your pull.  It should look something like this:
>
> bzr pull -rrevid:THEREVID /path/to/borked/branch/

It worked -- thanks very much!  I feel a bit like I just recovered from
a supposedly incurable case of amnesia :-).

Steve Berman



reply via email to

[Prev in Thread] Current Thread [Next in Thread]