Patchwork [2,of,3] shelve: remove unused variable caught by pyflakes

login
register
mail settings
Submitter Sean Farley
Date April 4, 2014, 1:36 a.m.
Message ID <8e029062eb1c192a041e.1396575383@laptop.local>
Download mbox | patch
Permalink /patch/4222/
State Accepted
Commit c0bf8bea10ddfa075adf002c16b8880ea8ae1a1a
Headers show

Comments

Sean Farley - April 4, 2014, 1:36 a.m.
# HG changeset patch
# User Sean Farley <sean.michael.farley@gmail.com>
# Date 1396575176 18000
#      Thu Apr 03 20:32:56 2014 -0500
# Node ID 8e029062eb1c192a041e624866d38ed99a61f847
# Parent  1c57219a50b93db9eaa83aac4cbd941a37e57a79
shelve: remove unused variable caught by pyflakes

Patch

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)