D4812: narrow: pass old includes and excludes to _widen()
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Tue Oct 2 12:55:15 EDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG1a4c1a3cc3f5: narrow: pass old includes and excludes to _widen() (authored by pulkit, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D4812?vs=11519&id=11570
REVISION DETAIL
https://phab.mercurial-scm.org/D4812
AFFECTED FILES
hgext/narrow/narrowcommands.py
CHANGE DETAILS
diff --git a/hgext/narrow/narrowcommands.py b/hgext/narrow/narrowcommands.py
--- a/hgext/narrow/narrowcommands.py
+++ b/hgext/narrow/narrowcommands.py
@@ -248,7 +248,8 @@
repo.destroyed()
-def _widen(ui, repo, remote, commoninc, newincludes, newexcludes):
+def _widen(ui, repo, remote, commoninc, oldincludes, oldexcludes,
+ newincludes, newexcludes):
newmatch = narrowspec.match(repo.root, newincludes, newexcludes)
# for now we assume that if a server has ellipses enabled, we will be
@@ -433,6 +434,7 @@
if widening:
newincludes = oldincludes | addedincludes
newexcludes = oldexcludes - removedexcludes
- _widen(ui, repo, remote, commoninc, newincludes, newexcludes)
+ _widen(ui, repo, remote, commoninc, oldincludes, oldexcludes,
+ newincludes, newexcludes)
return 0
To: pulkit, durin42, #hg-reviewers, martinvonz
Cc: martinvonz, mercurial-devel
More information about the Mercurial-devel
mailing list