revert: add more padding in the dispatch list
authorPierre-Yves David <pierre-yves.david@fb.com>
Sat, 30 Aug 2014 16:06:09 +0200
changeset 22372 8da5864dcfda
parent 22371 81ad62defef5
child 22373 f6a1386d540e
revert: add more padding in the dispatch list We are going to add more sets and some of them will have longer names. We add padding in a standalone patch for readbility purposes.
mercurial/cmdutil.py
--- a/mercurial/cmdutil.py	Sat Aug 30 01:48:58 2014 +0200
+++ b/mercurial/cmdutil.py	Sat Aug 30 16:06:09 2014 +0200
@@ -2521,20 +2521,20 @@
 
             ## Sets that results that will change file on disk
             # Modified compared to target, no local change
-            (modified,   actions['revert'],   discard),
+            (modified,      actions['revert'],   discard),
             # Modified compared to target, local change
-            (dsmodified, actions['revert'],   backup),
+            (dsmodified,    actions['revert'],   backup),
             # Added since target
-            (dsadded,    actions['remove'],   backup),
+            (dsadded,       actions['remove'],   backup),
             # Removed since  target, before working copy parent
-            (removed,    actions['add'],      backup),
+            (removed,       actions['add'],      backup),
             # Removed since targe, marked as such in working copy parent
-            (dsremoved,  actions['undelete'], backup),
+            (dsremoved,     actions['undelete'], backup),
             ## the following sets does not result in any file changes
             # File with no modification
-            (clean,      actions['noop'],     discard),
+            (clean,         actions['noop'],     discard),
             # Existing file, not tracked anywhere
-            (unknown,    actions['unknown'],  discard),
+            (unknown,       actions['unknown'],  discard),
             )
 
         needdata = ('revert', 'add', 'remove', 'undelete')