# HG changeset patch # User Alexis S. L. Carvalho # Date 1155385444 10800 # Node ID a3c73c9679d258cbe9d81092f5eaa8994c97d248 # Parent cdbca3d59518a4cc4ff52f8f673fe44b9896f31b Fix "hg qnew -f foo" without -m The refresh method assumes it has a string. diff -r cdbca3d59518 -r a3c73c9679d2 hgext/mq.py --- a/hgext/mq.py Sat Aug 12 11:53:12 2006 -0700 +++ b/hgext/mq.py Sat Aug 12 09:24:04 2006 -0300 @@ -561,7 +561,7 @@ r = self.qrepo() if r: r.add([patch]) if commitfiles: - self.refresh(repo, msg=None, short=True) + self.refresh(repo, short=True) def strip(self, repo, rev, update=True, backup="all", wlock=None): def limitheads(chlog, stop): @@ -921,7 +921,7 @@ qp = self.qparents(repo, top) commands.dodiff(sys.stdout, self.ui, repo, qp, None, files) - def refresh(self, repo, msg=None, short=False): + def refresh(self, repo, msg='', short=False): if len(self.applied) == 0: self.ui.write("No patches applied\n") return