Jack Repenning wrote:
>
> On Sep 4, 2004, at 5:15 AM, Folker Schamel wrote:
>
>> "what I have typed (text and props)"
>> = svn diff
>>
>> "show me what I'm about to do (text and props)"
>> = svn status + svn diff
>>
>> -> So why a new switch?
>
>
> "svn status + svn diff" does not show me "what I'm about to do." Status
> shows that the files are scheduled for copy, true, but does not show the
> content of the files. Diff is all about the file content, but at
> present ignores scheduled-copy files (or shows only the changes since
> the copy).
>
> A concrete example: in our product, we have this hierarchy of
> configuration files: a site-specific one, a user-specific one, and the
> default settings (not necessarily in that order). Java properties files
> are often handled the same way, and the java Properties class supports
> it directly. If I copy in such a file, then the file contents--the
> property settings--have effect that I cannot fully predict merely by
> seeing the file name. Properties in the copied file will affect the
> behavior of the system, even though I have done no further typing in the
> files.
>
> If I copy in a file with 20 settings, and change one, then there's a
> legitimate question "what's the one thing I changed?", and there's
> another equally legitimate question "what are the 20 things I'm about to
> change?" None of your proposed combinations can tell me all those
> things. "svn status + svn diff + cat" can, but this is too much work.
You not only want to know what you are going to change
("copy file A into B" without changing the content).
You want to know more:
You want to know the effect of this change onto your
particular special system.
This requires also information about the current state,
not only the "delta" you are going to apply.
If I change "file1.java", I cannot fully predict the effect of this change
without inspecting all other java files referring classes of "file1.java".
Conclusion: Even if I only change "file1.java", "svn diff" should display
the unchanged content of all other java files referring to classes of
"file1.java"?
svn is and should be unaware of the your particular system.
A system-independent definition of "what I have changed"
is a complete description of the "changeset".
This is what "svn status" and "svn diff" do (except for binary files).
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Sep 9 05:23:28 2004