On Tue, Jan 08, 2013 at 03:56:15PM +0100, Stephan Beal wrote: > On Tue, Jan 8, 2013 at 3:49 PM, Stefan Bellon <sbel...@sbellon.de> wrote: > > Is subversion equally frowned upon? If not, what about: > fossil diff --from PREV --to HEAD myfile.c > > That would be too easy ;). Yes, it covers the most common case, but it > would be much more interesting to be able to say "go back N versions", as > such a feature implies the "prev" behaviour as well. > > > The question is whether PREV and HEAD (and perhaps other symbolic names) > should be bound to one branch (i.e. the one of the current checked out > tree) or whether it should be global and possibly cross branches. > > That's a good point. My gut feeling is that the currently-checked-out > branch "should" be used, defaulting to trunk if there is no checkout (that > said, i think we once had a thread where the user had removed or renamed > his trunk branch to something else). Or maybe a syntax like > branch_name:symbolic_name (which of course only works as long as nobody > uses ':' in their branch names).
Actually, the "prev" keyword already does something.. Example: $ fossil diff --from prev will give you diff between current checkout from previous version on repository. or $ fossil diff --from prev myfile.c Here, prev mean previous version globally, not previous version of the specified file... This is not on the help, but I found this on the source.. http://fossil-scm.org/index.html/artifact/ab3b8161d773d9619a709c92ef33b799cc473a74?ln=49-72 -- Martin G. _______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users