def __new__(cls, name, bases, attrs): # Extra hg commands commands = attrs.get('commands', { }) for cmd_name, command in cls._default_commands.items() + commands.items(): attrs[cmd_name] = cls._create_hg_command(command) return ParallelNodeBase.__new__(cls, name, bases, attrs)
def __new__(cls, name, bases, attrs): # Extra git commands commands = attrs.get('commands', { }) for cmd_name, command in cls._default_commands.items() + commands.items(): attrs[cmd_name] = cls._create_git_command(command, ignore_exit_status=command in cls._ignore_exit_status) return ParallelNodeBase.__new__(cls, name, bases, attrs)