hgext/obsolete.py
changeset 435 97d82fbd2c24
parent 434 9863e196cc65
child 436 1e042eeb2d1a
equal deleted inserted replaced
434:9863e196cc65 435:97d82fbd2c24
    37 
    37 
    38 Note that rebased changesets are now marked obsolete instead of being stripped.
    38 Note that rebased changesets are now marked obsolete instead of being stripped.
    39 
    39 
    40 """
    40 """
    41 
    41 
    42 import os, sys
    42 import sys
    43 try:
       
    44     from cStringIO import StringIO
       
    45 except ImportError:
       
    46     from StringIO import StringIO
       
    47 
    43 
    48 from mercurial.i18n import _
    44 from mercurial.i18n import _
    49 
    45 
    50 import json
    46 import json
    51 
    47 
    52 import struct
    48 import struct
    53 from mercurial import util, base85
       
    54 
    49 
    55 _pack = struct.pack
    50 _pack = struct.pack
    56 _unpack = struct.unpack
    51 _unpack = struct.unpack
    57 
    52 
    58 from mercurial import util
    53 from mercurial import util
    65 
    60 
    66 from mercurial import context
    61 from mercurial import context
    67 from mercurial import revset
    62 from mercurial import revset
    68 from mercurial import scmutil
    63 from mercurial import scmutil
    69 from mercurial import extensions
    64 from mercurial import extensions
    70 from mercurial import pushkey
       
    71 from mercurial import discovery
    65 from mercurial import discovery
    72 from mercurial import error
    66 from mercurial import error
    73 from mercurial import commands
    67 from mercurial import commands
    74 from mercurial import changelog
       
    75 from mercurial import phases
    68 from mercurial import phases
    76 from mercurial.node import hex, bin, short, nullid
    69 from mercurial.node import bin, short, nullid
    77 from mercurial.lock import release
       
    78 from mercurial import localrepo
       
    79 from mercurial import cmdutil
    70 from mercurial import cmdutil
    80 from mercurial import templatekw
    71 from mercurial import templatekw
    81 from mercurial.localrepo import storecache
       
    82 
    72 
    83 # This extension hold the following code
    73 # This extension hold the following code
    84 #
    74 #
    85 # - Extension Helper code
    75 # - Extension Helper code
    86 # - ...
    76 # - ...