As above. If you're using a VRLA/AGM/sealed battery there's less concern about hydrogen escaping, but ALL batteries can emit hydrogen while charging. Dumping a full battery onto an empty battery will cause the empty battery to try charging very, very fast - and that produces lots of hydrogen. Even sealed batteries will release that if the pressure is too great, and you do run the risk of igniting this gas from the sparks as you disconnect the leads.