Move files to another directory

Asked by Michael Crain on 2013-05-30

I am relatively new to Bazaar. I have tried to solve this for a day and am still stuck.

I want to move all files (versioned and unversioned) from one directory to another and want to keep all of my versioning history.
I run a command like this:
bzr mv C:/A_directory/myproject C:/B_directory/myproject

I get an error message saying: ERROR: Path (destination-path) is not a child path (source-path)

I have created the new destination directory with and without bzr init but no luck either way.

I am using Bazaar Explorer 1.3.0

UPDATE:
I see from the -bzr mv- documentation (missed it before) that -bzr mv- cannot move files between branches. Does this mean that I should simply move the directory to the desired location on the local drive not using bzr? Before I try this, I appreciate some advice. I want to keep my versioning history.

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Solved by:
John A Meinel
Solved:
2013-06-03
Last query:
2013-06-03
Last reply:
2013-05-31
Best John A Meinel (jameinel) said : #1

Yes. You should be able to just move the containing directory.

John
=:->
On May 31, 2013 10:16 PM, "Michael Crain" <
<email address hidden>> wrote:

> Question #229953 on Bazaar changed:
> https://answers.launchpad.net/bzr/+question/229953
>
> Description changed to:
> I am relatively new to Bazaar. I have tried to solve this for a day and
> am still stuck.
>
> I want to move all files (versioned and unversioned) from one directory to
> another and want to keep all of my versioning history.
> I run a command like this:
> bzr mv C:/A_directory/myproject C:/B_directory/myproject
>
> I get an error message saying: ERROR: Path (destination-path) is not a
> child path (source-path)
>
> I have created the new destination directory with and without bzr init
> but no luck either way.
>
> I am using Bazaar Explorer 1.3.0
>
> UPDATE:
> I see from the -bzr mv- documentation (missed it before) that -bzr mv-
> cannot move files between branches. Does this mean that I should simply
> move the directory to the desired location on the local drive not using
> bzr? Before I try this, I appreciate some advice. I want to keep my
> versioning history.
>
> --
> You received this question notification because you are an answer
> contact for Bazaar.
>

Michael Crain (michaelcrain) said : #2

Thanks John A Meinel, that solved my question.