From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa.local.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=lHVUE2pmAX0FKe5aOFKFfhQaK7eBf15otvLIEv2AKB4=; b=o8Wt0oumISuORMIq4MoGFsw+RHKnp36ELxKUBwgRoi3Xng0a6VHv2MiFopPB4HMIj8 XSa16ww8pfIbUcMIxdlzLtxe9rL5fY8WwnuykGdJ5HPZIqE+5DpcooPu93kEVTOGzqxX 0KFaTMdwJzw7TciQ0kn5E8tjokWcy+/n2rwxEdBsCG542A+8DPCPzN2rHM3CZjKyXKyO 3ePN7vxNTXk+0nCMm4l6+sI4ihT4+dRNEo3gU1hEslrOU4W3jEF6C/WfWD2QTvg8gguc 2W+8NP+Hibt/SO9a2TleXDt/ashuUsk5D59aasTsRoHtZvtO5yl/0gQwTUpvbniZgzMz cIPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=lHVUE2pmAX0FKe5aOFKFfhQaK7eBf15otvLIEv2AKB4=; b=RvZsN+aryKFexemY6wp6Ea0yRdKPAoiFCXvWQPzc5f5eowU8WRjgRTr4HfjQCg2WQm Qogkt9Ya5YTmrPxR/dFqgl2nbPlj5fnQW2kkbadt5+2npstYTZbTwT8/3271aOLLjznl TPwT8obVNKjPsTZ6O3tHSb3PMR295UKQWvg4pg8vDKBbynLtB/ZMtEHK/Sw3VXASaHkP zstYqx+gw9yExriPfZMXouacVK6ci/cOE6djZT8gz2hI4b/8bK7RotcoUR+YqZk79KOE ugKXeRC756T6GKID27Ks6Vdl2XGDLqJNersU5IQI0VnBdWuJblKHcizJhNPZlL+b5vff krfg== X-Gm-Message-State: AA6/9RlmwBmGuI+OFz3pc+oNlAltPzUmL0ZUFXHN8ZLkT0yUyZa2vrcOFrqMZb0s9VT3qQ== X-Received: by 10.25.192.20 with SMTP id q20mr54184lff.66.1476791817840; Tue, 18 Oct 2016 04:56:57 -0700 (PDT) To: ALT Linux Sisyphus discussions References: From: Stas Message-ID: <58060E08.3070302@gmail.com> Date: Tue, 18 Oct 2016 16:56:56 +0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit Subject: Re: [sisyphus] =?utf-8?b?0J/RgNC+0LPRgNCw0LzQvNCwINC00LvRjyDQv9GA0LU=?= =?utf-8?b?0L7QsdGA0LDQt9C+0LLQsNC90LjRjyBwYXRjaC3RhNCw0LnQu9Cw?= X-BeenThere: sisyphus@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Sisyphus discussions List-Id: ALT Linux Sisyphus discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Oct 2016 11:57:03 -0000 Archived-At: List-Archive: List-Post: On 18.10.2016 14:23, Aleksey Birukov wrote: > Существует ли программа преобразовывает patch файл в обратный? IMHO она не имеет смысла, поскольку pathc умеет как применять, так и откатывать дифф. RTFM: man patch > -R or --reverse > Assume that this patch was created with the old and new > files swapped. (Yes, I'm afraid that does happen occasionally, human > nature being what it is.) patch > attempts to swap each hunk around before applying it. > Rejects come out in the swapped format. The -R option does not work > with ed diff scripts because there is > too little information to reconstruct the reverse operation. > > If the first hunk of a patch fails, patch reverses the hunk > to see if it can be applied that way. If it can, you are asked if you > want to have the -R option > set. If it can't, the patch continues to be applied > normally. (Note: this method cannot detect a reversed patch if it is > a normal diff and if the first command > is an append (i.e. it should have been a delete) since > appends always succeed, due to the fact that a null context matches > anywhere. Luckily, most patches add > or change lines rather than delete them, so most reversed > normal diffs begin with a delete, which fails, triggering the heuristic.) -- Станислав Дёгтев Служба "Ваш админ" Мои контакты: - jabber: grumbler@grumbler.org - email: stas.grumbler@gmail.com и stas@vashadmin.su - телефоны в Е-бурге +79045430461 и +79222112259