~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to upstream_import.py

  • Committer: Aaron Bentley
  • Date: 2007-06-12 22:09:44 UTC
  • mfrom: (540.1.2 bzrtools-0.17)
  • Revision ID: aaron.bentley@utoronto.ca-20070612220944-5zw4hlzp1ctq6mkl
Merge fixes from 0.17

Show diffs side-by-side

added added

removed removed

Lines of Context:
108
108
    def isdir(self):
109
109
        return stat.S_ISDIR(self.mode)
110
110
 
 
111
    def issym(self):
 
112
        if stat.S_ISLNK(self.mode):
 
113
            self.linkname = os.readlink(self.fullpath)
 
114
            return True
 
115
        else:
 
116
            return False
 
117
 
111
118
 
112
119
def top_directory(path):
113
120
    """Return the top directory given in a path."""