[PATCH STABLE] strip: fix typo in opts.get for --no-backup (issue2377)

Christian Ebert blacktrash at gmx.net
Fri Dec 31 11:23:25 CST 2010


# HG changeset patch
# User Christian Ebert <blacktrash at gmx.net>
# Date 1293816171 0
# Branch stable
# Node ID b41ea6c3df4776631ab2747174d15458dd31869b
# Parent  4d03707916d33773cd1abb9d2f50a0b1564d90c1
strip: fix typo in opts.get for --no-backup (issue2377)

Thanks to mruwek for spotting it.

diff --git a/hgext/mq.py b/hgext/mq.py
--- a/hgext/mq.py
+++ b/hgext/mq.py
@@ -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


More information about the Mercurial-devel mailing list