On Thu, Oct 27, 2011 at 03:52:04PM +0200, Gilles wrote:
> Hello
> 
>       After committing the changes I made to a file, I'd like to run the
> gdiff application to show the changes between the last revision and
> the before-last revision.
> 
> I tried the following, but it doesn't work:
> ================
> C:\MyProjects>fossil finfo "Project1/Form1.vb"
> 
> History of Project1/Form1.vb
> 
> 2011-10-27 [7861174642] Another comment (user: Me, artifact:
> [a84d8e720a])
> 
> 2011-10-26 [6f24ad8afa] Added original files (user: Me, artifact:
> [0b8a3d89b2])
> ================
> C:\MyProjects>fossil gdiff --from a84d8e720a --to 0b8a3d89b2
> C:\fossil.exe: no such checkin: a84d8e720a
> ================
> C:\MyProjects>fossil gdiff --from 7861174642 --to 6f24ad8afa
> Index: Project1/Form1.vb
> 
> (Differ doesn't show any file)
> ================
> 
> What is the right way to do this?
> 
> Thank you.

The second one is closer. In the way it is witten, it should show all
diff of all files between those 2 version. I don't know why it doesn't
work for you. 

To show only diff of Project1/Form1.vb, you should specify the filename:

 fossil gdiff --from 7861174642 --to 6f24ad8afa Project1/Form1.vb

Have you try with "diff" instead of gdiff, may be there's a problem in
the way your gdiff-command setting is set. 

Is you file a binary file ?  If it's the case, fossil will return an
error saying: 
  "cannot compute difference between binary files"


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

Reply via email to