Mercurial > hg
diff hgext/convert/monotone.py @ 6376:b40e90341ae2
convert: record deleted files in monotone source
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Mon, 24 Mar 2008 17:02:08 +0100 |
parents | 950e72fc7cf3 |
children | aa3f61884a48 |
line wrap: on
line diff
--- a/hgext/convert/monotone.py Mon Mar 24 16:20:15 2008 +0100 +++ b/hgext/convert/monotone.py Mon Mar 24 17:02:08 2008 +0100 @@ -26,6 +26,7 @@ self.add_file_re = re.compile(space + "add_file" + name + "content" + revision) self.patch_re = re.compile(space + "patch" + name + "from" + revision + "to" + revision) self.rename_re = re.compile(space + "rename" + name + "to" + name) + self.delete_re = re.compile(space + "delete" + name) self.tag_re = re.compile(space + "tag" + name + "revision" + revision) self.cert_re = re.compile(lines + space + "name" + name + "value" + value) @@ -137,6 +138,9 @@ # Delete/rename is handled later when the convert engine # discovers an IOError exception from getfile, # but only if we add the "from" file to the list of changes. + m = self.delete_re.match(e) + if m: + files[m.group(1)] = rev m = self.rename_re.match(e) if m: toname = m.group(2)