Show More
@@ -782,6 +782,20 b' def import_(ui, repo, patch1, *patches, ' | |||||
782 | addremove(ui, repo, *files) |
|
782 | addremove(ui, repo, *files) | |
783 | repo.commit(files, message, user) |
|
783 | repo.commit(files, message, user) | |
784 |
|
784 | |||
|
785 | def incoming(ui, repo, source="default"): | |||
|
786 | """show changesets not found in source""" | |||
|
787 | source = ui.expandpath(source) | |||
|
788 | other = hg.repository(ui, source) | |||
|
789 | if not other.local(): | |||
|
790 | ui.warn("abort: incoming doesn't work for remote" | |||
|
791 | + " repositories yet, sorry!\n") | |||
|
792 | return 1 | |||
|
793 | o = repo.findincoming(other) | |||
|
794 | o = other.newer(o) | |||
|
795 | o.reverse() | |||
|
796 | for n in o: | |||
|
797 | show_changeset(ui, other, changenode=n) | |||
|
798 | ||||
785 | def init(ui, dest="."): |
|
799 | def init(ui, dest="."): | |
786 | """create a new repository in the given directory""" |
|
800 | """create a new repository in the given directory""" | |
787 | if not os.path.exists(dest): |
|
801 | if not os.path.exists(dest): | |
@@ -1303,6 +1317,7 b' table = {' | |||||
1303 | [('p', 'strip', 1, 'path strip'), |
|
1317 | [('p', 'strip', 1, 'path strip'), | |
1304 | ('b', 'base', "", 'base path')], |
|
1318 | ('b', 'base', "", 'base path')], | |
1305 | "hg import [-p NUM] [-b BASE] PATCH..."), |
|
1319 | "hg import [-p NUM] [-b BASE] PATCH..."), | |
|
1320 | "incoming": (incoming, [], 'hg incoming [SOURCE]'), | |||
1306 | "^init": (init, [], 'hg init [DEST]'), |
|
1321 | "^init": (init, [], 'hg init [DEST]'), | |
1307 | "locate": |
|
1322 | "locate": | |
1308 | (locate, |
|
1323 | (locate, |
General Comments 0
You need to be logged in to leave comments.
Login now