Mercurial > emacs
view move-if-change @ 91698:c22d8444f043
Make vc-diff-internal messages consistent across many cases.
(vc-exec-after): Append CODE to previous fragments.
(vc-diff-finish): Take BUFFER directly, not BUFFER-NAME;
take MESSAGES instead of VERBOSE; use it when non-nil.
(vc-diff-internal): Compute messages once; use them;
update call to vc-diff-finish.
author | Thien-Thi Nguyen <ttn@gnuvola.org> |
---|---|
date | Sat, 09 Feb 2008 12:32:04 +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