mercurial/sparse.py
changeset 43117 8ff1ecfadcd1
parent 43106 d783f945a701
child 44060 a61287a95dc3
equal deleted inserted replaced
43116:defabf63e969 43117:8ff1ecfadcd1
   119     if not raw:
   119     if not raw:
   120         return set(), set(), set()
   120         return set(), set(), set()
   121 
   121 
   122     if rev is None:
   122     if rev is None:
   123         raise error.Abort(
   123         raise error.Abort(
   124             _(b'cannot parse sparse patterns from working ' b'directory')
   124             _(b'cannot parse sparse patterns from working directory')
   125         )
   125         )
   126 
   126 
   127     includes, excludes, profiles = parseconfig(repo.ui, raw, b'sparse')
   127     includes, excludes, profiles = parseconfig(repo.ui, raw, b'sparse')
   128     ctx = repo[rev]
   128     ctx = repo[rev]
   129 
   129 
   481             repo.ui.warn(_(b"pending changes to '%s'\n") % f)
   481             repo.ui.warn(_(b"pending changes to '%s'\n") % f)
   482             abort = not force
   482             abort = not force
   483 
   483 
   484     if abort:
   484     if abort:
   485         raise error.Abort(
   485         raise error.Abort(
   486             _(b'could not update sparseness due to pending ' b'changes')
   486             _(b'could not update sparseness due to pending changes')
   487         )
   487         )
   488 
   488 
   489     # Calculate actions
   489     # Calculate actions
   490     dirstate = repo.dirstate
   490     dirstate = repo.dirstate
   491     ctx = repo[b'.']
   491     ctx = repo[b'.']