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

login
register
mail settings
Submitter Nathan Goldbaum
Date May 4, 2016, 4:02 p.m.
Message ID <9fdec65dcc60fcfd08b3.1462377751@rous2.ncsa.illinois.edu>
Download mbox | patch
Permalink /patch/14883/
State Accepted
Headers show

Comments

Nathan Goldbaum - May 4, 2016, 4:02 p.m.
# HG changeset patch
# User Nathan Goldbaum <ngoldbau@illinois.edu>
# Date 1462376787 18000
#      Wed May 04 10:46:27 2016 -0500
# Node ID 9fdec65dcc60fcfd08b315fe4c609f4c0f2b3b93
# Parent  8eba4cdcfd810d80785c94d770a442c5bd1f9d0f
revert: mention ui.origbackuppath in the command help
Augie Fackler - May 4, 2016, 4:53 p.m.
> On May 4, 2016, at 12:02, Nathan Goldbaum <nathan12343@gmail.com> wrote:
> 
> # HG changeset patch
> # User Nathan Goldbaum <ngoldbau@illinois.edu>
> # Date 1462376787 18000
> #      Wed May 04 10:46:27 2016 -0500
> # Node ID 9fdec65dcc60fcfd08b315fe4c609f4c0f2b3b93
> # Parent  8eba4cdcfd810d80785c94d770a442c5bd1f9d0f
> revert: mention ui.origbackuppath in the command help

Queued this, thanks!


> diff -r 8eba4cdcfd81 -r 9fdec65dcc60 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 directory 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.
> 
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel@mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Patch

diff -r 8eba4cdcfd81 -r 9fdec65dcc60 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 directory 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.