largefiles: rename lfconvert --tonormal option to --to-normal stable
authorGreg Ward <greg@gerg.ca>
Thu, 20 Oct 2011 21:56:30 -0400
branchstable
changeset 15332 0db47b8d025f
parent 15331 bc4d8804855c
child 15333 f37b71fec602
largefiles: rename lfconvert --tonormal option to --to-normal
hgext/largefiles/lfcommands.py
tests/test-largefiles.t
--- a/hgext/largefiles/lfcommands.py	Thu Oct 20 22:01:05 2011 -0400
+++ b/hgext/largefiles/lfcommands.py	Thu Oct 20 21:56:30 2011 -0400
@@ -35,10 +35,10 @@
     largefiles is enabled anywhere you intend to push the new
     repository.
 
-    Use --tonormal to convert largefiles back to normal files; after
+    Use --to-normal to convert largefiles back to normal files; after
     this, the DEST repository can be used without largefiles at all.'''
 
-    if opts['tonormal']:
+    if opts['to_normal']:
         tolfile = False
     else:
         tolfile = True
@@ -477,7 +477,7 @@
                     _('minimum size (MB) for files to be converted '
                       'as largefiles'),
                     'SIZE'),
-                  ('', 'tonormal', False,
+                  ('', 'to-normal', False,
                    _('convert from a largefiles repo to a normal repo')),
                   ],
                   _('hg lfconvert SOURCE DEST [FILE ...]')),
--- a/tests/test-largefiles.t	Thu Oct 20 22:01:05 2011 -0400
+++ b/tests/test-largefiles.t	Thu Oct 20 21:56:30 2011 -0400
@@ -711,7 +711,7 @@
   3b71f43ff30f4b15b5cd85dd9e95ebc7e84eb5a3
 
 Convert back to a normal (non-largefiles) repo
-  $ hg lfconvert --tonormal . ../normal-repo
+  $ hg lfconvert --to-normal . ../normal-repo
   initializing destination ../normal-repo
   $ cd ../normal-repo
   $ cat >> .hg/hgrc <<EOF