Changeset 1666 in tailor
- Timestamp:
- 03/27/09 11:26:03 (4 years ago)
- Hash name:
- 20090327102603-97f81-306859d2ffafa9d11b571c32fa33b962b2f8791d
- File:
-
- 1 edited
-
vcpx/repository/hg.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
vcpx/repository/hg.py
r1662 r1666 642 642 643 643 files = [] 644 for src, path in self._getRepo().dirstate.walk([subdir]): 644 try: 645 # hg >= 1.1 646 # def walk(self, match, unknown, ignored) 647 648 from mercurial import match 649 650 def get_paths(): 651 matcher = match.exact(self.repository.basedir, 652 self.repository.basedir, 653 [subdir]) 654 walk = self._getRepo().dirstate.walk 655 for path in walk(matcher, True, False): 656 yield path 657 except ImportError: 658 # hg < 1.1 659 # def walk(self, files=None, match=util.always, badmatch=None) 660 661 def get_paths(): 662 walk = self._getRepo().dirstate.walk 663 for src, path in walk([subdir]): 664 yield path 665 666 for path in get_paths(): 645 667 # If subdir is a plain file, just return 646 668 if path == subdir: … … 651 673 tl = join(nt, tl) 652 674 files.append(tl) 675 653 676 return files
Note: See TracChangeset
for help on using the changeset viewer.
