comparison hgext/mq.py @ 10611:e764f24a45ee

patch/diff: move patch.export() to cmdutil.export() This API change will allow us to break a cycle between patch and cmdutil.
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Mon, 08 Mar 2010 19:43:24 +0100
parents ff2704a8ded3
children c4859aad1980
comparison
equal deleted inserted replaced
10610:eea2db5f56ba 10611:e764f24a45ee
1679 checkseries(patchname) 1679 checkseries(patchname)
1680 checkfile(patchname) 1680 checkfile(patchname)
1681 self.full_series.insert(0, patchname) 1681 self.full_series.insert(0, patchname)
1682 1682
1683 patchf = self.opener(patchname, "w") 1683 patchf = self.opener(patchname, "w")
1684 patch.export(repo, [n], fp=patchf, opts=diffopts) 1684 cmdutil.export(repo, [n], fp=patchf, opts=diffopts)
1685 patchf.close() 1685 patchf.close()
1686 1686
1687 se = statusentry(hex(n), patchname) 1687 se = statusentry(hex(n), patchname)
1688 self.applied.insert(0, se) 1688 self.applied.insert(0, se)
1689 1689