[PATCH 1 of 5]debugshell: use absolute_import

Augie Fackler raf at durin42.com
Fri Mar 11 10:25:22 EST 2016


On Fri, Mar 11, 2016 at 08:15:06PM +0530, Pulkit Goyal wrote:
> # HG changeset patch
> # User Pulkit Goyal <7895pulkit at gmail.com>
> # Date 1457214548 -19800
> #      Sun Mar 06 03:19:08 2016 +0530
> # Node ID 1813057a542605fffedb2bd9b46c9f947621c5f7
> # Parent  5740a7496e31a542e5664a4e00495e7587d0738b
> debugshell: use absolute_import

Please read
https://www.mercurial-scm.org/wiki/ContributingChanges#Emailing_patches

and if you can't get pushgate or 'hg email' to work ask for help (irc
is probably best, in that you can get real-time interactive help
there). It'll help us see the grouped patches a little more sensibly
and avoid potential problems in the future.

>
> diff -r 5740a7496e31 -r 1813057a5426 contrib/debugshell.py
> --- a/contrib/debugshell.py    Sun Mar 06 03:15:45 2016 +0530
> +++ b/contrib/debugshell.py    Sun Mar 06 03:19:08 2016 +0530
> @@ -1,9 +1,10 @@
>  # debugshell extension
>  """a python shell with repo, changelog & manifest objects"""
>
> +from __future__ import absolute_import
> +import code
> +import mercurial
>  import sys
> -import mercurial
> -import code
>  from mercurial import (
>      cmdutil,
>      demandimport,
> diff -r 5740a7496e31 -r 1813057a5426 tests/test-check-py3-compat.t
> --- a/tests/test-check-py3-compat.t    Sun Mar 06 03:15:45 2016 +0530
> +++ b/tests/test-check-py3-compat.t    Sun Mar 06 03:19:08 2016 +0530
> @@ -3,7 +3,6 @@
>    $ cd "$TESTDIR"/..
>
>    $ hg files 'set:(**.py)' | sed 's|\\|/|g' | xargs python
> contrib/check-py3-compat.py
> -  contrib/debugshell.py not using absolute_import
>    contrib/hgfixes/fix_bytes.py not using absolute_import
>    contrib/hgfixes/fix_bytesmod.py not using absolute_import
>    contrib/hgfixes/fix_leftover_imports.py not using absolute_import
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


More information about the Mercurial-devel mailing list