git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Stgit and refresh-temp

From
CMCatalin Marinas <catalin.marinas@gmail.com>
Date
Nov 23, 2008, 21:20 UTC
Message-ID
<b0943d9e0811231320s804eff0k5aecbac84cb2ffe7@mail.gmail.com>
In-Reply-To
<20081112101439.GA27469@diana.vm.bytemark.co.uk>
2008/11/12 Karl Hasselström <kha@treskal.com>:
Show 7 quoted lines
> On 2008-11-12 10:02:10 +0000, Catalin Marinas wrote:
>
>> I think it's just a matter of updating HEAD on the "merge_conflict"
>> path but I'm still not fully confident in modifying the new lib
>> infrastructure.
>
> You're probably right.

The simple patch below seems to fix it the goto issue. Could you please confirm its correctness (the patch might be wrapped by the web interface)?

diff --git a/stgit/lib/transaction.py b/stgit/lib/transaction.py
index 6623645..0f414d8 100644
--- a/stgit/lib/transaction.py
+++ b/stgit/lib/transaction.py
@@ -321,6 +321,7 @@ class StackTransaction(object):
         if any(getattr(cd, a) != getattr(orig_cd, a) for a in
                ['parent', 'tree', 'author', 'message']):
             comm = self.__stack.repository.commit(cd)
+            self.head = comm
         else:
             comm = None
             s = ' (unmodified)'

Thanks.
-- 
Catalin
Previous: Karl HasselströmNext: Karl Hasselström
Message 11 of 14 in “Stgit and refresh-temp”
  1. Jon SmirlNov 4, 2008
  2. Jon SmirlNov 4, 2008
  3. Jon SmirlNov 4, 2008
  4. Karl HasselströmNov 7, 2008
  5. Jon SmirlNov 10, 2008
  6. Jon SmirlNov 10, 2008
  7. Catalin MarinasNov 11, 2008
  8. Karl HasselströmNov 12, 2008
  9. Catalin MarinasNov 12, 2008
  10. Karl HasselströmNov 12, 2008
  11. Catalin MarinasNov 23, 2008
  12. Karl HasselströmNov 24, 2008
  13. Jon SmirlNov 24, 2008
  14. Karl HasselströmNov 12, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.