Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So say I have file.py that I want to split into file1.py and file2.py.

What is the correct way to do this? Would it be to use the following?

bzr copy file.py file1.py
bzr copy file.py file2.py
bzr rm file.py
share|improve this question
up vote 4 down vote accepted

Currently this isn't possible. This bug is reported here.

Until then this is the only way (though you'll lose history for file2.py):

bzr mv file file1.py
cp file1.py file2.py
bzr add file2.py
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.