hgext/convert/convcmd.py
changeset 21077 78b15ad2f968
parent 21076 5236c7a72a2d
child 21634 23b24d6a70c8
--- a/hgext/convert/convcmd.py	Wed Apr 16 01:09:49 2014 +0200
+++ b/hgext/convert/convcmd.py	Wed Apr 16 01:10:08 2014 +0200
@@ -120,42 +120,6 @@
 
         self.splicemap = self.parsesplicemap(opts.get('splicemap'))
         self.branchmap = mapfile(ui, opts.get('branchmap'))
-        self.closemap = self.parseclosemap(opts.get('closemap'))
-
-    def parseclosemap(self, path):
-        """ check and validate the closemap format and
-            return a list of revs to close.
-            Format checking has two parts.
-            1. generic format which is same across all source types
-            2. specific format checking which may be different for
-               different source type.  This logic is implemented in
-               checkrevformat function in source files like
-               hg.py, subversion.py etc.
-        """
-
-        if not path:
-            return []
-        m = []
-        try:
-            fp = open(path, 'r')
-            for i, line in enumerate(fp):
-                line = line.splitlines()[0].rstrip()
-                if not line:
-                    # Ignore blank lines
-                    continue
-                # split line
-                lex = shlex.shlex(line, posix=True)
-                lex.whitespace_split = True
-                lex.whitespace += ','
-                line = list(lex)
-                for part in line:
-                    self.source.checkrevformat(part, 'closemap')
-                m.extend(line)
-        # if file does not exist or error reading, exit
-        except IOError:
-            raise util.Abort(_('closemap file not found or error reading %s:')
-                               % path)
-        return m
 
     def parsesplicemap(self, path):
         """ check and validate the splicemap format and
@@ -444,9 +408,6 @@
         except KeyError:
             parents = [b[0] for b in pbranches]
         source = progresssource(self.ui, self.source, len(files))
-        if self.closemap and rev in self.closemap:
-            commit.extra['close'] = 1
-
         newnode = self.dest.putcommit(files, copies, parents, commit,
                                       source, self.map)
         source.close()