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

  • SEARCH
  • Home
  • 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 453513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T22:10:46+00:00 2026-05-12T22:10:46+00:00

Suppose you open a file for branch to another place (without submitting), and then

  • 0

Suppose you open a file for branch to another place (without submitting), and then reopen it for add and make some edits. I would like to diff this edited version against its branch source in a script.

p4 diff2 is no good because one of the versions is in the client.

p4 diff is no good because it can only diff against the “corresponding” version of the file in the depot, which a branched unsubmitted file doesn’t have yet.

Is there a way, or is the only option to just grab the two files and diff them using a third-party tool?

  • 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-12T22:10:47+00:00Added an answer on May 12, 2026 at 10:10 pm

    Sadly, you’re on the money here, you’d need to use a third party diff tool to do this because, as you rightly pointed out, until you’ve submitted the initial integration to the depot, it doesn’t have a copy against which to diff. If you go down this route you’d obviously not be able to access files directly in the depot though, you’d need to have both files on the client PC and specify their paths explicity.

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

Sidebar

Related Questions

Suppose that I want my ASP.net web server to open a file and then
Suppose I have a source file open and I launch a shell. I can
Suppose I have a source file that is 18218 bytes. I open the file
Suppose with VS 2010 I open a file contained in my project. It shows
Suppose you open a file, and do an seek() somewhere in the file, how
Suppose we want to open a file in a directory, but there are huge
I'm trying to understand some differences in file i/o techniques. Suppose I have the
Suppose I have an open file. How can I detect when the file is
Suppose I want to open a file in an existing Emacs session using su
Suppose I open a file and find there Ïåñíÿ àëüïèíèñòîâ and so on. Can

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.