# HG changeset patch # User Martin Geisler # Date 2009-04-25 23:24:49 # Node ID 0a95427033008df9740767de407949e718000466 # Parent 8b2cd04a6e9779af164f9c83a612b7fa5d3aef88 turn some comments back into module docstrings diff --git a/mercurial/bundlerepo.py b/mercurial/bundlerepo.py --- a/mercurial/bundlerepo.py +++ b/mercurial/bundlerepo.py @@ -1,13 +1,16 @@ # 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 # # This software may be used and distributed according to the terms of the # GNU General Public License version 2, incorporated herein by reference. +"""Repository class for viewing uncompressed bundles. + +This provides a read-only repository interface to bundles as if they +were part of the actual repository. +""" + from node import nullid from i18n import _ import changegroup, util, os, struct, bz2, zlib, tempfile, shutil, mdiff diff --git a/mercurial/error.py b/mercurial/error.py --- a/mercurial/error.py +++ b/mercurial/error.py @@ -1,12 +1,16 @@ # error.py - Mercurial exceptions # -# This allows us to catch exceptions at higher levels without forcing imports -# # Copyright 2005-2008 Matt Mackall # # This software may be used and distributed according to the terms of the # GNU General Public License version 2, incorporated herein by reference. +"""Mercurial exceptions. + +This allows us to catch exceptions at higher levels without forcing +imports. +""" + # Do not import anything here, please class RevlogError(Exception): diff --git a/mercurial/revlog.py b/mercurial/revlog.py --- a/mercurial/revlog.py +++ b/mercurial/revlog.py @@ -1,13 +1,16 @@ # 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 # # This software may be used and distributed according to the terms of the # GNU General Public License version 2, incorporated herein by reference. +"""Storage back-end for Mercurial. + +This provides efficient delta storage with O(1) retrieve and append +and O(changes) merge between branches. +""" + # import stuff from node for others to import from revlog from node import bin, hex, nullid, nullrev, short #@UnusedImport from i18n import _ diff --git a/mercurial/util.py b/mercurial/util.py --- a/mercurial/util.py +++ b/mercurial/util.py @@ -6,9 +6,12 @@ # # 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. + +"""Mercurial utility functions and platform specfic implementations. + +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 diff --git a/mercurial/win32.py b/mercurial/win32.py --- a/mercurial/win32.py +++ b/mercurial/win32.py @@ -4,11 +4,14 @@ # # 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. + +"""Utility functions that use win32 API. + +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