Re: [PATCH] lfs: don't add extension to hgrc after conversion (BC)

2018-10-19 Thread Yuya Nishihara
On Thu, 18 Oct 2018 22:02:27 -0400, Matt Harbison wrote:
> # HG changeset patch
> # User Matt Harbison 
> # Date 1539914147 14400
> #  Thu Oct 18 21:55:47 2018 -0400
> # Node ID 5efdab0bd5b25112f44dc22813d0fb78a77a0009
> # Parent  824b687ff6af49622a18dfea760cf41a7abe5aa7
> lfs: don't add extension to hgrc after conversion (BC)

> --- a/tests/test-lfs-largefiles.t
> +++ b/tests/test-lfs-largefiles.t
> @@ -286,8 +286,7 @@ parameters are available, but not --auth
>0 remove large_by_size.bin
>$ cd nolargefiles
>  
> -The requirement is added to the destination repo, and the extension is 
> enabled
> -locally.
> +The requirement is added to the destination repo.
>  
>$ cat .hg/requires
>dotencode
> @@ -296,8 +295,6 @@ locally.
>lfs
>revlogv1
>store
> -  $ hg config --debug extensions | grep lfs
> -  $TESTTMP/nolargefiles/.hg/hgrc:*: extensions.lfs= (glob)

Removed one more copy in test-lfs.t
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


Re: [PATCH] lfs: don't add extension to hgrc after conversion (BC)

2018-10-19 Thread Yuya Nishihara
On Thu, 18 Oct 2018 22:02:27 -0400, Matt Harbison wrote:
> # HG changeset patch
> # User Matt Harbison 
> # Date 1539914147 14400
> #  Thu Oct 18 21:55:47 2018 -0400
> # Node ID 5efdab0bd5b25112f44dc22813d0fb78a77a0009
> # Parent  824b687ff6af49622a18dfea760cf41a7abe5aa7
> lfs: don't add extension to hgrc after conversion (BC)

Queued, thanks.
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


[PATCH] lfs: don't add extension to hgrc after conversion (BC)

2018-10-18 Thread Matt Harbison
# HG changeset patch
# User Matt Harbison 
# Date 1539914147 14400
#  Thu Oct 18 21:55:47 2018 -0400
# Node ID 5efdab0bd5b25112f44dc22813d0fb78a77a0009
# Parent  824b687ff6af49622a18dfea760cf41a7abe5aa7
lfs: don't add extension to hgrc after conversion (BC)

This is in the spirit of bcf72d7b1524.

diff --git a/hgext/lfs/wrapper.py b/hgext/lfs/wrapper.py
--- a/hgext/lfs/wrapper.py
+++ b/hgext/lfs/wrapper.py
@@ -213,10 +213,6 @@ def convertsink(orig, sink):
 self.repo.requirements.add('lfs')
 self.repo._writerequirements()
 
-# Permanently enable lfs locally
-self.repo.vfs.append(
-'hgrc', util.tonativeeol('\n[extensions]\nlfs=\n'))
-
 return node
 
 sink.__class__ = lfssink
diff --git a/tests/test-lfs-largefiles.t b/tests/test-lfs-largefiles.t
--- a/tests/test-lfs-largefiles.t
+++ b/tests/test-lfs-largefiles.t
@@ -286,8 +286,7 @@ parameters are available, but not --auth
   0 remove large_by_size.bin
   $ cd nolargefiles
 
-The requirement is added to the destination repo, and the extension is enabled
-locally.
+The requirement is added to the destination repo.
 
   $ cat .hg/requires
   dotencode
@@ -296,8 +295,6 @@ locally.
   lfs
   revlogv1
   store
-  $ hg config --debug extensions | grep lfs
-  $TESTTMP/nolargefiles/.hg/hgrc:*: extensions.lfs= (glob)
 
   $ hg log -r 'all()' -G -T '{rev} {join(lfs_files, ", ")} ({desc})\n'
   o  8 large_by_size.bin (remove large_by_size.bin)
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel