Show More
@@ -74,6 +74,10 b' def walkchangerevs(ui, repo, cwd, pats, ' | |||
|
74 | 74 | |
|
75 | 75 | "iter", rev, None: in-order traversal of the revs earlier iterated |
|
76 | 76 | over with "add" - use to display data''' |
|
77 | ||
|
78 | if repo.changelog.count() == 0: | |
|
79 | return [], False | |
|
80 | ||
|
77 | 81 | cwd = repo.getcwd() |
|
78 | 82 | if not pats and cwd: |
|
79 | 83 | opts['include'] = [os.path.join(cwd, i) for i in opts['include']] |
@@ -1055,6 +1059,7 b' def grep(ui, repo, pattern, *pats, **opt' | |||
|
1055 | 1059 | skip = {} |
|
1056 | 1060 | changeiter, getchange = walkchangerevs(ui, repo, repo.getcwd(), pats, opts) |
|
1057 | 1061 | count = 0 |
|
1062 | incrementing = False | |
|
1058 | 1063 | for st, rev, fns in changeiter: |
|
1059 | 1064 | if st == 'window': |
|
1060 | 1065 | incrementing = rev |
General Comments 0
You need to be logged in to leave comments.
Login now