Re: stg clean removes conflicting patch
- From
- Catalin Marinas <catalin.marinas@gmail.com>
- Date
- Jan 25, 2008, 09:53 UTC
- Message-ID
- <b0943d9e0801250153t30c5b9b8w4c08af107cfdf202@mail.gmail.com>
- In-Reply-To
- <20080125080434.GA5599@diana.vm.bytemark.co.uk>
On 25/01/2008, Karl Hasselström <kha@treskal.com> wrote:
Show 7 quoted lines
> On 2008-01-24 22:55:17 -0500, Pavel Roskin wrote: > > > If "stg push" fails, the subsequent "stg clean" will remove the > > patch that could not been applied. I think it's wrong. > > I agree. It's consistent -- a conflicting patch is empty -- but > clearly the wrong thing to do from a usability perspective.
Got broken by commit fe1cee2e49d9995852ba92d8fba1d064acf2fca9 which removes the check_conflicts() call. As I said in a different post, we should add these back (and to the 'goto' command as well) to make StGIT safer.
Show 9 quoted lines
> > I've made a patch for the testsuite that should pass once the bug is > > fixed. Try removing "stg clean" from the test. and it will pass. But > > "stg clean" should make no difference here. > > Good! > > For known-to-be-failing tests, you can use test_expect_failure. I'll > amend your patch to do that when I pick it up (if Catalin doesn't beat > me to it).
Probably not, I'm really busy for one more week with a Linux kernel release.
-- Catalin