Closed Bug 1387645 Opened 7 years ago Closed 7 years ago

Log more output in vcsreplicator

Categories

(Developer Services :: Mercurial: hg.mozilla.org, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: gps, Assigned: gps)

References

Details

Attachments

(1 file)

To help with forensics.
Comment on attachment 8894024 [details]
vcsreplicator: log output from Mercurial commands (bug 1387645);

https://reviewboard.mozilla.org/r/165120/#review170620

::: pylib/vcsreplicator/vcsreplicator/consumer.py:262
(Diff revision 1)
>  
>          logger.warn('pulling %d heads into %s' % (
>              len(heads), local_path))
> -        c.pull(source=url or 'default', rev=heads)
> +        args = hglib.util.cmdbuilder('pull', url or 'default', r=heads)
> +        res, out, err = run_command(c, args)
> +        if res not in (0, 1):

i'm not sure why unresolved files (ret==1) are treated as success here.
Attachment #8894024 - Flags: review?(glob) → review+
Comment on attachment 8894024 [details]
vcsreplicator: log output from Mercurial commands (bug 1387645);

https://reviewboard.mozilla.org/r/165120/#review170620

> i'm not sure why unresolved files (ret==1) are treated as success here.

This is (surprisingly) the default behavior of hglib.util.reterrorhandler(), which hglib.client.hgclient.pull() uses. But, yeah, it is wonky. I'll fix it in flight.
Pushed by gszorc@mozilla.com:
https://hg.mozilla.org/hgcustom/version-control-tools/rev/2c697760447f
vcsreplicator: log output from Mercurial commands ; r=glob
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Pushed by gszorc@mozilla.com:
https://hg.mozilla.org/hgcustom/version-control-tools/rev/5887f2360442
vcsreplicator: log process output at higher log level
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: