~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/changeset.py

  • Committer: Martin Pool
  • Date: 2005-07-11 02:02:58 UTC
  • Revision ID: mbp@sourcefrog.net-20050711020258-2281af27e5af39d2
- more weave.py command line options

- better error when invalid version is given

- weave help and weave mash commands

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
import errno
18
18
import patch
19
19
import stat
20
 
from bzrlib.trace import mutter
21
20
"""
22
21
Represent and apply a changeset
23
22
"""
694
693
        :type reverse: bool
695
694
        :rtype: str
696
695
        """
697
 
        mutter("Finding new path for %s" % self.summarize_name(changeset))
698
696
        if reverse:
699
697
            parent = self.parent
700
698
            to_dir = self.dir
719
717
        if from_dir == to_dir:
720
718
            dir = os.path.dirname(id_map[self.id])
721
719
        else:
722
 
            mutter("path, new_path: %r %r" % (self.path, self.new_path))
723
720
            parent_entry = changeset.entries[parent]
724
721
            dir = parent_entry.get_new_path(id_map, changeset, reverse)
725
722
        if from_name == to_name:
1529
1526
 
1530
1527
 
1531
1528
        
1532
 
# XXX: Can't we unify this with the regular inventory object
 
1529
    
1533
1530
class Inventory(object):
1534
1531
    def __init__(self, inventory):
1535
1532
        self.inventory = inventory