diff mercurial/archival.py @ 2856:18cf5349a361

Fix some bugs introduced during the manifest refactoring
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Sat, 12 Aug 2006 08:53:23 -0300
parents 046a8b03ea59
children 1d2fdea875bc
line wrap: on
line diff
--- a/mercurial/archival.py
+++ b/mercurial/archival.py
@@ -163,11 +163,12 @@ def archive(repo, dest, node, kind, deco
     change = repo.changelog.read(node)
     mn = change[0]
     archiver = archivers[kind](dest, prefix, mtime or change[2][0])
-    mf = repo.manifest.read(mn).items()
-    mf.sort()
+    m = repo.manifest.read(mn)
+    items = m.items()
+    items.sort()
     write('.hg_archival.txt', 0644,
           'repo: %s\nnode: %s\n' % (hex(repo.changelog.node(0)), hex(node)))
-    for filename, filenode in mf:
-        write(filename, mf.execf(filename) and 0755 or 0644,
+    for filename, filenode in items:
+        write(filename, m.execf(filename) and 0755 or 0644,
               repo.file(filename).read(filenode))
     archiver.done()