Closed Bug 898714 Opened 12 years ago Closed 12 years ago

land mercurial changes from beagle branch

Categories

(Release Engineering :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mozilla, Assigned: mozilla)

References

Details

(Whiteboard: [mozharness])

Attachments

(1 file)

The mercurial.py changes here: https://github.com/escapewindow/mozharness/compare/master...beagle This should make the beagle patch easier to review.
Attached patch mercurialSplinter Review
This is a simple one: * only create parent_dir if parent dir (as opposed to os.path.exists(None)) * raise a VCSException if we fail to clone, rather than falling through and dying on the update
Attachment #786078 - Flags: review?(rail)
Comment on attachment 786078 [details] [diff] [review] mercurial Review of attachment 786078 [details] [diff] [review]: ----------------------------------------------------------------- ::: mozharness/base/vcs/mercurial.py @@ +195,5 @@ > cmd.extend(['-b', branch]) > > cmd.extend([repo, dest]) > + if self.run_command(cmd, error_list=HgErrorList): > + raise VCSException("Unable to clone %s to %s!" % (repo, dest)) Can you use something like if self.run_command(cmd, error_list=HgErrorList) != 0: to improve readability?
Attachment #786078 - Flags: review?(rail) → review+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Product: mozilla.org → Release Engineering
Component: General Automation → General
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: