Patchwork [STABLE] debugobsolete: improve command help

login
register
mail settings
Submitter Pierre-Yves David
Date Feb. 11, 2013, 3:30 p.m.
Message ID <9c370f873d3570aecedd.1360596611@crater2.logilab.fr>
Download mbox | patch
Permalink /patch/963/
State Accepted
Commit d4a79e075303dafbe8d226d119f3e9ead1c48d53
Headers show

Comments

Pierre-Yves David - Feb. 11, 2013, 3:30 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@ens-lyon.org>
# Date 1360452522 0
# Node ID 9c370f873d3570aecedd6cc9ad480cdc19894623
# Parent  6204e4d4dd6d10834540357dbf1deac6636077c8
debugobsolete: improve command help

The behavior without argument was not documented.
Thomas Arendsen Hein - Feb. 11, 2013, 3:39 p.m.
* pierre-yves.david@logilab.fr <pierre-yves.david@logilab.fr> [20130211 16:30]:
> # HG changeset patch
> # User Pierre-Yves David <pierre-yves.david@ens-lyon.org>
> # Date 1360452522 0
> # Node ID 9c370f873d3570aecedd6cc9ad480cdc19894623
> # Parent  6204e4d4dd6d10834540357dbf1deac6636077c8
> debugobsolete: improve command help
> 
> The behavior without argument was not documented.

Pushed to crew-stable to test the disabled publishing in the crew
repo.

Thanks,
Thomas

Patch

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -2104,11 +2104,13 @@  def debugknown(ui, repopath, *ids, **opt
 @command('debugobsolete',
         [('', 'flags', 0, _('markers flag')),
         ] + commitopts2,
          _('[OBSOLETED [REPLACEMENT] [REPL... ]'))
 def debugobsolete(ui, repo, precursor=None, *successors, **opts):
-    """create arbitrary obsolete marker"""
+    """create arbitrary obsolete marker
+
+    With no arguments it it display the list obsolescence marker."""
     def parsenodeid(s):
         try:
             # We do not use revsingle/revrange functions here to accept
             # arbitrary node identifiers, possibly not present in the
             # local repository.