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