[PATCH 1 of 1] convert: implement two hooks in builtin cvsps

Frank Kingswood frank at kingswood-consulting.co.uk
Tue Dec 15 07:59:59 CST 2009


# HG changeset patch
# User Frank Kingswood <frank at kingswood-consulting.co.uk>
# Date 1260873443 0
# Node ID 3e7fc9087cad97ad349bf50c796f4c9f25a729ac
# Parent  25919ebaba017e4395709a8c6d96f2b7370f6d02
convert: implement two hooks in builtin cvsps

diff -r 25919ebaba01 -r 3e7fc9087cad hgext/convert/cvsps.py
--- a/hgext/convert/cvsps.py	Mon Dec 14 23:14:50 2009 +0100
+++ b/hgext/convert/cvsps.py	Tue Dec 15 10:37:23 2009 +0000
@@ -11,6 +11,7 @@
 import cPickle as pickle
 from mercurial import util
 from mercurial.i18n import _
+from mercurial import hook
 
 class logentry(object):
     '''Class logentry has the following attributes:
@@ -444,6 +445,8 @@
 
     ui.status(_('%d log entries\n') % len(log))
 
+    hook.hook(ui, None, "cvslog", True, log=log)
+
     return log
 
 
@@ -730,6 +733,8 @@
 
     ui.status(_('%d changeset entries\n') % len(changesets))
 
+    hook.hook(ui, None, "cvschangesets", True, changesets=changesets)
+
     return changesets
 
 


More information about the Mercurial-devel mailing list