diff options
author | mat <mat@FreeBSD.org> | 2015-12-18 23:29:38 +0800 |
---|---|---|
committer | mat <mat@FreeBSD.org> | 2015-12-18 23:29:38 +0800 |
commit | 326e6f41337d4c7ecfccd5c6f629d455c8387228 (patch) | |
tree | c3ad4ad12f1bf2d72d27a6d6f01b3548fd545f33 /Tools/scripts | |
parent | 55c552aca5745c0ce455ff77c1295c83239a4c04 (diff) | |
download | freebsd-ports-gnome-326e6f41337d4c7ecfccd5c6f629d455c8387228.tar.gz freebsd-ports-gnome-326e6f41337d4c7ecfccd5c6f629d455c8387228.tar.zst freebsd-ports-gnome-326e6f41337d4c7ecfccd5c6f629d455c8387228.zip |
Allow running this with a negative revision number, to backout a commit.
Sponsored by: Absolight
Diffstat (limited to 'Tools/scripts')
-rwxr-xr-x | Tools/scripts/mfh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/scripts/mfh b/Tools/scripts/mfh index 9f2e76483fcd..277eafd500d2 100755 --- a/Tools/scripts/mfh +++ b/Tools/scripts/mfh @@ -63,7 +63,7 @@ for rev in $@ do rev=${rev##r} # remove a leading "r" case ${rev} in - ''|*[!0-9]*) err "revision \"${rev}\" should be a number" ;; + ''|*[!-0-9]*) err "revision \"${rev}\" should be a number" ;; esac done @@ -102,7 +102,7 @@ do f=${f%/*} filelist="${filelist}${LF}${f}" done - "${svn}" log -r${rev} ${svnserver}/ports/head | sed '1,2d;$d;/^MFH:/d' \ + "${svn}" log -r${rev##-} ${svnserver}/ports/head | sed '1,2d;$d;/^MFH:/d' \ | sed '$d' >> commit.txt done filelist=$(printf '%s\n' "${filelist}" | sort -u) |