Mercurial > hg-onsub
comparison onsub.py @ 4:aa0c2e9f5f59
Adapt to Mercurial API change
| author | Martin Geisler <mg@aragost.com> |
|---|---|
| date | Wed, 24 Nov 2010 14:58:48 +0100 |
| parents | a2184bbf38e6 |
| children | 11fd0da50daa |
comparison
equal
deleted
inserted
replaced
| 3:a2184bbf38e6 | 4:aa0c2e9f5f59 |
|---|---|
| 51 if depthfirst: | 51 if depthfirst: |
| 52 sub = work.pop() | 52 sub = work.pop() |
| 53 else: | 53 else: |
| 54 sub = work.pop(0) | 54 sub = work.pop(0) |
| 55 | 55 |
| 56 relpath = subrepo.relpath(sub) | 56 # subrepo.relpath was renamed to subrepo.subrelpath in |
| 57 # 18b5b6392fcf. | |
| 58 if hasattr(subrepo, 'relpath'): | |
| 59 relpath = subrepo.relpath(sub) | |
| 60 else: | |
| 61 relpath = subrepo.subrelpath(sub) | |
| 62 | |
| 57 if print0: | 63 if print0: |
| 58 ui.write(relpath, "\0") | 64 ui.write(relpath, "\0") |
| 59 else: | 65 else: |
| 60 ui.note(_("executing '%s' in %s\n") % (cmd, relpath)) | 66 ui.note(_("executing '%s' in %s\n") % (cmd, relpath)) |
| 61 if ignoreerrors: | 67 if ignoreerrors: |
