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

Re: [PATCH] provide advance warning of some future pack default changes

From
JBJoel Becker <joel.becker@oracle.com>
Date
Dec 17, 2007, 21:13 UTC
Message-ID
<20071217211317.GC19816@mail.oracle.com>
In-Reply-To
<alpine.LFD.0.999999.0712171517320.8467@xanadu.home>
On Mon, Dec 17, 2007 at 03:41:24PM -0500, Nicolas Pitre wrote:
Show 14 quoted lines
> On Mon, 17 Dec 2007, Joel Becker wrote:
> > 	You may not see a case for actual corruptions, but my coworker
> > updated his tree on a box with 1.5.x, then tried to work on a box with
> > 1.4.x (I think 1.4.2 back then), and ended up with a tree that was
> > unusable.  He had to re-clone, and I think he got lucky recovering
> > pending changes (probably using 1.5.x on the branches with the changes,
> > as master was what got broken).
> 
> I still claim that there wasn't any corruptions.
> 
> Just for fun, just edit some document with Microsoft Office 95, then 
> open the same document with Office 2007 and save it with default 
> settings.  Now try to open it back with Office 95.  It won't work.  
> Does that mean that the document got corrupted?
	No, but when you try to re-open it with Office 2007, you expect
it to work, don't you?  His master was messed up even for 1.5.x.  It was
now months ago, so I don't quite remember all the details, but I think
you'd agree that "1.5.x no longer works" is not correct.
> I'm telling you that there won't be any such corruption.  Just like in 
> the M$ Office case, it is expected that newer versions make data 
> unusable by older versions at some point -- that's the inevitable side 
> effect of progress.
	Sure, we're not complaining about that.  We complain some about
the fast pace (at the time he had his problem, 1.4 installs were not
unusual, and Junio's response suggested that "I use NFS" wasn't strongly
considered as a use case), but more we complain about the obscurity of
the reason.  If it's obvious what happened (not the specifics, just
"please upgrade" or "repository format changed" or something), the user
moves along.
> And we cannot always anticipate what kind of incompatibility will be 
> worth making in the future, so it is hard to come with proper error 
> messages in all cases today.
	How hard is it?  We have core.repositoryformatversion.  We
undoubtably have headers on our files.  As an example, an older version
should be able to ascertain 1) this is a pack file 2) I don't know how
to read it.  Thus, it should always be able to tell the user as such.
This is different from reporting "invalid pack file" or "corrupt pack
file", or "garbage in tree".  Filesystems, as an example, set
compatibility bits or version levels.  When an old kernel tries to mount
it, it does not say "corrupt filesystem", it says "this filesystem has a
feature I don't understand, I'm going to be nice and not do anything,
please upgrade".  This is clear, even though the older kernel doesn't
have any specifics about what the new feature is.
> So I don't see how we could do better in that regard.  Carving the 
> repository format in stone to keep ancient versions working forever is 
> _not_ a solution.
	Once again, we're not asking for that.  We're asking that you
think ahead to what can change, and plan for it, so you can tell the
user.  If the user has a clear idea where to go next, the can solve the
rest themselves.
	Look, not everyone reads this mailing list.  No one outside of
this list reads the Release Notes.  They get their upgrade via yum or
apt-get, along with 100 other packages.  You can't assume that 3 months
of feature discussion here is going to be known to your average user.
Joel
-- 
"Vote early and vote often." 
        - Al Capone

Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker@oracle.com
Phone: (650) 506-8127
Previous: Nicolas PitreNext: J. Bruce Fields
Message 33 of 64 in “v1.5.4 plans”
  1. Junio C HamanoDec 2, 2007
  2. Jakub NarebskiDec 2, 2007
  3. Junio C HamanoDec 2, 2007
  4. David SymondsDec 2, 2007
  5. Junio C HamanoDec 3, 2007
  6. Many things pushed out to 'master'Junio C Hamano, Dec 3, 2007
  7. Johannes SchindelinDec 3, 2007
  8. Junio C HamanoDec 3, 2007
  9. Johannes SchindelinDec 3, 2007
  10. Junio C HamanoDec 3, 2007
  11. fast-export: rename the signed tag mode 'ignore' to 'verbatim'Johannes Schindelin, Dec 3, 2007
  12. Johannes SchindelinDec 3, 2007
  13. Fix quote_path when called with negative length.Pierre Habouzit, Dec 3, 2007
  14. Jeff KingDec 3, 2007
  15. Nicolas PitreDec 3, 2007
  16. Junio C HamanoDec 3, 2007
  17. provide advance warning of some future pack default changesNicolas Pitre, Dec 14, 2007
  18. Junio C HamanoDec 14, 2007
  19. Nicolas PitreDec 14, 2007
  20. Jakub NarebskiDec 14, 2007
  21. Nicolas PitreDec 14, 2007
  22. Joel BeckerDec 14, 2007
  23. Nicolas PitreDec 14, 2007
  24. Joel BeckerDec 14, 2007
  25. Nicolas PitreDec 14, 2007
  26. Joel BeckerDec 15, 2007
  27. Nicolas PitreDec 15, 2007
  28. Johannes SchindelinDec 15, 2007
  29. Junio C HamanoDec 15, 2007
  30. Nicolas PitreDec 15, 2007
  31. Joel BeckerDec 17, 2007
  32. Nicolas PitreDec 17, 2007
  33. Joel BeckerDec 17, 2007
  34. J. Bruce FieldsDec 17, 2007
  35. Nicolas PitreDec 17, 2007
  36. J. Bruce FieldsDec 17, 2007
  37. Nicolas PitreDec 17, 2007
  38. Junio C HamanoDec 17, 2007
  39. J. Bruce FieldsDec 17, 2007
  40. Junio C HamanoDec 17, 2007
  41. J. Bruce FieldsDec 18, 2007
  42. Nicolas PitreDec 17, 2007
  43. Junio C HamanoDec 17, 2007
  44. Nicolas PitreDec 17, 2007
  45. Junio C HamanoDec 18, 2007
  46. Mark FashehDec 18, 2007
  47. Nicolas PitreDec 18, 2007
  48. Martin LanghoffDec 18, 2007
  49. Nicolas PitreDec 18, 2007
  50. Junio C HamanoDec 18, 2007
  51. Jakub NarebskiDec 18, 2007
  52. Johannes SchindelinDec 18, 2007
  53. Nicolas PitreDec 18, 2007
  54. Jeff KingDec 18, 2007
  55. Johannes SchindelinDec 18, 2007
  56. Jeff KingDec 18, 2007
  57. Johannes SchindelinDec 18, 2007
  58. Jeff KingDec 18, 2007
  59. Nicolas PitreDec 18, 2007
  60. Jakub NarebskiDec 18, 2007
  61. Junio C HamanoDec 18, 2007
  62. Mark FashehDec 18, 2007
  63. Nicolas PitreDec 18, 2007
  64. RussellDec 4, 2007

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.