strip: typo bugfix related to '--nobackup -> --no-backup' rename (issue2377) stable
authorJacek Sowiński <mruwek.gentoo@vcf.pl>
Fri, 31 Dec 2010 15:14:51 +0100
branchstable
changeset 13224 0a1eefaf98f2
parent 13223 1fb95537ca58
child 13225 e3bf16703e26
strip: typo bugfix related to '--nobackup -> --no-backup' rename (issue2377) '--no-backup' in cmdline means *'no_backup'* in code'
hgext/mq.py
--- a/hgext/mq.py	Sat Jan 01 18:15:17 2011 -0600
+++ b/hgext/mq.py	Fri Dec 31 15:14:51 2010 +0100
@@ -2504,7 +2504,7 @@
     backup = 'all'
     if opts.get('backup'):
         backup = 'strip'
-    elif opts.get('no-backup') or opts.get('nobackup'):
+    elif opts.get('no_backup') or opts.get('nobackup'):
         backup = 'none'
 
     cl = repo.changelog