mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 00:14:35 +03:00
98d9269874
Summary: Create a fork of the Mercurial code that we can use to build server rpms. The hg servers will continue to exist for a few more months while we move the darkstorm and ediscovery use cases off them. In the mean time, we want to start making breaking changes to the client, so let's create a stable copy of the hg code to produce rpms for the hg servers. The fork is based off c7770c78d, the latest hg release. This copies the files as is, then adds some minor tweaks to get it to build: - Disables some lint checks that appear to be bypassed by path - sed replace eden/scm with eden/hg-server - Removed a dependency on scm/telemetry from the edenfs-client tests since scm/telemetry pulls in the original eden/scm/lib/configparser which conflicts with the hg-server conflict parser. allow-large-files Reviewed By: quark-zju Differential Revision: D27632557 fbshipit-source-id: b2f442f4ec000ea08e4d62de068750832198e1f4
82 lines
1.5 KiB
Bash
Executable File
82 lines
1.5 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
RSVN="`pwd`/rsvn.py"
|
|
export PATH=/bin:/usr/bin
|
|
mkdir temp
|
|
cd temp
|
|
|
|
svnadmin create repo
|
|
svn co file://`pwd`/repo wc
|
|
|
|
cd wc
|
|
mkdir trunk branches
|
|
cd trunk
|
|
echo a > a
|
|
mkdir d
|
|
echo b > d/b
|
|
ln -s d dlink
|
|
ln -s d dlink2
|
|
ln -s d dlink3
|
|
mkdir d2
|
|
echo a > d2/a
|
|
cd ..
|
|
svn add *
|
|
svn ci -m 'initial'
|
|
# Clobber symlink with file with similar content
|
|
cd trunk
|
|
ls -Alh
|
|
readlink dlink3 > dlink3tmp
|
|
rm dlink3
|
|
mv dlink3tmp dlink3
|
|
svn propdel svn:special dlink3
|
|
svn ci -m 'clobber symlink'
|
|
cd ..
|
|
svn up
|
|
|
|
# Clobber files and symlink with directories
|
|
cd ..
|
|
cat > clobber.rsvn <<EOF
|
|
rdelete trunk/a
|
|
rdelete trunk/dlink
|
|
rcopy trunk/d trunk/a
|
|
rcopy trunk/d trunk/dlink
|
|
EOF
|
|
|
|
python $RSVN --message=clobber1 --username=evil `pwd`/repo < clobber.rsvn
|
|
|
|
# Clobber non-symlink with symlink with same content (kudos openwrt)
|
|
cat > clobber.rsvn <<EOF
|
|
rdelete trunk/dlink3
|
|
rcopy trunk/dlink2 trunk/dlink3
|
|
EOF
|
|
|
|
python $RSVN --message=clobber2 --username=evil `pwd`/repo < clobber.rsvn
|
|
|
|
# Create d2 in branch so d2 has 'a' is in branch/d2 and trunk/d2,
|
|
# 'b' is in trunk/d2 and 'c' is in branch/d2
|
|
cd wc/trunk
|
|
echo b > d2/b
|
|
svn add d2/b
|
|
svn ci -m adddb
|
|
cd ..
|
|
svn up
|
|
svn cp trunk branches/branch
|
|
cd branches/branch
|
|
svn rm d2/b
|
|
echo c > d2/c
|
|
svn add d2/c
|
|
cd ../..
|
|
svn ci -m branch
|
|
svn up
|
|
cd ..
|
|
|
|
cat > clobber.rsvn <<EOF
|
|
rdelete trunk/d2
|
|
rcopy branches/branch/d2 trunk/d2
|
|
EOF
|
|
python $RSVN --message=clobberdir --username=evil `pwd`/repo < clobber.rsvn
|
|
|
|
svn log -v file://`pwd`/repo
|
|
|
|
svnadmin dump repo > ../replace.svndump
|