Patchwork [STABLE] revert: mention ui.origbackuppath in the command help

login
register
mail settings
Submitter Nathan Goldbaum
Date May 4, 2016, 3:47 p.m.
Message ID <d36b7367dd9d67d09292.1462376867@rous2.ncsa.illinois.edu>
Download mbox | patch
Permalink /patch/14882/
State Superseded
Headers show

Comments

Nathan Goldbaum - May 4, 2016, 3:47 p.m.
# HG changeset patch
# User Nathan Goldbaum <ngoldbau@illinois.edu>
# Date 1462376787 18000
#      Wed May 04 10:46:27 2016 -0500
# Node ID d36b7367dd9d67d092922b174b035e3a217dd87c
# Parent  8eba4cdcfd810d80785c94d770a442c5bd1f9d0f
revert: mention ui.origbackuppath in the command help
Jordi GutiƩrrez Hermoso - May 5, 2016, 2:28 a.m.
On Wed, 2016-05-04 at 10:47 -0500, Nathan Goldbaum wrote:
> # HG changeset patch
> # User Nathan Goldbaum <ngoldbau@illinois.edu>
> # Date 1462376787 18000
> #      Wed May 04 10:46:27 2016 -0500
> # Node ID d36b7367dd9d67d092922b174b035e3a217dd87c
> # Parent  8eba4cdcfd810d80785c94d770a442c5bd1f9d0f
> revert: mention ui.origbackuppath in the command help
[snip]
>      Modified files are saved with a .orig suffix before reverting.
> -    To disable these backups, use --no-backup.
> +    To disable these backups, use --no-backup. It is possible to store
> +    the backup files in a custom direcorty relative to the root of the
> +    repository by setting the ``ui.origbackuppath`` configuration
> +    option.

There's typically a xref to `hg help hgrc` whenever a command's help
mentions config knobs. At least, that's how I've once or twice.

Patch

diff -r 8eba4cdcfd81 -r d36b7367dd9d mercurial/commands.py
--- a/mercurial/commands.py	Sun Apr 17 12:31:06 2016 +0900
+++ b/mercurial/commands.py	Wed May 04 10:46:27 2016 -0500
@@ -6297,7 +6297,10 @@  def revert(ui, repo, *pats, **opts):
     related method.
 
     Modified files are saved with a .orig suffix before reverting.
-    To disable these backups, use --no-backup.
+    To disable these backups, use --no-backup. It is possible to store
+    the backup files in a custom direcorty relative to the root of the
+    repository by setting the ``ui.origbackuppath`` configuration
+    option.
 
     See :hg:`help dates` for a list of formats valid for -d/--date.