Jump to content


Why does p4 describe on a shelf show "no files" while unshelving the same shelf brings in files

describe

  • Please log in to reply
6 replies to this topic

#1 engr.vns

engr.vns

    Advanced Member

  • Members
  • PipPipPip
  • 43 posts

Posted 25 June 2020 - 06:51 PM

Imagine you have a shelf <Shelve#> with N number of files part of the shelf.

User uses p4 describe to list all the files in the shelf as -
sc describe -s <Shelve#>

The output shows the description but no files in the shelf.
Change <Shelve#> by <USER> on <DATE> <TIME> *pending*
        <DESCRIPTION>
Affected files ...

Notice that there are no "-m" switches being used to restrict the number of files.

But if the user unshelves the same Shelve# ends up with a bunch of files...

Why is p4 describe not listing all the files in the shelf.

Thanks in advance
- V

#2 Sambwise

Sambwise

    Advanced Member

  • Members
  • PipPipPip
  • 1192 posts

Posted 25 June 2020 - 07:56 PM

From "p4 help describe":

		The -s flag omits the diffs of files that were updated.

		The -S flag lists files that are shelved for the specified changelist
		and displays diffs of the files against their previous revision.
		If the change is restricted, the description is displayed according
		to the rules for shelved restricted changes described above.

Flags are case-sensitive; make sure you're using the -S (that's capital S) flag to show shelved files.

#3 engr.vns

engr.vns

    Advanced Member

  • Members
  • PipPipPip
  • 43 posts

Posted 26 June 2020 - 04:52 PM

Thanks but the cmd I had used with p4 describe was "-s" and not "-S"
I cross-checked again...

#4 Sambwise

Sambwise

    Advanced Member

  • Members
  • PipPipPip
  • 1192 posts

Posted 26 June 2020 - 07:10 PM

View Postengr.vns, on 26 June 2020 - 04:52 PM, said:

Thanks but the cmd I had used with p4 describe was "-s" and not "-S"
I cross-checked again...

Yes, that's why it didn't show any shelved files.  :)  You must use the "-S" flag to show shelved files.

#5 engr.vns

engr.vns

    Advanced Member

  • Members
  • PipPipPip
  • 43 posts

Posted 29 June 2020 - 07:16 AM

This also Dows the diffs of the files (even if it's reduced to a summary). Is there a way to avoid the diffs and just the incoming file list.

- vns

#6 Sambwise

Sambwise

    Advanced Member

  • Members
  • PipPipPip
  • 1192 posts

Posted 29 June 2020 - 03:02 PM

You can combine multiple flags.  Using both "-s" and "-S" together should get you what you're looking for.

#7 engr.vns

engr.vns

    Advanced Member

  • Members
  • PipPipPip
  • 43 posts

Posted 30 June 2020 - 12:35 AM

thanks. combination was what was needed...





Also tagged with one or more of these keywords: describe

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users