Mercurial > hg-stable
changeset 3706:0d810798acb1
Use 'bundletype' instead of 'type' to not shadow built-in function.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Wed, 22 Nov 2006 22:33:57 +0100 |
parents | e9d339d5d2d7 |
children | 67f44b825784 |
files | mercurial/changegroup.py mercurial/commands.py |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/changegroup.py Wed Nov 22 22:32:23 2006 +0100 +++ b/mercurial/changegroup.py Wed Nov 22 22:33:57 2006 +0100 @@ -54,7 +54,7 @@ "HG10GZ": ("HG10GZ", zlib.compressobj), } -def writebundle(cg, filename, type): +def writebundle(cg, filename, bundletype): """Write a bundle file and return its filename. Existing files will not be overwritten. @@ -75,7 +75,7 @@ fh = os.fdopen(fd, "wb") cleanup = filename - header, compressor = bundletypes[type] + header, compressor = bundletypes[bundletype] fh.write(header) z = compressor()
--- a/mercurial/commands.py Wed Nov 22 22:32:23 2006 +0100 +++ b/mercurial/commands.py Wed Nov 22 22:33:57 2006 +0100 @@ -1324,8 +1324,8 @@ if fname or not other.local(): # create a bundle (uncompressed if other repo is not local) cg = other.changegroup(incoming, "incoming") - type = other.local() and "HG10BZ" or "HG10UN" - fname = cleanup = changegroup.writebundle(cg, fname, type) + bundletype = other.local() and "HG10BZ" or "HG10UN" + fname = cleanup = changegroup.writebundle(cg, fname, bundletype) # keep written bundle? if opts["bundle"]: cleanup = None