# HG changeset patch # User Edouard Gomez # Date 1231033008 -3600 # Node ID 77fec2d270ae133f0d85c6bfcf39a9b76726d159 # Parent 3b2383c9003489b177a45b3562f673a8d9ababe8 convert/gnuarch: parse continuation-of revisions in gnuarch source In GNU Arch, continuation-of was often used for: - tagging revisions - continue working on a project in a new archive, because arch was scaling poorly in revision numbers (cat-logs were slow to be parsed and scanned through) - very similar to the previous point, fork his own branch of a project. Parsing this header information will allow to 'follow' new history because it often hints at older/forked/personal revision trees. This patch however just implements the parsing of the continuation-of header. A followup patch will implement the proper use of this new information. diff -r 3b2383c90034 -r 77fec2d270ae hgext/convert/gnuarch.py --- a/hgext/convert/gnuarch.py Sun Jan 04 02:36:48 2009 +0100 +++ b/hgext/convert/gnuarch.py Sun Jan 04 02:36:48 2009 +0100 @@ -14,6 +14,7 @@ self.summary = '' self.date = None self.author = '' + self.continuationof = None self.add_files = [] self.mod_files = [] self.del_files = [] @@ -239,6 +240,8 @@ '%Y-%m-%d %H:%M:%S')) self.changes[rev].author = catlog['Creator'] self.changes[rev].summary = catlog['Summary'] + if catlog.has_key('Continuation-of'): + self.changes[rev].continuationof = catlog['Continuation-of'] except Exception, err: raise util.Abort(_('could not parse cat-log of %s') % rev)