D5659: unamend: import "copies" module as "copiesmod" to avoid shadowing

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Thu Jan 24 17:10:56 UTC 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG7be231f5a4ad: unamend: import "copies" module as "copiesmod" to avoid shadowing (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5659?vs=13371&id=13408

REVISION DETAIL
  https://phab.mercurial-scm.org/D5659

AFFECTED FILES
  hgext/uncommit.py

CHANGE DETAILS

diff --git a/hgext/uncommit.py b/hgext/uncommit.py
--- a/hgext/uncommit.py
+++ b/hgext/uncommit.py
@@ -25,7 +25,7 @@
     cmdutil,
     commands,
     context,
-    copies,
+    copies as copiesmod,
     error,
     node,
     obsutil,
@@ -70,7 +70,7 @@
         return ctx.parents()[0].node()
 
     # Filter copies
-    copied = copies.pathcopies(base, ctx)
+    copied = copiesmod.pathcopies(base, ctx)
     copied = dict((dst, src) for dst, src in copied.iteritems()
                   if dst in files)
     def filectxfn(repo, memctx, path, contentctx=ctx, redirect=()):



To: martinvonz, #hg-reviewers, pulkit
Cc: mercurial-devel


More information about the Mercurial-devel mailing list