[PATCH 5 of 5] largefiles: rename lfconvert --tonormal option to --to-normal

Greg Ward greg-hg at gerg.ca
Thu Oct 20 21:25:27 CDT 2011


# HG changeset patch
# User Greg Ward <greg at gerg.ca>
# Date 1319162190 14400
# Branch stable
# Node ID de82ed165717cad91a88b079c040d3f1f1a409ce
# Parent  ef864f855fbc4ebaf42d4d277b531a742f38ab06
largefiles: rename lfconvert --tonormal option to --to-normal

diff --git a/hgext/largefiles/lfcommands.py b/hgext/largefiles/lfcommands.py
--- a/hgext/largefiles/lfcommands.py
+++ b/hgext/largefiles/lfcommands.py
@@ -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
@@ -479,7 +479,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 ...]')),
diff --git a/tests/test-largefiles.t b/tests/test-largefiles.t
--- a/tests/test-largefiles.t
+++ b/tests/test-largefiles.t
@@ -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


More information about the Mercurial-devel mailing list