~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Martin Pool
  • Date: 2005-05-19 06:37:21 UTC
  • Revision ID: mbp@sourcefrog.net-20050519063721-555aeba2dc1f659d
- use builtin set object in python2.4 
  (suggested by Mario Pernici)
- clean up some uses of set() that can simply be lists or dicts
- remove some imports from the bzrlib namespace 

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
 
17
17
 
18
 
from sets import Set
19
 
 
20
18
import sys, os, os.path, random, time, sha, sets, types, re, shutil, tempfile
21
19
import traceback, socket, fnmatch, difflib, time
22
20
from binascii import hexlify
679
677
        if to_dir_ie.kind not in ('directory', 'root_directory'):
680
678
            bailout("destination %r is not a directory" % to_abs)
681
679
 
682
 
        to_idpath = Set(inv.get_idpath(to_dir_id))
 
680
        to_idpath = inv.get_idpath(to_dir_id)
683
681
 
684
682
        for f in from_paths:
685
683
            if not tree.has_filename(f):