diff -r 1eb4f8393960 apps repo changelog py --- apps repo changelog py

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
diff -r 1eb4f8393960 apps/repo/changelog.py
--- a/apps/repo/changelog.py Mon Dec 15 11:02:30 2008 +0200
+++ b/apps/repo/changelog.py Mon Dec 15 18:16:35 2008 +0600
@@ -9,12 +9,9 @@
class Changelog(object):
- def __init__(self, repo, pats=None, revrange=None, reversed=False):
+ def __init__(self, repo, pats=[], revrange=None, reversed=False):
self.repo = repo
- if pats:
- self.pats = [join(repo.root, pat) for pat in pats]
- else:
- self.pats = []
+ self.pats = [join(repo.root, pat) for pat in pats]
self._range = revrange
self._reversed = reversed