Show More
@@ -1231,9 +1231,8 b' def parents(repo, subset, x):' | |||||
1231 | The set of all parents for all changesets in set, or the working directory. |
|
1231 | The set of all parents for all changesets in set, or the working directory. | |
1232 | """ |
|
1232 | """ | |
1233 | if x is None: |
|
1233 | if x is None: | |
1234 |
ps = |
|
1234 | ps = set(p.rev() for p in repo[x].parents()) | |
1235 | return subset & ps |
|
1235 | else: | |
1236 |
|
||||
1237 | ps = set() |
|
1236 | ps = set() | |
1238 | cl = repo.changelog |
|
1237 | cl = repo.changelog | |
1239 | for r in getset(repo, spanset(repo), x): |
|
1238 | for r in getset(repo, spanset(repo), x): |
General Comments 0
You need to be logged in to leave comments.
Login now