~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

- improved handling of non-ascii branch names and test
  patch from Joel Rosdahl

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
from bzrlib.trace import mutter, note
29
29
from bzrlib.osutils import (isdir, quotefn, compact_date, rand_bytes, 
30
30
                            rename, splitpath, sha_file, appendpath, 
31
 
                            file_kind)
 
31
                            file_kind, abspath)
32
32
import bzrlib.errors as errors
33
33
from bzrlib.errors import (BzrError, InvalidRevisionNumber, InvalidRevisionId,
34
34
                           NoSuchRevision, HistoryMissing, NotBranchError,
693
693
        control files or ignored.
694
694
        
695
695
        >>> b = ScratchBranch(files=['foo', 'foo~'])
696
 
        >>> list(b.unknowns())
 
696
        >>> map(str, b.unknowns())
697
697
        ['foo']
698
698
        >>> b.add('foo')
699
699
        >>> list(b.unknowns())
700
700
        []
701
701
        >>> b.remove('foo')
702
 
        >>> list(b.unknowns())
 
702
        >>> map(str, b.unknowns())
703
703
        ['foo']
704
704
        """
705
705
        return self.working_tree().unknowns()