hgext/largefiles/overrides.py
changeset 23139 e53f6b72a0e4
parent 23041 a36625ef1f35
child 23144 55325a327754
equal deleted inserted replaced
23136:6eab50a34fed 23139:e53f6b72a0e4
    61     scmutil.matchandpats = f
    61     scmutil.matchandpats = f
    62     return oldmatchandpats
    62     return oldmatchandpats
    63 
    63 
    64 def restorematchandpatsfn():
    64 def restorematchandpatsfn():
    65     '''restores scmutil.matchandpats to what it was before
    65     '''restores scmutil.matchandpats to what it was before
    66     installnormalfilesmatchandpatsfn was called.  no-op if scmutil.matchandpats
    66     installmatchandpatsfn was called. No-op if scmutil.matchandpats
    67     is its original function.
    67     is its original function.
    68 
    68 
    69     Note that n calls to installnormalfilesmatchandpatsfn will require n calls
    69     Note that n calls to installmatchandpatsfn will require n calls
    70     to restore matchfn to reverse'''
    70     to restore matchfn to reverse'''
    71     scmutil.matchandpats = getattr(scmutil.matchandpats, 'oldmatchandpats',
    71     scmutil.matchandpats = getattr(scmutil.matchandpats, 'oldmatchandpats',
    72             scmutil.matchandpats)
    72             scmutil.matchandpats)
    73 
    73 
    74 def addlargefiles(ui, repo, *pats, **opts):
    74 def addlargefiles(ui, repo, *pats, **opts):