[PATCH 1 of 2 RFC] hgext: mark all first-party extensions as such

Augie Fackler durin42 at gmail.com
Mon Jul 25 21:55:36 CDT 2011


# HG changeset patch
# User Augie Fackler <durin42 at gmail.com>
# Date 1311622806 18000
# Node ID e59468fa239985828ce199d3ae8cb1768987525c
# Parent  545e00279670423696ed64af8aa9b0c882b44f09
hgext: mark all first-party extensions as such

diff --git a/hgext/acl.py b/hgext/acl.py
--- a/hgext/acl.py
+++ b/hgext/acl.py
@@ -152,6 +152,8 @@
 from mercurial import util, match
 import getpass, urllib
 
+hgver = ['internal']
+
 def _getusers(ui, group):
 
     # First, try to use group definition from section [acl.groups]
diff --git a/hgext/bugzilla.py b/hgext/bugzilla.py
--- a/hgext/bugzilla.py
+++ b/hgext/bugzilla.py
@@ -257,6 +257,8 @@
 from mercurial import cmdutil, mail, templater, util
 import re, time, xmlrpclib
 
+hgver = ['internal']
+
 class bzaccess(object):
     '''Base class for access to Bugzilla.'''
 
@@ -753,4 +755,3 @@
             bz.notify(ids, util.email(ctx.user()))
     except Exception, e:
         raise util.Abort(_('Bugzilla error: %s') % e)
-
diff --git a/hgext/children.py b/hgext/children.py
--- a/hgext/children.py
+++ b/hgext/children.py
@@ -14,6 +14,7 @@
 from mercurial.commands import templateopts
 from mercurial.i18n import _
 
