unshelve: silence internal revert
authorMatt Mackall <mpm@selenic.com>
Fri, 15 Aug 2014 10:54:15 -0500
changeset 22184 fb8065de47b0
parent 22183 4dd9f606d0a6
child 22185 afead12e724b
unshelve: silence internal revert This prepares for upcoming revert changes.
hgext/shelve.py
--- a/hgext/shelve.py	Fri Aug 15 10:47:03 2014 -0500
+++ b/hgext/shelve.py	Fri Aug 15 10:54:15 2014 -0500
@@ -413,9 +413,11 @@
         for file in u:
             if file in files:
                 util.rename(file, file + ".orig")
+        ui.pushbuffer(True)
         cmdutil.revert(ui, repo, shelvectx, repo.dirstate.parents(),
                        *pathtofiles(repo, files),
                        **{'no_backup': True})
+        ui.popbuffer()
     finally:
         ui.quiet = oldquiet