hgext/absorb.py
changeset 39786 d50125dec2c1
parent 39453 ab452995eaff
child 40150 1be1689d9ce9
equal deleted inserted replaced
39785:979e9f124caa 39786:d50125dec2c1
   970     If in doubt, run :hg:`absorb -pn` to preview what changesets will
   970     If in doubt, run :hg:`absorb -pn` to preview what changesets will
   971     be amended by what changed lines, without actually changing anything.
   971     be amended by what changed lines, without actually changing anything.
   972 
   972 
   973     Returns 0 on success, 1 if all chunks were ignored and nothing amended.
   973     Returns 0 on success, 1 if all chunks were ignored and nothing amended.
   974     """
   974     """
       
   975     opts = pycompat.byteskwargs(opts)
   975     state = absorb(ui, repo, pats=pats, opts=opts)
   976     state = absorb(ui, repo, pats=pats, opts=opts)
   976     if sum(s[0] for s in state.chunkstats.values()) == 0:
   977     if sum(s[0] for s in state.chunkstats.values()) == 0:
   977         return 1
   978         return 1