mercurial/commands.py
changeset 10654 153dd9139b0e
parent 10651 5f091fc1bab7
child 10816 635d601e8f21
equal deleted inserted replaced
10653:4f559a469972 10654:153dd9139b0e
   194             'tgz': ['.tgz', '.tar.gz'],
   194             'tgz': ['.tgz', '.tar.gz'],
   195             'zip': ['.zip'],
   195             'zip': ['.zip'],
   196         }
   196         }
   197 
   197 
   198         for type, extensions in exttypes.items():
   198         for type, extensions in exttypes.items():
   199             if any(dest.endswith(ext) for ext in extensions):
   199             if util.any(dest.endswith(ext) for ext in extensions):
   200                 return type
   200                 return type
   201         return None
   201         return None
   202 
   202 
   203     kind = opts.get('type') or guess_type() or 'files'
   203     kind = opts.get('type') or guess_type() or 'files'
   204     prefix = opts.get('prefix')
   204     prefix = opts.get('prefix')