Mercurial > hg > mercurial-crew-with-dirclash
comparison mercurial/commands.py @ 1222:a5cb17a2d240
Fix missing docstring for unbundle
author | mpm@selenic.com |
---|---|
date | Thu, 08 Sep 2005 12:16:31 -0700 |
parents | 89f899caecb5 |
children | ea90162e210c |
comparison
equal
deleted
inserted
replaced
1221:89f899caecb5 | 1222:a5cb17a2d240 |
---|---|
1555 """show the tip revision""" | 1555 """show the tip revision""" |
1556 n = repo.changelog.tip() | 1556 n = repo.changelog.tip() |
1557 show_changeset(ui, repo, changenode=n) | 1557 show_changeset(ui, repo, changenode=n) |
1558 | 1558 |
1559 def unbundle(ui, repo, fname): | 1559 def unbundle(ui, repo, fname): |
1560 """apply a changegroup file""" | |
1560 f = urllib.urlopen(fname) | 1561 f = urllib.urlopen(fname) |
1561 | 1562 |
1562 if f.read(4) != "HG10": | 1563 if f.read(4) != "HG10": |
1563 ui.warn("abort: not a Mercurial bundle file!\n") | 1564 ui.warn("abort: not a Mercurial bundle file!\n") |
1564 return -1 | 1565 return -1 |