[PATCH] 'hg strip --no-backup' saves bundle anyway

Jacek Sowiński mruwek.gentoo at vcf.pl
Fri Dec 31 08:18:27 CST 2010


# HG changeset patch
# User Jacek Sowiński <mruwek.gentoo at vcf.pl>
# Date 1293804891 -3600
# Node ID bb29e52f746b3f406b6e1f6eba4d43ca5bd38d02
# Parent  d85d8ad88de938f4a6a5a0e3818eab70fc0c2ec0
strip: typo bugfix related to '--nobackup -> --no-backup' rename (issue2377)

'--no-backup' in cmdline means *'no_backup'* in code'

diff -r d85d8ad88de9 -r bb29e52f746b hgext/mq.py
--- a/hgext/mq.py	Wed Dec 29 15:31:25 2010 -0600
+++ b/hgext/mq.py	Fri Dec 31 15:14:51 2010 +0100
@@ -2533,7 +2533,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


More information about the Mercurial-devel mailing list