/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/dirstate.py

  • Committer: Alexander Belchenko
  • Date: 2008-03-17 21:58:47 UTC
  • mfrom: (3290 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3293.
  • Revision ID: bialix@ukr.net-20080317215847-m36yrjhb004kgi65
merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
1312
1312
                        source_path = entry[0][0] + '/' + entry[0][1]
1313
1313
                    else:
1314
1314
                        source_path = entry[0][1]
1315
 
                    target_path = new_path_utf8 + source_path[len(old_path):]
 
1315
                    if new_path_utf8:
 
1316
                        target_path = new_path_utf8 + source_path[len(old_path):]
 
1317
                    else:
 
1318
                        assert len(old_path) > 0, ("cannot rename directory to"
 
1319
                                                   " itself")
 
1320
                        target_path = source_path[len(old_path) + 1:]
1316
1321
                    adds.append((None, target_path, entry[0][2], entry[1][1], False))
1317
1322
                    deletes.append(
1318
1323
                        (source_path, target_path, entry[0][2], None, False))