hgext/obsolete.py
changeset 459 3477326461e3
parent 458 5d47d854716e
child 461 cd43fd9f923f
--- a/hgext/obsolete.py	Wed Aug 15 16:34:25 2012 +0200
+++ b/hgext/obsolete.py	Wed Aug 15 16:54:48 2012 +0200
@@ -63,7 +63,7 @@
 from mercurial import templatekw
 from mercurial.node import bin, short, nullid
 
-# This extension hold the following code
+# This extension contains the following code
 #
 # - Extension Helper code
 # - Obsolescence cache
@@ -596,7 +596,7 @@
     Current user and date are used except if specified otherwise in the
     metadata attribute.
 
-    /!\ assume the repo have been locked byt the user /!\
+    /!\ assume the repo have been locked by the user /!\
     """
     # prepare metadata
     if metadata is None:
@@ -855,16 +855,12 @@
     priorunstables = len(repo.revs('unstable()'))
     priorlatecomers = len(repo.revs('latecomer()'))
     priorconflictings = len(repo.revs('conflicting()'))
-    #print orig, priorunstables
-    #print len(repo.revs('secret() - obsolete()'))
     try:
         return orig(ui, repo, *args, **kwargs)
     finally:
         newunstables = len(repo.revs('unstable()')) - priorunstables
         newlatecomers = len(repo.revs('latecomer()')) - priorlatecomers
         newconflictings = len(repo.revs('conflicting()')) - priorconflictings
-        #print orig, newunstables
-        #print len(repo.revs('secret() - obsolete()'))
         if newunstables > 0:
             ui.warn(_('%i new unstables changesets\n') % newunstables)
         if newlatecomers > 0:
@@ -1043,7 +1039,7 @@
 
 @eh.reposetup
 def _checkoldobsolete(ui, repo):
-    """Detect that a repo still carry some old obsolete format
+    """Detect that a repo still contains some old obsolete format
     """
     if not repo.local():
         return