From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: RCS, again: another removed functionality: undo last-checkin Date: Mon, 21 Sep 2015 22:33:42 +0300 Message-ID: <56005B96.2090006@yandex.ru> References: <87oagx6tzz.fsf@mat.ucm.es> <55FF4026.2050004@yandex.ru> <83si68nu4i.fsf@gnu.org> <56000DEB.1000306@yandex.ru> <83si67n4ch.fsf@gnu.org> <5600373A.6090206@yandex.ru> <83oagvn1lz.fsf@gnu.org> <56003D57.2080102@yandex.ru> <83mvwfmviy.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1442864073 15666 80.91.229.3 (21 Sep 2015 19:34:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Sep 2015 19:34:33 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 21 21:34:28 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ze6r6-0007he-0Y for ged-emacs-devel@m.gmane.org; Mon, 21 Sep 2015 21:34:28 +0200 Original-Received: from localhost ([::1]:60804 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ze6r5-0003y5-8t for ged-emacs-devel@m.gmane.org; Mon, 21 Sep 2015 15:34:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36936) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ze6qt-0003xz-7f for emacs-devel@gnu.org; Mon, 21 Sep 2015 15:34:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ze6qo-0004mU-8C for emacs-devel@gnu.org; Mon, 21 Sep 2015 15:34:15 -0400 Original-Received: from mail-la0-x22e.google.com ([2a00:1450:4010:c03::22e]:32911) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ze6qn-0004m3-WD; Mon, 21 Sep 2015 15:34:10 -0400 Original-Received: by lamp12 with SMTP id p12so73539379lam.0; Mon, 21 Sep 2015 12:34:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=QqPBkgVNLjiTcnR4xb00GB4x0H1UBRlCFY8AbV4cUso=; b=HO8PZe0pG3KVVuXcFPuoU2MmyUweBO/+/cI5v/o8uyW6lWlbnAGHvLFN7yMK8XIvgu pFjnVnMEuR1vS8ohey2u/eb4CWAS1ToiGPAzcfa0Vv9qVCYn7Pn2yER9LjN/nClw+c+O bz+4admTzQjTF71NUxS4UGsTg4+7OClFlZbwqMamllOF9ivCAi0qfIGImrJb3l8jjRvD HfE8j2b8R2/YHd+8Ma7c06ndyiY/t8BTH/aEhBVUswfnklTXUhZwusyrrHsVZPNl9wvq xuwNEEtlHpa6MGhEo9GSLazPBirSTEGNoo5BPRBuRdFUsl+s+Ks8FsA+TqvqLwgCy+Gq hnqg== X-Received: by 10.152.21.74 with SMTP id t10mr8023133lae.107.1442864049189; Mon, 21 Sep 2015 12:34:09 -0700 (PDT) Original-Received: from [192.168.1.190] ([178.252.127.222]) by smtp.googlemail.com with ESMTPSA id j2sm3833687lag.9.2015.09.21.12.34.07 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Sep 2015 12:34:08 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:41.0) Gecko/20100101 Thunderbird/41.0 In-Reply-To: <83mvwfmviy.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::22e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:190212 Archived-At: On 09/21/2015 10:17 PM, Eli Zaretskii wrote: > Yes, it does. From the description of "cvs admin": > ... > `-oRANGE' > Deletes ("outdates") the revisions given by RANGE. > > (It then goes on to describe the syntax of RANGE, basically > REV1::REV2.) Can it remove revisions from the tip, too? The description looks like it mostly applies to removing intermediate revisions in the middle of the history. >> 'git revert', by itself, doesn't affect the remote either. > > Indeed, so what is the reason not to use it as "rollback"? Like it's been said, 'rcs rollback' removes a revision from history (right?). 'git revert' doesn't. That's an inconsistency that can be surprising for a user. I use 'git reset' from time to time on the local history (and 'git revert' - considerably less often), so supporting the former would be also more useful for me personally. > I agree. But the original issue was whether a "rollback" should > invoke "git reset --hard" or "git revert", or sometimes one or the > other. The issue never was about adding a "push" to that. You said: "if Git's rollback will affect the remote, when it should, it's OK, I think". That implies a 'git push' in my mind. Otherwise, 'git reset' and 'git revert' are roughly equivalent in this regard. It's just that 'git push' will fail upon being called after the former, in certain circumstances.