equal
deleted
inserted
replaced
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 |