Issue46

Title add debugtruncate command
Priority feature Status resolved
Superseder Nosy List ThomasAH, alexis, brendan, djc, mason, mpm, tksoh
Assigned To Topics ui

Created on 2005-10-28.09:28:26 by tksoh, last changed 2010-10-09.21:48:22 by mpm.

Messages
msg13925 (view) Author: mpm Date: 2010-10-09.21:48:22
By historical consensus, hg --config extensions.mq strip is sufficient.
msg2237 (view) Author: tksoh Date: 2006-10-16.18:58:42
> debugtruncate in core.

+1 from me too.
msg2231 (view) Author: ThomasAH Date: 2006-10-16.17:14:30
<mpm> I would be less troubled by having, say, debugtruncate in core.

For many use-cases (especially the cases I had) this is enough, so +1 from me
msg2212 (view) Author: mpm Date: 2006-10-13.17:53:26
Strip is still problematic for the core.

The append-only property of Mercurial files is a safety net against future
software bugs or hardware failure corrupting historic data, something that
becomes increasingly likely on timescales of decades.

Mq breaks this rule rather dramatically. That's fine for short-lived branches on
laptops where the damage is well-contained but not for central archives.
Therefore the strip command should be explicitly part of the mq functionality
(possibly with a 'q' prefix).
msg2208 (view) Author: ThomasAH Date: 2006-10-13.16:54:29
not really renaming, it should still be accessible as strip.
But currently the only way to hide a command from help is to name it debugfoo,
so the command table entry would be "debugstrip|strip".
msg2207 (view) Author: brendan Date: 2006-10-13.16:09:03
I'm not generally in favour of educating users by deliberately making certain 
operations more difficult, but I guess there's no harm in just making the command 
harder to find. Still, I think it's got more general utility than your typical 
debug command, and am mildly against renaming it to debugstrip. But I do think it 
belongs in core.
msg2205 (view) Author: ThomasAH Date: 2006-10-13.15:38:25
the problem is not the destructiveness of 'hg strip' (we save a backup bundle
now), but the workflow implications. Getting used to immutable history is an
important thing when working with Mercurial, know the rules before breaking
them, and such.
msg2189 (view) Author: tksoh Date: 2006-10-13.14:14:50
the revert command is equally descructive (though the recently added --all help
ease my mine a little), so trying to hide 'strip' doesn't make a lot of sense.

+1 to debugstrip.
msg2175 (view) Author: ThomasAH Date: 2006-10-13.11:22:56
Added asak (alexis) to the nosy, too.
msg2174 (view) Author: ThomasAH Date: 2006-10-13.11:22:02
Reopening myself after thinking about this a little bit more.
Strip is in the mq extension for historic reasons, I think we can ignore this
when talking about usability.

If strip would be in hg core, one danger would be that a user will learn this
command too early, but this safety net is already disabled by distributions or
admins enabling mq by default.

If strip would be in hg core, but be named debugstrip (with strip as alias) it
will be hidden, so the newbie user will not be confused by it or adapt his
working style to having this command available.

If we get a better help system in the future, strip could be listed in the
advanced commands section or sth. like that.

Are there other reasons for not having strip in hg core?
msg2170 (view) Author: ThomasAH Date: 2006-10-13.10:42:06
Enabling the mq extension is easy and will provide the strip command.
The annoying help output is a different problem addressed in issue197

Please reopen a separate issue if you think mq should add less help entries by
default, as we already have 'hg help mq'.
msg630 (view) Author: tksoh Date: 2006-03-06.02:19:12
Clone -r doesn't support hardlinks. I don't use mq, but just want the strip
commmand. The extension adds the [long list of] mq commands to the default
command list, which I find rather annoying (IMO, no extension commands should
invite themself to the default list)
msg608 (view) Author: bos Date: 2006-03-04.04:09:31
On Fri, 2006-03-03 at 17:10 -0800, TK Soh wrote:

> Why is the status set to 'resolved'? mq is added to mainline only as an extention. The original
> suggestion was to make strip a standard command.

We already have clone -r and pull -r for that.  If you need actual
strip, just put mq in your extensions line.

	<b
msg607 (view) Author: tksoh Date: 2006-03-04.01:07:55
--- Bryan O'Sullivan <mercurial-bugs@selenic.com> wrote:
> 
> Bryan O'Sullivan <bos@serpentine.com> added the comment:
> 
> mq is in mainline now.
> 
> ----------
> status: chatting -> resolved

Why is the status set to 'resolved'? mq is added to mainline only as an extention. The original
suggestion was to make strip a standard command.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com
msg596 (view) Author: bos Date: 2006-03-03.20:09:14
mq is in mainline now.
msg344 (view) Author: vadim Date: 2006-01-02.23:58:12
+1
msg88 (view) Author: tksoh Date: 2005-10-28.09:28:26
Move mq's strip command to Mercurial.
History
Date User Action Args
2010-10-09 21:48:22mpmsetstatus: chatting -> resolved
nosy: mpm, ThomasAH, mason, tksoh, brendan, alexis, djc
messages: + msg13925
2008-02-12 09:24:09djcsettopic: + ui
nosy: + djc
2006-11-02 16:13:28ThomasAHsetstatus: need-eg -> chatting
nosy: mpm, ThomasAH, mason, tksoh, brendan, alexis
title: add strip command -> add debugtruncate command
2006-10-16 18:58:44tksohsetnosy: mpm, ThomasAH, mason, tksoh, brendan, alexis
messages: + msg2237
2006-10-16 17:16:09ThomasAHsetnosy: mpm, ThomasAH, mason, tksoh, brendan, alexis
assignedto: ThomasAH ->
2006-10-16 17:14:31ThomasAHsetnosy: mpm, ThomasAH, mason, tksoh, brendan, alexis
messages: + msg2231
2006-10-13 17:53:27mpmsetnosy: mpm, ThomasAH, mason, tksoh, brendan, alexis
messages: + msg2212
2006-10-13 16:54:29ThomasAHsetnosy: mpm, ThomasAH, mason, tksoh, brendan, alexis
messages: + msg2208
assignedto: mason -> ThomasAH
2006-10-13 16:09:04brendansetnosy: mpm, ThomasAH, mason, tksoh, brendan, alexis
messages: + msg2207
2006-10-13 15:38:25ThomasAHsetnosy: mpm, ThomasAH, mason, tksoh, brendan, alexis
messages: + msg2205
2006-10-13 14:14:50tksohsetnosy: mpm, ThomasAH, mason, tksoh, brendan, alexis
messages: + msg2189
2006-10-13 11:22:56ThomasAHsetstatus: chatting -> need-eg
nosy: + alexis
messages: + msg2175
2006-10-13 11:22:03ThomasAHsetstatus: resolved -> chatting
nosy: + mpm, brendan
superseder: - make default output of "hg help" useful
messages: + msg2174
2006-10-13 10:42:06ThomasAHsetstatus: chatting -> resolved
nosy: + ThomasAH
superseder: + make default output of "hg help" useful
messages: + msg2170
2006-03-06 02:19:19tksohsetmessages: + msg630
2006-03-04 04:09:36bossetmessages: + msg608
2006-03-04 01:07:59tksohsetstatus: resolved -> chatting
messages: + msg607
2006-03-03 20:09:16bossetstatus: chatting -> resolved
messages: + msg596
2006-01-29 09:09:29mpmsetassignedto: mason
nosy: + mason
2006-01-02 23:58:12vadimsetstatus: unread -> chatting
messages: + msg344
2005-10-28 09:28:26tksohcreate