applyupdates: assign variable before we try to use it (issue3855)
The variable 'fd' was getting used with a value left over from a prior
iteration, causing a KeyError: '.hgsubstate'.
fixbundle(){ grep -v 'saving bundle'| grep -v 'saved backup'|\ grep -v added | grep -v adding |\ grep -v "unable to find 'e' for patching"|\ grep -v "e: No such file or directory"}