/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/transform.py

  • Committer: Robert Collins
  • Date: 2007-03-01 03:56:15 UTC
  • mto: (2255.11.3 dirstate)
  • mto: This revision was merged to the branch mainline in revision 2322.
  • Revision ID: robertc@robertcollins.net-20070301035615-apsvyiyqk6pqext2
Deprecated and make work with DirState trees 'transform.find_interesting'.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
from bzrlib.osutils import (file_kind, supports_executable, pathjoin, lexists,
31
31
                            delete_any)
32
32
from bzrlib.progress import DummyProgress, ProgressPhase
 
33
from bzrlib.symbol_versioning import deprecated_function, zero_fifteen
33
34
from bzrlib.trace import mutter, warning
34
35
from bzrlib import tree
35
36
import bzrlib.ui 
1245
1246
        tt.set_executability(entry.executable, trans_id)
1246
1247
 
1247
1248
 
 
1249
@deprecated_function(zero_fifteen)
1248
1250
def find_interesting(working_tree, target_tree, filenames):
1249
 
    """Find the ids corresponding to specified filenames."""
1250
 
    trees = (working_tree, target_tree)
1251
 
    return tree.find_ids_across_trees(filenames, trees)
 
1251
    """Find the ids corresponding to specified filenames.
 
1252
    
 
1253
    Deprecated: Please use tree1.paths2ids(filenames, [tree2]).
 
1254
    """
 
1255
    working_tree.lock_read()
 
1256
    try:
 
1257
        target_tree.lock_read()
 
1258
        try:
 
1259
            return working_tree.paths2ids(filenames, [target_tree])
 
1260
        finally:
 
1261
            target_tree.unlock()
 
1262
    finally:
 
1263
        working_tree.unlock()
1252
1264
 
1253
1265
 
1254
1266
def change_entry(tt, file_id, working_tree, target_tree,