Software Build and Release Specialist

Latest Entries
Jan 20

Importing a new Project in Perforce

I ran into another not-so-clear Perforce error message today while trying to import a new project to an existing depot.  I had a new project1 which I wanted to import into the existing // depot, but when I tried to add via P4V or ‘p4 add’ in the command line, I kept getting this message:

D:\Work\P4>p4 client myproject_foo
Error in client specification.
Mapping ‘//some_directory/…’ is not under ‘//some_other_directory/…’.
Hit return to continue…

After fumbling around, I found that I had to create a depot first as the superuser in the command line before I can import/add the new project:

p4 depot new_project

Then now I can add new project to my clientspec in the command line like this:

p4 client (it will open a notepad window, just add your new project under the ‘View:’ section, save, and close)

Now you can do ‘p4 add’ or using P4V to import your new project.

Bookmark It:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • LinkedIn
  • NewsVine
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
  • Yahoo! Buzz
  • Live
  • SphereIt

Leave a Reply


Related Topics:

+  How to Escape {“‘<>&} Characters in ANT