# # # patch "ChangeLog" # from [af0d4ada8b8d6e8959ec92ee57ade1a2a778a770] # to [94848ae5f3945356280d5279c64650cc9c8bc253] # ============================================================ --- ChangeLog af0d4ada8b8d6e8959ec92ee57ade1a2a778a770 +++ ChangeLog 94848ae5f3945356280d5279c64650cc9c8bc253 @@ -49,11 +49,25 @@ get() | sed 's/^[^\:]\+\: //g' } +tac_() +{ + # apparently freebsd doesn't come with tac, but it + # does have a -r flag for tail that does the same thing. + # but of course the tail that Debian (and presumably other + # linuxes) has doesn't support the -r flag + if which tac >/dev/null 2>&1 + then + tac + else + tail -r + fi +} + getrevs() { $MTN $DB automate ancestors "$1" \ | $MTN $DB automate toposort address@hidden \ - | tail -n "$2" | tac + | tail -n "$2" | tac_ } getlogs()