Skip to content
This repository was archived by the owner on Jul 1, 2023. It is now read-only.

Commit 997031c

Browse files
fredemmottfacebook-github-bot
authored andcommitted
Make "use namespace HH\Lib" in open source projects oss-only
Summary: This makes them commented out inside Facebook's www repository, but uncomments them externally. This is needed because of FB-specific problems with making HSL built-in: we will be temporarily renaming HH\Lib to FlibSL internally, however the way we package externally (no monorepo, tagged release with version constraints) means this shouldn't be shipped externally. ``` find flib/intern/diffs/difflib/opensource flib/thrift/core flib/intern/opensource/shipit -type f | xargs sed -i 's,^use namespace,// oss-enable: use namespace,' ``` Internally, we depend on the namespace aliasing feature, which is only viable for monorepos. Reviewed By: periodic1236 Differential Revision: D27595266 fbshipit-source-id: 9302343c2f83493ec75423c291c6a9fb4b774c49
1 parent 7a9006b commit 997031c

8 files changed

+8
-8
lines changed

src/CLIColoredUnifiedDiff.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
namespace Facebook\DiffLib;
1212

13-
use namespace HH\Lib\Str;
13+
use namespace HH\Lib\Str; // @oss-enable
1414

1515
/** Create a colored diff between two strings, using standard terminal
1616
* escape sequences.

src/ColoredUnifiedDiff.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
namespace Facebook\DiffLib;
1212

13-
use namespace HH\Lib\{C, Str, Vec};
13+
use namespace HH\Lib\{C, Str, Vec}; // @oss-enable
1414

1515
/** Base class for colorizing diffs.
1616
*

src/Diff.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
namespace Facebook\DiffLib;
1212

13-
use namespace HH\Lib\{C, Dict, Vec};
13+
use namespace HH\Lib\{C, Dict, Vec}; // @oss-enable
1414

1515
/** An implementation of Myer's diff algorithm.
1616
*

src/StringDiff.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
namespace Facebook\DiffLib;
1212

13-
use namespace HH\Lib\{C, Str, Vec};
13+
use namespace HH\Lib\{C, Str, Vec}; // @oss-enable
1414

1515
/** Concrete instance of `Diff` for comparing sequences of strings.
1616
*

src/cluster.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
namespace Facebook\DiffLib;
1212

13-
use namespace HH\Lib\{C, Vec};
13+
use namespace HH\Lib\{C, Vec}; // @oss-enable
1414

1515
/** Group sequential operations of the same kind into one.
1616
*

tests/ClusterTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
namespace Facebook\DiffLib;
1212

13-
use namespace HH\Lib\{C, Vec};
13+
use namespace HH\Lib\{C, Vec}; // @oss-enable
1414
// @oss-disable: use function \expect;
1515
use function Facebook\FBExpect\expect; // @oss-enable
1616

tests/RawDiffTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
namespace Facebook\DiffLib;
1212

13-
use namespace HH\Lib\{C, Vec};
13+
use namespace HH\Lib\{C, Vec}; // @oss-enable
1414
// @oss-disable: use function \expect;
1515
use function Facebook\FBExpect\expect; // @oss-enable
1616

tests/StringDiffTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
namespace Facebook\DiffLib;
1212

13-
use namespace HH\Lib\{C, Str, Vec};
13+
use namespace HH\Lib\{C, Str, Vec}; // @oss-enable
1414
// @oss-disable: use function \expect;
1515
use function Facebook\FBExpect\expect; // @oss-enable
1616

0 commit comments

Comments
 (0)