Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 869769
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T10:21:49+00:00 2026-05-15T10:21:49+00:00

I have a problem, in a refactoring attempt I have copied files from one

  • 0

I have a problem, in a refactoring attempt I have copied files from one place to another and added them in my scm (perforce). When I was done and everything was working I deleted the old (moved) files.

Can I connect the file histories with each other? The best would be to se the “move” like it should have been done..

Thankful for any help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T10:21:50+00:00Added an answer on May 15, 2026 at 10:21 am

    Suppose your original file is //source/old/file.c#5 and you moved it to //source/new/file.c, then deleted the old file in revision //source/old/file.c#6. You need to integrate from the old file to the new file, using the -i flag so Perforce will allow you to integrate between two files that it doesn’t otherwise know of an integration history:

    p4 integrate -i //source/old/file.c#5 //source/new/file.c
    

    then resolve the files. Normally while integrating you’ll want to accept a merged version of the file, but in this case you’re mostly interested in letting Perforce know you already did the integration, so you can use -ay to “accept yours”, discarding the old version of the file:

    p4 resolve -ay //source/new/file.c
    

    then submit the revision.

    (Ideally you would have integrated first, then made any changes, and submitted everything, but this way the files will be linked in Perforce’s integration history.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem with some simple code, I'm refactoring some existing code from
I have problem with UIWebView delay when the load image from url. In my
I have problem developing with live555. I already build the lib-files and example projects
I have problem with a long form in iOS. The form itself is done
I have this general problem in design, refactoring or triage: I have an existing
I'm trying to do some refactoring of code, and have run into a problem.
Hey, I have a problem similar to this one ( click ). Approx 2
I have a peculiar problem. I was tasked with refactoring some old c code
Another PL/SQL refactoring question! I have several cursors that are of the general simplified
I have problem with repopulating form_upload after validation. Other input fields or selectboxes are

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.