comparison hgext/shelve.py @ 22684:73d7de6f9b47

shelve: remove unused status variables
author Martin von Zweigbergk <martinvonz@gmail.com>
date Wed, 24 Sep 2014 17:18:57 -0700
parents c5ece02fb211
children 1533e642262d
comparison
equal deleted inserted replaced
22683:f1872fdc1c3c 22684:73d7de6f9b47
399 files = [] 399 files = []
400 files.extend(shelvectx.files()) 400 files.extend(shelvectx.files())
401 files.extend(shelvectx.parents()[0].files()) 401 files.extend(shelvectx.parents()[0].files())
402 402
403 # revert will overwrite unknown files, so move them out of the way 403 # revert will overwrite unknown files, so move them out of the way
404 m, a, r, d, u = repo.status(unknown=True)[:5] 404 for file in repo.status(unknown=True)[4]:
405 for file in u:
406 if file in files: 405 if file in files:
407 util.rename(file, file + ".orig") 406 util.rename(file, file + ".orig")
408 ui.pushbuffer(True) 407 ui.pushbuffer(True)
409 cmdutil.revert(ui, repo, shelvectx, repo.dirstate.parents(), 408 cmdutil.revert(ui, repo, shelvectx, repo.dirstate.parents(),
410 *pathtofiles(repo, files), 409 *pathtofiles(repo, files),