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

bug?: stgit creates (unneccessary?) conflicts when pulling

From
Karl Hasselström <kha@treskal.com>
Date
Feb 27, 2006, 20:42 UTC
Message-ID
<20060227204252.GA31836@diana.vm.bytemark.co.uk>

If I make a patch series where more than one patch touches the same line, I get a lot of merge errors when upstream has accepted them and I try to merge them back.

Suppose a line contained the string "0". Patch p1 changes that to "1", patch p2 further changes that to "2". Upstream accept the patches, and I later "stg pull" them. When reapplying p1 after the pull, stg generates a merge conflict since upstream changed the "0" to "2" and p1 changes the "0" to "1".

This situation arises for every line that's modified in more than one patch, and for every such patch except the last one. And it's really annoying, since it's intuitively obvious that there aren't actually any conflicts, since upstream accepted my patches verbatim.

I suppose one way to fix it manually would be to first fetch, glance at the new upstream commits and try to find any accepted patches, and then "stg pull" the commit corresponding to the earliest patch in my series; repeat for every patch in the series. The queston is, how can we automate it?

-- 
Karl Hasselström, kha@treskal.com
      www.treskal.com/kalle
Next: Sam Vilain
Message 1 of 22 in “bug?: stgit creates (unneccessary?) conflicts when pulling”
  1. Karl HasselströmFeb 27, 2006
  2. Sam VilainFeb 27, 2006
  3. Catalin MarinasFeb 27, 2006
  4. Catalin MarinasFeb 28, 2006
  5. Catalin MarinasFeb 28, 2006
  6. Catalin MarinasFeb 28, 2006
  7. Chuck LeverMar 1, 2006
  8. Catalin MarinasMar 1, 2006
  9. Karl HasselströmMar 3, 2006
  10. Catalin MarinasMar 3, 2006
  11. Karl HasselströmMar 3, 2006
  12. Catalin MarinasMar 3, 2006
  13. Shawn PearceFeb 27, 2006
  14. Catalin MarinasMar 1, 2006
  15. Shawn PearceMar 1, 2006
  16. Catalin MarinasMar 1, 2006
  17. Shawn PearceMar 1, 2006
  18. Catalin MarinasMar 9, 2006
  19. Junio C HamanoMar 9, 2006
  20. Catalin MarinasMar 10, 2006
  21. Junio C HamanoMar 11, 2006
  22. Shawn PearceMar 10, 2006

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.