From patchwork Fri Apr 4 01:36:23 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [2,of,3] shelve: remove unused variable caught by pyflakes From: Sean Farley X-Patchwork-Id: 4222 Message-Id: <8e029062eb1c192a041e.1396575383@laptop.local> To: mercurial-devel@selenic.com Date: Thu, 03 Apr 2014 20:36:23 -0500 # HG changeset patch # User Sean Farley # Date 1396575176 18000 # Thu Apr 03 20:32:56 2014 -0500 # Node ID 8e029062eb1c192a041e624866d38ed99a61f847 # Parent 1c57219a50b93db9eaa83aac4cbd941a37e57a79 shelve: remove unused variable caught by pyflakes diff --git a/hgext/shelve.py b/hgext/shelve.py --- a/hgext/shelve.py +++ b/hgext/shelve.py @@ -147,11 +147,11 @@ def createcmd(ui, repo, pats, opts): # we never need the user, so we use a generic user for all shelve operations user = 'shelve@localhost' label = repo._bookmarkcurrent or parent.branch() or 'default' # slashes aren't allowed in filenames, therefore we rename it - origlabel, label = label, label.replace('/', '_') + label = label.replace('/', '_') def gennames(): yield label for i in xrange(1, 100): yield '%s-%02d' % (label, i)