Closed Bug 1116861 Opened 9 years ago Closed 9 years ago

Implement |hg fxtrees| to pull from every label that |hg fxheads| knows about

Categories

(Developer Services :: Mercurial: firefoxtree, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: KWierso, Assigned: gps)

References

Details

(Whiteboard: [kanban:engops:https://mozilla.kanbanize.com/ctrl_board/6/4265] )

Attachments

(2 files, 1 obsolete file)

It'd be nice to have some command that could pull all of the labels that fxheads knows about, so that one command can get all of the new incoming revisions from all of the known branches.
This should NOT pull from everything that https://hg.mozilla.org/hgcustom/version-control-tools/file/default/pylib/mozautomation/mozautomation/repository.py knows about, only the ones that have actively been pulled from in the past and are listed by the fxheads command.
Whiteboard: [kanban:engops:https://mozilla.kanbanize.com/ctrl_board/6/4265]
Attached file WIP v1
This is about as far as I've come implementing something like this. 

My python-foo and mercurial-extension-writing-foo is weak, so I'm unsure how to use the output of `hg fxheads` inside of this new command, so I've just hardcoded an array of the heads I care about in my day to day job.
Attachment #8544254 - Flags: feedback?(gps)
Comment on attachment 8544254 [details]
WIP v1

Congratulations on writing your first Mercurial extension!

But as you said, you want some more advanced functionality than what you've implemented. I hope you don't mind if I bake up something more robust and integrate it as part of firefoxtree.
Attachment #8544254 - Flags: feedback?(gps) → feedback+
Fine with me. I'd also not mind working through to the final product myself, but that's probably more hand-holding than we'd want to get this done anytime soon.
Attached file MozReview Request: bz://1116861/gps (obsolete) —
Attachment #8544365 - Flags: review?(emorley)
/r/2047 - firefoxtree: allow pulling from aliases that map to multiple trees (bug 1116861)

Pull down this commit:

hg pull review -r f45c5587f836d8139b3cac72bda7b08c7cd50f7e
https://reviewboard.mozilla.org/r/2045/#review1291

::: pylib/mozautomation/mozautomation/repository.py
(Diff revision 1)
>      'integration': ('inbound', 'fx-team', 'services', 'build', 'b2ginbound'),

I'd quite like to remove services and build from the list of integration repos (just the multi repo alias, not their entries entirely) - they are dormant and removed from buildbot/treeherder. 

This would mean sheriffs could do |hg pull integration| and actually get only the main repos. Plus it would mean fewer repos have to get cloned as part of the version-control-tools test run, though it's probably a drop in the ocean for run-time.

Is up to you :-)
Attachment #8544365 - Flags: review?(emorley) → review+
Assignee: nobody → gps
Status: NEW → ASSIGNED
OS: Windows 8.1 → All
Hardware: x86_64 → All
https://reviewboard.mozilla.org/r/2045/#review1301

> I'd quite like to remove services and build from the list of integration repos (just the multi repo alias, not their entries entirely) - they are dormant and removed from buildbot/treeherder. 
> 
> This would mean sheriffs could do |hg pull integration| and actually get only the main repos. Plus it would mean fewer repos have to get cloned as part of the version-control-tools test run, though it's probably a drop in the ocean for run-time.
> 
> Is up to you :-)

Send me a patch to remove them and I'll r+ it.
The only reason I mentioned it here is because you added a bunch of clones for those dormant repos to firefoxrepos.sh, presumably as test fixup - when the alternative fix would be to remove them from the alias. Again, don't mind either way :-)
I'll file a new bug to remove build-system and services-central from the integration list.
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Blocks: 1118334
Cleaning up the title to better reflect what actually landed.
Summary: Implement something like | hg pullallfxheads | to pull from every label that hg fxheads knows about. → Implement something like | hg pull fxtrees/integration/releases | to pull from known firefox trees, integration branches, and release branches
(In reply to Wes Kocher (:KWierso) from comment #14)
> Cleaning up the title to better reflect what actually landed.

That's not what landed - see:
https://hg.mozilla.org/hgcustom/version-control-tools/rev/ec56399bb1c8#l1.15
Summary: Implement something like | hg pull fxtrees/integration/releases | to pull from known firefox trees, integration branches, and release branches → Implement |hg fxtrees| to pull from every label that |hg fxheads| knows about
Attachment #8544365 - Attachment is obsolete: true
Attachment #8619000 - Flags: review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: