Hi, I don't want to clog-up the bug list if this has already been
Has anyone thought about adding richer ways to specify revision numbers
in a repository? Specifically, if I want to compare (say) "foo.c" at
revision N, with "foo.c" as it existed before rev N, I can't currently
do this without examining the log (or checking out rev N and using
COMMITTED). This seems to me to be an area where svn is weak: I seem to
be spending too much time scanning logs for information that svn should
be able to supply automatically.
Some examples of what I think would help:
*- r N:-M * If "M" is negative, interpret as the absolute value
"N-M" (e.g. "-r 10:-5" is the same as "-r 10:5"). The same can be used
with N, so "-r -1:10" means "-r 9:10" or -r -1:HEAD means the head and
previous revisions. Both N and M can't both be negative.
*-r N:*M * The "*" means the "Mth" change to the item, going
backwards in the log, and again either N or M can be qualified (but not
both). So "-r *1:10" means revision 10 and the previous commit of the
item (i.e. go back N log entries).
Also, how about "*' by itself meaning the same rev # as the
--stop-on-copy rev for the item (i.e. the last branch). So "-r *:HEAD"
means the two revisions at each "end" of the branch?
Comments? I'm aware that there will be issues around handling multiple
items, since each will resolve to a different rev #, but I think
something like this might be valuable.
Received on Sat Apr 2 00:00:51 2005