Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/patch.py @ 5692:1127fe12202a
Merge with crew-stable
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Tue, 25 Dec 2007 22:23:58 +0100 |
parents | 1b35bc1c1968 a0eb8a418442 |
children | 89fe5b36c21e |
comparison
equal
deleted
inserted
replaced
5691:8e495dd6662e | 5692:1127fe12202a |
---|---|
1374 stat = [] | 1374 stat = [] |
1375 for line in fp: stat.append(line.lstrip()) | 1375 for line in fp: stat.append(line.lstrip()) |
1376 last = stat.pop() | 1376 last = stat.pop() |
1377 stat.insert(0, last) | 1377 stat.insert(0, last) |
1378 stat = ''.join(stat) | 1378 stat = ''.join(stat) |
1379 if stat.startswith('0 files'): raise ValueError | |
1380 return stat | 1379 return stat |
1381 except: raise | 1380 except: raise |
1382 finally: | 1381 finally: |
1383 try: os.unlink(name) | 1382 try: os.unlink(name) |
1384 except: pass | 1383 except: pass |