+hgver = ['internal']
 
 def children(ui, repo, file_=None, **opts):
     """show the children of the given or working directory revision
diff --git a/hgext/churn.py b/hgext/churn.py
--- a/hgext/churn.py
+++ b/hgext/churn.py
@@ -13,6 +13,8 @@
 import os
 import time, datetime
 
+hgver = ['internal']
+
 def maketemplater(ui, repo, tmpl):
     tmpl = templater.parsestring(tmpl, quoted=False)
     try:
diff --git a/hgext/color.py b/hgext/color.py
--- a/hgext/color.py
+++ b/hgext/color.py
@@ -113,6 +113,8 @@
 from mercurial import commands, dispatch, extensions, ui as uimod, util
 from mercurial.i18n import _
 
+hgver = ['internal']
+
 # start and stop parameters for effects
 _effects = {'none': 0, 'black': 30, 'red': 31, 'green': 32, 'yellow': 33,
             'blue': 34, 'magenta': 35, 'cyan': 36, 'white': 37, 'bold': 1,
diff --git a/hgext/convert/__init__.py b/hgext/convert/__init__.py
--- a/hgext/convert/__init__.py
+++ b/hgext/convert/__init__.py
@@ -13,6 +13,8 @@
 from mercurial import commands, templatekw
 from mercurial.i18n import _
 
+hgver = ['internal']
+
 # Commands definition was moved elsewhere to ease demandload job.
 
 def convert(ui, src, dest=None, revmapfile=None, **opts):
diff --git a/hgext/eol.py b/hgext/eol.py
--- a/hgext/eol.py
+++ b/hgext/eol.py
@@ -94,6 +94,8 @@
 from mercurial import util, config, extensions, match, error
 import re, os
 
+hgver = ['internal']
+
 # Matches a lone LF, i.e., one that is not part of CRLF.
 singlelf = re.compile('(^|[^\r])\n')
 # Matches a single EOL which can either be a CRLF where repeated CR
diff --git a/hgext/extdiff.py b/hgext/extdiff.py
--- a/hgext/extdiff.py
+++ b/hgext/extdiff.py
@@ -65,6 +65,8 @@
 from mercurial import scmutil, scmutil, util, commands, encoding
 import os, shlex, shutil, tempfile, re
 
+hgver = ['internal']
+
 def snapshot(ui, repo, files, node, tmproot):
     '''snapshot files as of some revision
     if not using snapshot, -I/-X does not work and recursive diff
diff --git a/hgext/fetch.py b/hgext/fetch.py
--- a/hgext/fetch.py
+++ b/hgext/fetch.py
@@ -12,6 +12,8 @@
 from mercurial import commands, cmdutil, hg, util, error
 from mercurial.lock import release
 
+hgver = ['internal']
+
 def fetch(ui, repo, source='default', **opts):
     '''pull changes from a remote repository, merge new changes if needed.
 
diff --git a/hgext/gpg.py b/hgext/gpg.py
--- a/hgext/gpg.py
+++ b/hgext/gpg.py
@@ -12,6 +12,7 @@
 
 cmdtable = {}
 command = cmdutil.command(cmdtable)
+hgver = ['internal']
 
 class gpg(object):
     def __init__(self, path, key=None):
@@ -286,4 +287,3 @@
         return "%s\n" % hgnode.hex(node)
     else:
         raise util.Abort(_("unknown signature version"))
-
diff --git a/hgext/graphlog.py b/hgext/graphlog.py
--- a/hgext/graphlog.py
+++ b/hgext/graphlog.py
@@ -21,6 +21,7 @@
 
 cmdtable = {}
 command = cmdutil.command(cmdtable)
+hgver = ['internal']
 
 ASCIIDATA = 'ASC'
 
diff --git a/hgext/hgcia.py b/hgext/hgcia.py
--- a/hgext/hgcia.py
+++ b/hgext/hgcia.py
@@ -48,6 +48,7 @@
 
 import xmlrpclib
 from xml.sax import saxutils
+hgver = ['internal']
 
 socket_timeout = 30 # seconds
 try:
diff --git a/hgext/hgk.py b/hgext/hgk.py
--- a/hgext/hgk.py
+++ b/hgext/hgk.py
@@ -39,6 +39,8 @@
 from mercurial.node import nullid, nullrev, short
 from mercurial.i18n import _
 
+hgver = ['internal']
+
 def difftree(ui, repo, node1=None, node2=None, *files, **opts):
     """diff trees from two commits"""
     def __difftree(repo, node1, node2, files=[]):
diff --git a/hgext/highlight/__init__.py b/hgext/highlight/__init__.py
--- a/hgext/highlight/__init__.py
+++ b/hgext/highlight/__init__.py
@@ -24,6 +24,7 @@
 import highlight
 from mercurial.hgweb import webcommands, webutil, common
 from mercurial import extensions, encoding
+hgver = ['internal']
 
 def filerevision_highlight(orig, web, tmpl, fctx):
     mt = ''.join(tmpl('mimetype', encoding=encoding.encoding))
diff --git a/hgext/inotify/__init__.py b/hgext/inotify/__init__.py
--- a/hgext/inotify/__init__.py
+++ b/hgext/inotify/__init__.py
@@ -14,6 +14,8 @@
 import server
 from client import client, QueryFailed
 
+hgver = ['internal']
+
 def serve(ui, repo, **opts):
     '''start an inotify server for this repository'''
     server.start(ui, repo.dirstate, repo.root, opts)
diff --git a/hgext/interhg.py b/hgext/interhg.py
--- a/hgext/interhg.py
+++ b/hgext/interhg.py
@@ -28,6 +28,8 @@
 from mercurial import templatefilters, extensions
 from mercurial.i18n import _
 
+hgver = ['internal']
+
 interhg_table = []
 
 def uisetup(ui):
diff --git a/hgext/keyword.py b/hgext/keyword.py
--- a/hgext/keyword.py
+++ b/hgext/keyword.py
@@ -92,6 +92,7 @@
 
 cmdtable = {}
 command = cmdutil.command(cmdtable)
+hgver = ['internal']
 
 # hg commands that do not act on keywords
 nokwcommands = ('add addremove annotate bundle export grep incoming init log'
diff --git a/hgext/mq.py b/hgext/mq.py
--- a/hgext/mq.py
+++ b/hgext/mq.py
@@ -56,6 +56,7 @@
 
 cmdtable = {}
 command = cmdutil.command(cmdtable)
+hgver = ['internal']
 
 # Patch names looks like unix-file names.
 # They must be joinable with queue directory and result in the patch path.
diff --git a/hgext/notify.py b/hgext/notify.py
--- a/hgext/notify.py
+++ b/hgext/notify.py
@@ -76,6 +76,8 @@
 from mercurial import patch, cmdutil, templater, util, mail
 import email.Parser, email.Errors, fnmatch, socket, time
 
+hgver = ['internal']
+
 # template for single changeset can include email headers.
 single_template = '''
 Subject: changeset in {webroot}: {desc|firstline|strip}
diff --git a/hgext/pager.py b/hgext/pager.py
--- a/hgext/pager.py
+++ b/hgext/pager.py
@@ -57,6 +57,8 @@
 from mercurial import commands, dispatch, util, extensions
 from mercurial.i18n import _
 
+hgver = ['internal']
+
 def _runpager(p):
     if not hasattr(os, 'fork'):
         sys.stdout = util.popen(p, 'wb')
diff --git a/hgext/patchbomb.py b/hgext/patchbomb.py
--- a/hgext/patchbomb.py
+++ b/hgext/patchbomb.py
@@ -55,6 +55,7 @@
 
 cmdtable = {}
 command = cmdutil.command(cmdtable)
+hgver = ['internal']
 
 def prompt(ui, prompt, default=None, rest=':'):
     if not ui.interactive() and default is None:
diff --git a/hgext/progress.py b/hgext/progress.py
--- a/hgext/progress.py
+++ b/hgext/progress.py
@@ -51,6 +51,7 @@
 
 from mercurial import util
 from mercurial.i18n import _
+hgver = ['internal']
 
 def spacejoin(*args):
     return ' '.join(s for s in args if s)
diff --git a/hgext/purge.py b/hgext/purge.py
--- a/hgext/purge.py
+++ b/hgext/purge.py
@@ -31,6 +31,7 @@
 
 cmdtable = {}
 command = cmdutil.command(cmdtable)
+hgver = ['internal']
 
 @command('purge|clean',
     [('a', 'abort-on-err', None, _('abort if an error occurs')),
diff --git a/hgext/rebase.py b/hgext/rebase.py
--- a/hgext/rebase.py
+++ b/hgext/rebase.py
@@ -26,6 +26,7 @@
 
 cmdtable = {}
 command = cmdutil.command(cmdtable)
+hgver = ['internal']
 
 @command('rebase',
     [('s', 'source', '',
diff --git a/hgext/record.py b/hgext/record.py
--- a/hgext/record.py
+++ b/hgext/record.py
@@ -14,6 +14,7 @@
 
 cmdtable = {}
 command = cmdutil.command(cmdtable)
+hgver = ['internal']
 
 lines_re = re.compile(r'@@ -(\d+),(\d+) \+(\d+),(\d+) @@\s*(.*)')
 
diff --git a/hgext/relink.py b/hgext/relink.py
--- a/hgext/relink.py
+++ b/hgext/relink.py
@@ -11,6 +11,8 @@
 from mercurial.i18n import _
 import os, stat
 
+hgver = ['internal']
+
 def relink(ui, repo, origin=None, **opts):
     """recreate hardlinks between two repositories
 
