Issue27

Title Add universal '-n' (or similar) option for 'no changes'.
Priority feature Status resolved
Superseder Nosy List Omnifarious, PeterW, ThomasAH, abuehl, eydaimon, jsgf, junkblocker, pmezard, vadim
Assigned To Topics merge, patch

Created on 2005-10-23.18:43:09 by Omnifarious, last changed 2009-02-16.02:27:35 by mpm.

Files
File name Uploaded Type Edit Remove
merge--dry-run.patch PeterW, 2007-06-26.19:27:32 text/x-patch
Messages
msg6208 (view) Author: abuehl Date: 2008-06-07.09:39:58
see also issue 1146
msg3354 (view) Author: PeterW Date: 2007-06-26.19:27:32
Although I don't know much about Python I added -n/--dry-run for the "merge"
command. It at least works for me.
msg3168 (view) Author: ThomasAH Date: 2007-06-07.20:21:31
issue558 (qpush should have a --dry-run option) and
issue581 (there's no --noexec option for any mercurial options)
discuss the same topic. Setting superceder for them and moving nosy to this issue.
msg1543 (view) Author: tonfa Date: 2006-06-18.17:11:16
Vadim added -n/--dry-run for all the working dir related operations.
msg35 (view) Author: Omnifarious Date: 2005-10-24.08:45:25
pull -n is problematic because there is currently no way of getting a list of
changes from the remote repository without getting the full changegroup for all
those changes first.  So, the most likely usage scenario would involve pulling
all the changes twice.  First to see what would be pulled, than again to
actually do the pull.

Of course, implementing incoming for remote repositories has the same problem.

One implementation idea is to implement a message that would cause only the
changelog entries to be pulled and nothing else.  These could then be printed
and thrown away.  This still wastes some bandwidth, but not nearly as much as
the new manifest revisions and file revisions would only be sent if -n wasn't given.

Since pull, and push are currently kind of quiet about what they're doing,
they'd also need an option to be noisier so the needed information could be
retrieved.
msg34 (view) Author: Omnifarious Date: 2005-10-23.18:43:09
Add an option to several commands that modify the working directories or
repository to prevent them from actually making that change.  Instead, they will
print out the change they would've made.

This would allow incoming and outgoing to be eliminated in favor of push -n and
pull -n.  Other commands could possibly be eliminated as well.  update would be
modified to allow it to print out a list of the working directory files it would
change instead of actually changing them.
History
Date User Action Args
2009-02-16 02:27:35mpmsetstatus: in-progress -> resolved
nosy: Omnifarious, vadim, ThomasAH, jsgf, junkblocker, pmezard, eydaimon, PeterW, abuehl
2008-08-04 15:39:33djcsettopic: + merge
nosy: Omnifarious, vadim, ThomasAH, jsgf, junkblocker, pmezard, eydaimon, PeterW, abuehl
2008-06-07 09:39:58abuehlsetnosy: Omnifarious, vadim, ThomasAH, jsgf, junkblocker, pmezard, eydaimon, PeterW, abuehl
messages: + msg6208
2008-06-07 09:37:47abuehlsetnosy: + abuehl
2008-02-11 12:00:50djcsettopic: + patch
nosy: Omnifarious, vadim, ThomasAH, jsgf, junkblocker, pmezard, eydaimon, PeterW
2007-06-26 19:27:33PeterWsetfiles: + merge--dry-run.patch
nosy: Omnifarious, vadim, ThomasAH, jsgf, junkblocker, pmezard, eydaimon, PeterW
messages: + msg3354
2007-06-26 18:48:24PeterWsetnosy: + PeterW
2007-06-07 20:21:32ThomasAHsetnosy: + jsgf, pmezard, eydaimon, ThomasAH
messages: + msg3168
2007-06-07 20:20:34ThomasAHlinkissue581 superseder
2007-06-07 20:20:05ThomasAHlinkissue558 superseder
2006-06-18 17:11:16tonfasetstatus: chatting -> in-progress
nosy: + vadim
messages: + msg1543
2006-04-15 02:42:23junkblockersetnosy: + junkblocker
2005-10-24 08:45:25Omnifarioussetstatus: unread -> chatting
messages: + msg35
2005-10-23 18:43:09Omnifariouscreate