Show More
@@ -777,6 +777,19 b' def parents(ui, repo, rev=None):' | |||||
777 | if n != hg.nullid: |
|
777 | if n != hg.nullid: | |
778 | show_changeset(ui, repo, changenode=n) |
|
778 | show_changeset(ui, repo, changenode=n) | |
779 |
|
779 | |||
|
780 | def paths(ui, repo, search = None): | |||
|
781 | """show path or list of available paths""" | |||
|
782 | if search: | |||
|
783 | for name, path in ui.configitems("paths"): | |||
|
784 | if name == search: | |||
|
785 | ui.write("%s\n" % path) | |||
|
786 | return | |||
|
787 | ui.warn("not found!\n") | |||
|
788 | return 1 | |||
|
789 | else: | |||
|
790 | for name, path in ui.configitems("paths"): | |||
|
791 | ui.write("%s = %s\n" % (name, path)) | |||
|
792 | ||||
780 | def pull(ui, repo, source="default", **opts): |
|
793 | def pull(ui, repo, source="default", **opts): | |
781 | """pull changes from the specified source""" |
|
794 | """pull changes from the specified source""" | |
782 | source = ui.expandpath(source) |
|
795 | source = ui.expandpath(source) | |
@@ -1165,6 +1178,7 b' table = {' | |||||
1165 | 'hg log [-r REV1 [-r REV2]] [-p] [FILE]'), |
|
1178 | 'hg log [-r REV1 [-r REV2]] [-p] [FILE]'), | |
1166 | "manifest": (manifest, [], 'hg manifest [REV]'), |
|
1179 | "manifest": (manifest, [], 'hg manifest [REV]'), | |
1167 | "parents": (parents, [], 'hg parents [REV]'), |
|
1180 | "parents": (parents, [], 'hg parents [REV]'), | |
|
1181 | "paths": (paths, [], 'hg paths [name]'), | |||
1168 | "^pull": |
|
1182 | "^pull": | |
1169 | (pull, |
|
1183 | (pull, | |
1170 | [('u', 'update', None, 'update working directory')], |
|
1184 | [('u', 'update', None, 'update working directory')], |
General Comments 0
You need to be logged in to leave comments.
Login now