Make svn_wc__db_scan_addition() avoid a few db queries in case some output
arguments are null. While not reducing the number of database transactions,
it should certainly avoid spending cpu cycles.

* subversion/libsvn_wc/wc_db.c
  (get_moved_from_info): Remove status argument.
  (scan_addition_txn): Don't obtain moved paths when we only need the status.
    Reset statement on error condition. Don't search for first BASE ancestor
    if we don't need it for output argument calculation.


git-svn-id: https://svn.apache.org/repos/asf/subversion/trunk@1451236 13f79535-47bb-0310-9956-ffa450edef68