##// END OF EJS Templates
convert: improve docstrings, comments.
Greg Ward -
r8444:057e96fe default
parent child Browse files
Show More
@@ -75,7 +75,8 b' class converter_source(object):'
75
75
76 def getfile(self, name, rev):
76 def getfile(self, name, rev):
77 """Return file contents as a string. rev is the identifier returned
77 """Return file contents as a string. rev is the identifier returned
78 by a previous call to getchanges().
78 by a previous call to getchanges(). Raise IOError to indicate that
79 name was deleted in rev.
79 """
80 """
80 raise NotImplementedError()
81 raise NotImplementedError()
81
82
@@ -89,7 +90,7 b' class converter_source(object):'
89 """Returns a tuple of (files, copies).
90 """Returns a tuple of (files, copies).
90
91
91 files is a sorted list of (filename, id) tuples for all files
92 files is a sorted list of (filename, id) tuples for all files
92 changed between version and it's first parent returned by
93 changed between version and its first parent returned by
93 getcommit(). id is the source revision id of the file.
94 getcommit(). id is the source revision id of the file.
94
95
95 copies is a dictionary of dest: source
96 copies is a dictionary of dest: source
@@ -79,6 +79,9 b' class converter(object):'
79 self.authors = {}
79 self.authors = {}
80 self.authorfile = None
80 self.authorfile = None
81
81
82 # Record converted revisions persistently: maps source revision
83 # ID to target revision ID (both strings). (This is how
84 # incremental conversions work.)
82 self.map = mapfile(ui, revmapfile)
85 self.map = mapfile(ui, revmapfile)
83
86
84 # Read first the dst author map if any
87 # Read first the dst author map if any
General Comments 0
You need to be logged in to leave comments. Login now