~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_conflicts.py

  • Committer: Vincent Ladeuil
  • Date: 2011-07-07 10:20:59 UTC
  • mto: (6012.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 6013.
  • Revision ID: v.ladeuil+lp@free.fr-20110707102059-xze39u9kino70aqg
Fix the test for trunk where merging into an empty branch now behave differently

Show diffs side-by-side

added added

removed removed

Lines of Context:
1097
1097
$ bzr init experimental
1098
1098
Created a standalone tree (format: 2a)
1099
1099
$ cd experimental
 
1100
# Work around merging into empty branch not being supported
 
1101
# (http://pad.lv/308562)
 
1102
$ echo something >not-empty
 
1103
$ bzr add
 
1104
adding not-empty
 
1105
$ bzr commit -m 'Add some content in experimental'
 
1106
2>Committing to: .../experimental/
 
1107
2>added not-empty
 
1108
2>Committed revision 1.
1100
1109
# merge debian even without a common ancestor
1101
1110
$ bzr merge ../debian -r0..2
1102
1111
2>+N  dir/
1104
1113
2>All changes applied successfully.
1105
1114
$ bzr commit -m 'merging debian into experimental'
1106
1115
2>Committing to: .../experimental/
1107
 
2>deleted 
1108
 
2>modified dir
1109
 
2>Committed revision 1.
 
1116
2>added dir
 
1117
2>added dir/file
 
1118
2>Committed revision 2.
1110
1119
# Create an ubuntu branch with yet another root-id
1111
1120
$ cd ..
1112
1121
$ bzr init ubuntu
1113
1122
Created a standalone tree (format: 2a)
1114
1123
$ cd ubuntu
 
1124
# Work around merging into empty branch not being supported
 
1125
# (http://pad.lv/308562)
 
1126
$ echo something >not-empty-ubuntu
 
1127
$ bzr add
 
1128
adding not-empty-ubuntu
 
1129
$ bzr commit -m 'Add some content in experimental'
 
1130
2>Committing to: .../ubuntu/
 
1131
2>added not-empty-ubuntu
 
1132
2>Committed revision 1.
1115
1133
# Also merge debian
1116
1134
$ bzr merge ../debian -r0..2
1117
1135
2>+N  dir/
1119
1137
2>All changes applied successfully.
1120
1138
$ bzr commit -m 'merging debian'
1121
1139
2>Committing to: .../ubuntu/
1122
 
2>deleted 
1123
 
2>modified dir
1124
 
2>Committed revision 1.
 
1140
2>added dir
 
1141
2>added dir/file
 
1142
2>Committed revision 2.
1125
1143
# Now try to merge experimental
1126
1144
$ bzr merge ../experimental
 
1145
2>+N  not-empty
1127
1146
2>Path conflict: dir / dir
1128
1147
2>1 conflicts encountered.
1129
1148
""")