Show More
@@ -819,13 +819,13 b' def pull(ui, repo, source="default", **o' | |||
|
819 | 819 | |
|
820 | 820 | return r |
|
821 | 821 | |
|
822 | def push(ui, repo, dest="default-push"): | |
|
822 | def push(ui, repo, dest="default-push", force=False): | |
|
823 | 823 | """push changes to the specified destination""" |
|
824 | 824 | dest = ui.expandpath(dest) |
|
825 | 825 | ui.status('pushing to %s\n' % (dest)) |
|
826 | 826 | |
|
827 | 827 | other = hg.repository(ui, dest) |
|
828 | r = repo.push(other) | |
|
828 | r = repo.push(other, force) | |
|
829 | 829 | return r |
|
830 | 830 | |
|
831 | 831 | def rawcommit(ui, repo, *flist, **rc): |
@@ -1203,7 +1203,10 b' table = {' | |||
|
1203 | 1203 | (pull, |
|
1204 | 1204 | [('u', 'update', None, 'update working directory')], |
|
1205 | 1205 | 'hg pull [-u] [SOURCE]'), |
|
1206 | "^push": (push, [], 'hg push [DEST]'), | |
|
1206 | "^push": | |
|
1207 | (push, | |
|
1208 | [('f', 'force', None, 'force push')], | |
|
1209 | 'hg push [DEST]'), | |
|
1207 | 1210 | "rawcommit": |
|
1208 | 1211 | (rawcommit, |
|
1209 | 1212 | [('p', 'parent', [], 'parent'), |
General Comments 0
You need to be logged in to leave comments.
Login now