Hi list, 

Again I notice a small thing about "fossil diff" output, when no
external program is used. From the output, we don't see which version it
is comparing.  Other SCM I know show some extra information on the
---/+++ lines about version that are actually compared. In fossil, the
---/+++ lines only show file name in repository.

e.g: Those tree output show same thing on the ---/+++ lines:
$ fossil diff --from <ver1> --to <ver2>
--- path/to/sourcefile.c
+++ path/to/sourcefile.c
<...>
$ fossil diff --from <ver1>
--- path/to/sourcefile.c
+++ path/to/sourcefile.c
<...>
$ fossil diff                   # on locally modified file
--- path/to/sourcefile.c
+++ path/to/sourcefile.c

In CVS per exemple, we have. (cvs show relative path)
$cvs diff -r 1.1 sourcefile.c
--- sourcefile.c        16 Mar 2012 18:28:30 -0000      1.1
+++ sourcefile.c        29 May 2012 21:25:53 -0000      1.3
<...>
$cvs diff -r 1.1 -r 1.2 sourcefile.c
--- sourcefile.c        16 Mar 2012 18:28:30 -0000      1.1
+++ sourcefile.c        11 May 2012 10:20:50 -0000      1.2
<...>
        or when cvs compare with current file, it show modification
        date/time of file and omit the version number.
cvs diff sourcefile.c           # on locally modified file
--- sourcefile.c        29 May 2012 21:25:53 -0000      1.3
+++ sourcefile.c        29 May 2012 22:00:12 -0000
<...>


I think it would be usefull to have something similar on "fossil diff"
output. When people exchange diff/patch by email, we can easily know
what the diff file is diffing.

Regards

-- 
Martin G.
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to