diff --git a/hgext/schemes.py b/hgext/schemes.py
--- a/hgext/schemes.py
+++ b/hgext/schemes.py
@@ -44,6 +44,8 @@
 from mercurial import extensions, hg, templater, util
 from mercurial.i18n import _
 
+hgver = ['internal']
+
 
 class ShortRepository(object):
     def __init__(self, url, scheme, templater):
diff --git a/hgext/share.py b/hgext/share.py
--- a/hgext/share.py
+++ b/hgext/share.py
@@ -8,6 +8,8 @@
 from mercurial.i18n import _
 from mercurial import hg, commands
 
+hgver = ['internal']
+
 def share(ui, source, dest=None, noupdate=False):
     """create a new shared repository
 
diff --git a/hgext/transplant.py b/hgext/transplant.py
--- a/hgext/transplant.py
+++ b/hgext/transplant.py
@@ -22,6 +22,7 @@
 
 cmdtable = {}
 command = cmdutil.command(cmdtable)
+hgver = ['internal']
 
 class transplantentry(object):
     def __init__(self, lnode, rnode):
diff --git a/hgext/win32mbcs.py b/hgext/win32mbcs.py
--- a/hgext/win32mbcs.py
+++ b/hgext/win32mbcs.py
@@ -48,6 +48,7 @@
 import os, sys
 from mercurial.i18n import _
 from mercurial import util, encoding
+hgver = ['internal']
 
 _encoding = None                                # see extsetup
 
@@ -157,4 +158,3 @@
         if '--debug' in sys.argv:
             ui.write("[win32mbcs] activated with encoding: %s\n"
                      % _encoding)
-
diff --git a/hgext/win32text.py b/hgext/win32text.py
--- a/hgext/win32text.py
+++ b/hgext/win32text.py
@@ -46,6 +46,8 @@
 from mercurial import util
 import re
 
+hgver = ['internal']
+
 # regexp for single LF without CR preceding.
 re_single_lf = re.compile('(^|[^\r])\n', re.MULTILINE)
 
diff --git a/hgext/zeroconf/__init__.py b/hgext/zeroconf/__init__.py
--- a/hgext/zeroconf/__init__.py
+++ b/hgext/zeroconf/__init__.py
@@ -32,6 +32,8 @@
 from mercurial.hgweb import hgweb_mod
 from mercurial.hgweb import hgwebdir_mod
 
+hgver = ['internal']
+
 # publish
 
 server = None


More information about the Mercurial-devel mailing list