1. Wez Furlong
  2. SvnToHg

Commits

John Peacock  committed 3109863

Add support for prefixlog (to edit the Subversion log on the fly).

  • Participants
  • Parent commits 8377b92
  • Branches default

Comments (0)

Files changed (1)

File svn2hg/SvnImporter.py

View file
  • Ignore whitespace
           rdata['max'] = maxrev
         if minrev:
           rdata['min'] = minrev
-        for n in ['tagname', 'bookname', 'codeline']:
+        for n in ['tagname', 'bookname', 'codeline', 'prefixlog']:
           tn = rule.get(n)
           if tn:
             rdata[n] = m.expand(tn)
       self.tags_changed = True
     else:
       p2 = plist.pop(0)
-      log = srev.logmsg
+      if 'prefixlog' in rule:
+        log = rule['prefixlog'] + "\n" + srev.logmsg
+      else:
+        log = srev.logmsg
       self.ui.debug("%d files\n" % len(files))
       while plist:
         p1 = p2