[PATCH 2 of 7] revert: cosmetic align of the dispatch table

pierre-yves.david at ens-lyon.org pierre-yves.david at ens-lyon.org
Mon May 19 10:58:01 CDT 2014


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at fb.com>
# Date 1400023760 25200
#      Tue May 13 16:29:20 2014 -0700
# Node ID 4e99a4c765f591a01ed1ef190823344d2025e144
# Parent  bf97b13adc66b73cac73fe5e4135eac8822a110c
revert: cosmetic align of the dispatch table

This changeset make a minimal cosmetic change to help readability of the value
in this table.

diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py
--- a/mercurial/cmdutil.py
+++ b/mercurial/cmdutil.py
@@ -2308,14 +2308,14 @@ def revert(ui, repo, ctx, parents, *pats
             #   file state
             #   action if in target manifest
             #   action if not in target manifest
             #   make backup if in target manifest
             #   make backup if not in target manifest
-            (modified, revert, remove, True, True),
-            (added, revert, remove, True, False),
-            (removed, undelete, None, True, False),
-            (deleted, revert, remove, False, False),
+            (modified, revert,   remove, True,  True),
+            (added,    revert,   remove, True,  False),
+            (removed,  undelete, None,   True,  False),
+            (deleted,  revert,   remove, False, False),
             )
 
         for abs, (rel, exact) in sorted(names.items()):
             mfentry = mf.get(abs)
             target = repo.wjoin(abs)


More information about the Mercurial-devel mailing list