X-Git-Url: http://git.tremily.us/?p=swc-version-control-svn.git;a=blobdiff_plain;f=svn.html;fp=svn.html;h=494145cdb8d66d3010f3654fda1c08e868d35197;hp=fe01b5f96e780b7678e95cd9197ad42f64339a13;hb=0c566fca18049b40bae8ee8d5c26577c99b8dd7b;hpb=af2312ba8b4d48309bfeac51fb4d10f8652eaf06 diff --git a/svn.html b/svn.html index fe01b5f..494145c 100644 --- a/svn.html +++ b/svn.html @@ -103,14 +103,15 @@
xyz.txt
" actually means.
+ svn diff
mimics the behavior of
+ the Unix diff
command,
+ which can be used to compare any two files.
+ Given these two files:
+
left.txt |
+ right.txt |
+
---|---|
+hydrogen +lithium +sodium +magnesium +rubidium+ |
+
+hydrogen +lithium +beryllium +sodium +potassium +strontium+ |
+
+ diff
's output is:
+
+$ diff left.txt right.txt +2a3 +> beryllium +4,5c5,6 +< magnesium +< rubidium +--- +> potassium +> strontium ++
This is a very common workflow, and is the basic heartbeat of most developers' days. @@ -756,15 +807,47 @@ $ svn diff -r HEAD
svn diff -r 14
do?
+ What does it do if there have only been 10 changes to the repository?
diff
and svn diff
compare files line by line.
+ Why doesn't this work for MP3 audio files?
- Correlation does not imply causality, - but there is a very strong correlation between - using version control - and doing good computational science. - There's an equally strong correlation - between not using it and wasting effort, - so today (the middle of 2012), - I will not review a paper if the software used in it - is not under version control. - Its authors' work might be interesting, - but without the kind of record-keeping that version control provides, - there's no way to know exactly what they did and when. - Just as importantly, - if someone doesn't know enough about computing to use version control, - the odds are good that they don't know enough - to do the programming right either. -
++ Correlation does not imply causality, + but there is a very strong correlation between + using version control + and doing good computational science. + There's an equally strong correlation + between not using it and either wasting effort or getting things wrong. + Today (the middle of 2013), + I will not review a paper if the software used in it + is not under version control. + The work it reports might be interesting, + but without the kind of record-keeping that version control provides, + there's no way to know exactly what its authors did. + Just as importantly, + if someone doesn't know enough about computing to use version control, + the odds are good that they don't know enough + to do the programming right either. +
-