Mercurial > emacs
view move-if-change @ 105730:414178e8f10d
(vc-responsible-backend): Throw an error if not backend is
found. Remove the REGISTER argument. Move the code dealing with
REGISTER ...
(vc-get-backend-for-registration): ... here. New function.
(vc-deduce-fileset): Call vc-get-backend-for-registration instead
of vc-responsible-backend, pass the file name instead of the
directory name.
author | Dan Nicolaescu <dann@ics.uci.edu> |
---|---|
date | Fri, 23 Oct 2009 18:07:38 +0000 |
parents | 354e0c45cedf |
children | 14a97ab281d5 |
line wrap: on
line source
#!/bin/sh if test -r $2 then if cmp $1 $2 > /dev/null then echo $2 is unchanged rm -f $1 else mv -f $1 $2 fi else mv -f $1 $2 fi