def replace_history(self, commands):
        self.clear_history()
        for command in commands:
            self.add_item(command, force=True)
Replace the entire contents of the history with another set of values
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/grizzled/grizzled/history.py/History.replace_history