put license and copyright info into comment blocks
authorMartin Geisler <mg@lazybytes.net>
Sun, 26 Apr 2009 01:13:08 +0200
changeset 8226 8b2cd04a6e9779af164f9c83a612b7fa5d3aef88
parent 8225 46293a0c7e9ff247fa033b7fb37b34b148ac1ea6
child 8227 0a95427033008df9740767de407949e718000466
push id1
push usergszorc@mozilla.com
push dateWed, 18 Mar 2015 16:34:57 +0000
put license and copyright info into comment blocks
mercurial/bundlerepo.py
mercurial/changegroup.py
mercurial/dirstate.py
mercurial/encoding.py
mercurial/error.py
mercurial/i18n.py
mercurial/node.py
mercurial/posix.py
mercurial/revlog.py
mercurial/util.py
mercurial/win32.py
mercurial/windows.py
--- a/mercurial/bundlerepo.py
+++ b/mercurial/bundlerepo.py
@@ -1,19 +1,17 @@
-"""
-bundlerepo.py - repository class for viewing uncompressed bundles
-
-This provides a read-only repository interface to bundles as if
-they were part of the actual repository.
-
-Copyright 2006, 2007 Benoit Boissinot <bboissin@gmail.com>
-
-This software may be used and distributed according to the terms of the
-GNU General Public License version 2, incorporated herein by reference.
-"""
+# bundlerepo.py - repository class for viewing uncompressed bundles
+#
+# This provides a read-only repository interface to bundles as if
+# they were part of the actual repository.
+#
+# Copyright 2006, 2007 Benoit Boissinot <bboissin@gmail.com>
+#
+# This software may be used and distributed according to the terms of the
+# GNU General Public License version 2, incorporated herein by reference.
 
 from node import nullid
 from i18n import _
 import changegroup, util, os, struct, bz2, zlib, tempfile, shutil, mdiff
 import localrepo, changelog, manifest, filelog, revlog, error
 
 class bundlerevlog(revlog.revlog):
     def __init__(self, opener, indexfile, bundlefile,
--- a/mercurial/changegroup.py
+++ b/mercurial/changegroup.py
@@ -1,16 +1,14 @@
-"""
-changegroup.py - Mercurial changegroup manipulation functions
-
- Copyright 2006 Matt Mackall <mpm@selenic.com>
-
-This software may be used and distributed according to the terms of the
-GNU General Public License version 2, incorporated herein by reference.
-"""
+# changegroup.py - Mercurial changegroup manipulation functions
+#
+#  Copyright 2006 Matt Mackall <mpm@selenic.com>
+#
+# This software may be used and distributed according to the terms of the
+# GNU General Public License version 2, incorporated herein by reference.
 
 from i18n import _
 import struct, os, bz2, zlib, util, tempfile
 
 def getchunk(source):
     """get a chunk from a changegroup"""
     d = source.read(4)
     if not d:
--- a/mercurial/dirstate.py
+++ b/mercurial/dirstate.py
@@ -1,16 +1,14 @@
-"""
-dirstate.py - working directory tracking for mercurial
-
-Copyright 2005-2007 Matt Mackall <mpm@selenic.com>
-
-This software may be used and distributed according to the terms of the
-GNU General Public License version 2, incorporated herein by reference.
-"""
+# dirstate.py - working directory tracking for mercurial
+#
+# Copyright 2005-2007 Matt Mackall <mpm@selenic.com>
+#
+# This software may be used and distributed according to the terms of the
+# GNU General Public License version 2, incorporated herein by reference.
 
 from node import nullid
 from i18n import _
 import struct, os, stat, util, errno, ignore
 import cStringIO, osutil, sys, parsers
 
 _unknown = ('?', 0, 0, 0)
 _format = ">cllll"
--- a/mercurial/encoding.py
+++ b/mercurial/encoding.py
@@ -1,16 +1,14 @@
-"""
-encoding.py - character transcoding support for Mercurial
-
- Copyright 2005-2009 Matt Mackall <mpm@selenic.com> and others
-
-This software may be used and distributed according to the terms of the
-GNU General Public License version 2, incorporated herein by reference.
-"""
+# encoding.py - character transcoding support for Mercurial
+#
+#  Copyright 2005-2009 Matt Mackall <mpm@selenic.com> and others
+#
+# This software may be used and distributed according to the terms of the
+# GNU General Public License version 2, incorporated herein by reference.
 
 import sys, unicodedata, locale, os, error
 
 _encodingfixup = {'646': 'ascii', 'ANSI_X3.4-1968': 'ascii'}
 
 try:
     encoding = os.environ.get("HGENCODING")
     if sys.platform == 'darwin' and not encoding:
--- a/mercurial/error.py
+++ b/mercurial/error.py
@@ -1,18 +1,16 @@
-"""
-error.py - Mercurial exceptions
-
-This allows us to catch exceptions at higher levels without forcing imports
-
-Copyright 2005-2008 Matt Mackall <mpm@selenic.com>
-
-This software may be used and distributed according to the terms of the
-GNU General Public License version 2, incorporated herein by reference.
-"""
+# error.py - Mercurial exceptions
+#
+# This allows us to catch exceptions at higher levels without forcing imports
+#
+# Copyright 2005-2008 Matt Mackall <mpm@selenic.com>
+#
+# This software may be used and distributed according to the terms of the
+# GNU General Public License version 2, incorporated herein by reference.
 
 # Do not import anything here, please
 
 class RevlogError(Exception):
     pass
 
 class LookupError(RevlogError, KeyError):
     def __init__(self, name, index, message):
--- a/mercurial/i18n.py
+++ b/mercurial/i18n.py
@@ -1,16 +1,14 @@
-"""
-i18n.py - internationalization support for mercurial
-
-Copyright 2005, 2006 Matt Mackall <mpm@selenic.com>
-
-This software may be used and distributed according to the terms of the
-GNU General Public License version 2, incorporated herein by reference.
-"""
+# i18n.py - internationalization support for mercurial
+#
+# Copyright 2005, 2006 Matt Mackall <mpm@selenic.com>
+#
+# This software may be used and distributed according to the terms of the
+# GNU General Public License version 2, incorporated herein by reference.
 
 import gettext, sys, os, encoding
 
 # modelled after templater.templatepath:
 if hasattr(sys, 'frozen'):
     module = sys.executable
 else:
     module = __file__
--- a/mercurial/node.py
+++ b/mercurial/node.py
@@ -1,16 +1,14 @@
-"""
-node.py - basic nodeid manipulation for mercurial
-
-Copyright 2005, 2006 Matt Mackall <mpm@selenic.com>
-
-This software may be used and distributed according to the terms of the
-GNU General Public License version 2, incorporated herein by reference.
-"""
+# node.py - basic nodeid manipulation for mercurial
+#
+# Copyright 2005, 2006 Matt Mackall <mpm@selenic.com>
+#
+# This software may be used and distributed according to the terms of the
+# GNU General Public License version 2, incorporated herein by reference.
 
 import binascii
 
 nullrev = -1
 nullid = "\0" * 20
 
 # This ugly style has a noticeable effect in manifest parsing
 hex = binascii.hexlify
--- a/mercurial/posix.py
+++ b/mercurial/posix.py
@@ -1,16 +1,14 @@
-"""
-posix.py - Posix utility function implementations for Mercurial
-
- Copyright 2005-2009 Matt Mackall <mpm@selenic.com> and others
-
-This software may be used and distributed according to the terms of the
-GNU General Public License version 2, incorporated herein by reference.
-"""
+# posix.py - Posix utility function implementations for Mercurial
+#
+#  Copyright 2005-2009 Matt Mackall <mpm@selenic.com> and others
+#
+# This software may be used and distributed according to the terms of the
+# GNU General Public License version 2, incorporated herein by reference.
 
 from i18n import _
 import os, sys, osutil, errno, stat, getpass, pwd, grp
 
 posixfile = file
 nulldev = '/dev/null'
 normpath = os.path.normpath
 samestat = os.path.samestat
--- a/mercurial/revlog.py
+++ b/mercurial/revlog.py
@@ -1,19 +1,17 @@
-"""
-revlog.py - storage back-end for mercurial
-
-This provides efficient delta storage with O(1) retrieve and append
-and O(changes) merge between branches
-
-Copyright 2005-2007 Matt Mackall <mpm@selenic.com>
-
-This software may be used and distributed according to the terms of the
-GNU General Public License version 2, incorporated herein by reference.
-"""
+# revlog.py - storage back-end for mercurial
+#
+# This provides efficient delta storage with O(1) retrieve and append
+# and O(changes) merge between branches
+#
+# Copyright 2005-2007 Matt Mackall <mpm@selenic.com>
+#
+# This software may be used and distributed according to the terms of the
+# GNU General Public License version 2, incorporated herein by reference.
 
 # import stuff from node for others to import from revlog
 from node import bin, hex, nullid, nullrev, short #@UnusedImport
 from i18n import _
 import changegroup, errno, ancestor, mdiff, parsers
 import struct, util, zlib, error
 
 _pack = struct.pack
--- a/mercurial/util.py
+++ b/mercurial/util.py
@@ -1,21 +1,19 @@
-"""
-util.py - Mercurial utility functions and platform specfic implementations
-
- Copyright 2005 K. Thananchayan <thananck@yahoo.com>
- Copyright 2005-2007 Matt Mackall <mpm@selenic.com>
- Copyright 2006 Vadim Gelfer <vadim.gelfer@gmail.com>
-
-This software may be used and distributed according to the terms of the
-GNU General Public License version 2, incorporated herein by reference.
-
-This contains helper routines that are independent of the SCM core and hide
-platform-specific details from the core.
-"""
+# util.py - Mercurial utility functions and platform specfic implementations
+#
+#  Copyright 2005 K. Thananchayan <thananck@yahoo.com>
+#  Copyright 2005-2007 Matt Mackall <mpm@selenic.com>
+#  Copyright 2006 Vadim Gelfer <vadim.gelfer@gmail.com>
+#
+# This software may be used and distributed according to the terms of the
+# GNU General Public License version 2, incorporated herein by reference.
+#
+# This contains helper routines that are independent of the SCM core and hide
+# platform-specific details from the core.
 
 from i18n import _
 import cStringIO, errno, re, shutil, sys, tempfile, traceback, error
 import os, stat, threading, time, calendar, glob, osutil
 import imp
 
 # Python compatibility
 
--- a/mercurial/win32.py
+++ b/mercurial/win32.py
@@ -1,21 +1,19 @@
-'''
-win32.py - utility functions that use win32 API
-
-Copyright 2005-2009 Matt Mackall <mpm@selenic.com> and others
-
-This software may be used and distributed according to the terms of the
-GNU General Public License version 2, incorporated herein by reference.
-
-Mark Hammond's win32all package allows better functionality on
-Windows.  this module overrides definitions in util.py.  if not
-available, import of this module will fail, and generic code will be
-used.
-'''
+# win32.py - utility functions that use win32 API
+#
+# Copyright 2005-2009 Matt Mackall <mpm@selenic.com> and others
+#
+# This software may be used and distributed according to the terms of the
+# GNU General Public License version 2, incorporated herein by reference.
+#
+# Mark Hammond's win32all package allows better functionality on
+# Windows.  this module overrides definitions in util.py.  if not
+# available, import of this module will fail, and generic code will be
+# used.
 
 import win32api
 
 import errno, os, sys, pywintypes, win32con, win32file, win32process
 import cStringIO, winerror
 import osutil, encoding
 import util
 from win32com.shell import shell,shellcon
--- a/mercurial/windows.py
+++ b/mercurial/windows.py
@@ -1,16 +1,14 @@
-"""
-windows.py - Windows utility function implementations for Mercurial
-
- Copyright 2005-2009 Matt Mackall <mpm@selenic.com> and others
-
-This software may be used and distributed according to the terms of the
-GNU General Public License version 2, incorporated herein by reference.
-"""
+# windows.py - Windows utility function implementations for Mercurial
+#
+#  Copyright 2005-2009 Matt Mackall <mpm@selenic.com> and others
+#
+# This software may be used and distributed according to the terms of the
+# GNU General Public License version 2, incorporated herein by reference.
 
 from i18n import _
 import errno, msvcrt, os, osutil, re, sys, error
 nulldev = 'NUL:'
 
 umask = 002
 
 class winstdout: