# "stgit rebase" should check for errors before changing tree

2 messages from 2007-06-05 to 2007-06-06. Participants: Andrey Borzenkov, Yann Dirson.
Thread: https://gitlist.dev/t/8446

## Andrey Borzenkov, 2007-06-05 16:59

Subject: "stgit rebase" should check for errors before changing tree
Message-ID: <200706052059.51173.arvidjaar@mail.ru>
URL: https://gitlist.dev/e/200706052059.51173.arvidjaar%40mail.ru

```
{pts/0}% stg rebase 2.6.22-rc4
Checking for changes in the working directory... done
Popping all applied patches... done
Rebasing to "2.6.22-rc4"...
stg rebase: Unknown revision: 2.6.22-rc4^{commit}

well, now user is forced to reapply (push) all patches by hand, "stg rebase" 
lost history and state. It probably should check before popping patches.

stgit-0.12.1

-andrey

```

## Yann Dirson, 2007-06-06 21:47

Subject: Re: "stgit rebase" should check for errors before changing tree
Message-ID: <20070606214756.GL6992@nan92-1-81-57-214-146.fbx.proxad.net>
URL: https://gitlist.dev/e/20070606214756.GL6992%40nan92-1-81-57-214-146.fbx.proxad.net
In-Reply-To: <200706052059.51173.arvidjaar@mail.ru>

```
On Tue, Jun 05, 2007 at 08:59:40PM +0400, Andrey Borzenkov wrote:
> {pts/0}% stg rebase 2.6.22-rc4
> Checking for changes in the working directory... done
> Popping all applied patches... done
> Rebasing to "2.6.22-rc4"...
> stg rebase: Unknown revision: 2.6.22-rc4^{commit}
> 
> well, now user is forced to reapply (push) all patches by hand, "stg rebase" 
> lost history and state. It probably should check before popping patches.

Right, fixed in my tree.

Thanks for your report.
-- 
Yann

```
