Lines Matching refs:sh
409 sh = self.src.RangeSha1(sr)
410 if sh in stashes:
411 stashes[sh] += 1
413 stashes[sh] = 1
416 out.append("stash %s %s\n" % (sh, sr.to_string_raw()))
437 sh = self.src.RangeSha1(sr)
440 assert sh in stashes
441 src_str_buffer.append("%s:%s" % (sh, sr.to_string_raw()))
442 stashes[sh] -= 1
443 if stashes[sh] == 0:
444 free_string.append("free %s\n" % (sh,))
446 stashes.pop(sh)
649 sh = self.src.RangeSha1(sr)
650 if sh not in stashes:
661 if sh in stashes:
662 stashes[sh] += 1
664 stashes[sh] = 1
698 sh = self.src.RangeSha1(sr)
699 assert sh in stashes
700 stashes[sh] -= 1
701 if stashes[sh] == 0:
703 stashes.pop(sh)