Mercurial > hgsubversion
comparison hgsubversion/wrappers.py @ 561:312c8c98eeff
pull: handle commits without any commit message
| author | Augie Fackler <durin42@gmail.com> |
|---|---|
| date | Mon, 15 Feb 2010 10:22:12 -0600 |
| parents | 9cac09f91728 |
| children | 8e025a6f0db4 |
comparison
equal
deleted
inserted
replaced
| 560:9cac09f91728 | 561:312c8c98eeff |
|---|---|
| 272 # got a 502? Try more than once! | 272 # got a 502? Try more than once! |
| 273 tries = 0 | 273 tries = 0 |
| 274 converted = False | 274 converted = False |
| 275 while not converted: | 275 while not converted: |
| 276 try: | 276 try: |
| 277 | 277 msg = '' |
| 278 msg = r.message.strip() | 278 if r.message: |
| 279 msg = r.message.strip() | |
| 279 if not msg: | 280 if not msg: |
| 280 msg = util.default_commit_msg | 281 msg = util.default_commit_msg |
| 281 else: | 282 else: |
| 282 msg = [s.strip() for s in msg.splitlines() if s][0] | 283 msg = [s.strip() for s in msg.splitlines() if s][0] |
| 283 w = hgutil.termwidth() | 284 w = hgutil.termwidth() |
