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 3344134
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T01:02:05+00:00 2026-05-18T01:02:05+00:00

Short version: After branching in P4, how can I find out the source changelist

  • 0

Short version:

After branching in P4, how can I find out the “source” changelist of the branch?

Long version:

Let’s say I have a main branch of my project at

//project/main/...

The latest changelist submitted here is @123, when I decide to create a branch for release 1.0 in

//project/1.0/...

From P4V, a new changelist is created (say @130), resolved and submitted.

From the CLI, it would look something like this:

p4 integrate -c 123 -o //project/main/... //project/1.0/...
p4 submit

Later, I look at the changelists under //project/1.0, and see the @130 changelist containing a lot of branched files.
How can I find out the changelist no. that this was originally branched from (that is, @123) ?

  • 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-18T01:02:05+00:00Added an answer on May 18, 2026 at 1:02 am

    p4 changes will display a list of submitted changelists, optionally filtered to a specific path.

    p4 changes //project/main/...
    Change 123 ... 'Very last change.'
    Change 122 ... 'Next-to-last change.'
    Change 100 ... 'Only two changes to go...'
    ...
    

    No surprise there, but, as you’ve found, p4 changes is less helpful when you integrate all those changes in a single change:

    p4 changes //project/1.0/...
    Change 130 ... 'Integrated everything from main.'
    

    The trick is to use the -i option which includes any changelists integrated into the specified files.

    p4 changes -i //project/1.0/...
    Change 130 ... 'Integrated everything from main.'
    Change 123 ... 'Very last change.'
    Change 122 ... 'Next-to-last change.'
    Change 100 ... 'Only two changes to go...'
    ...
    

    To get exactly what you want (123) you’ll need to write a script which filters the output from p4 changes -i //project/1.0/... to remove any change listed by p4 changes //project/1.0/... (and then take the most recent remaining change).

    (When exploring, I frequently also find the -m max option useful. This limits changes to the ‘max’ most recent. This helps your output not flow offscreen when there are many changes.)

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

Sidebar

Related Questions

Short version: Say I have a string str and a file functions.py from which
Short version: I have a similar setup to StackOverflow. Users get Achievements. I have
Short version: How can I map two columns from table A and B if
SHORT VERSION OF QUESTION: So basically my question is: How can I set the
Short version: I have a Django project under development & testing (not yet into
Short Version I have a list of int s that I need to figure
In short, I have 8G of memory and eclipse/java is dying after the splash
Short Version For those who don't have the time to read my reasoning for
Short version of my questions: Can anyone point me toward some good, detailed sources
Long version... A co-worker asserted today after seeing my use of while (1) in

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.