Mercurial > hg
comparison hgext/shelve.py @ 21064:4d9d490d7bbe
bundle2: add a ui argument to readbundle
The bundle2 unbundler needs a ui argument. We are now passing this information
to `readbundle`.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Mon, 14 Apr 2014 15:45:30 -0400 |
parents | 7ca4f2049d3b |
children | aad28ff87788 |
comparison
equal
deleted
inserted
replaced
21063:7ca4f2049d3b | 21064:4d9d490d7bbe |
---|---|
69 raise util.Abort(_("shelved change '%s' not found") % self.name) | 69 raise util.Abort(_("shelved change '%s' not found") % self.name) |
70 | 70 |
71 def applybundle(self): | 71 def applybundle(self): |
72 fp = self.opener() | 72 fp = self.opener() |
73 try: | 73 try: |
74 gen = exchange.readbundle(fp, self.fname, self.vfs) | 74 gen = exchange.readbundle(self.repo.ui, fp, self.fname, self.vfs) |
75 changegroup.addchangegroup(self.repo, gen, 'unshelve', | 75 changegroup.addchangegroup(self.repo, gen, 'unshelve', |
76 'bundle:' + self.vfs.join(self.fname)) | 76 'bundle:' + self.vfs.join(self.fname)) |
77 finally: | 77 finally: |
78 fp.close() | 78 fp.close() |
79 | 79 |