-
Notifications
You must be signed in to change notification settings - Fork 0
/
makerepo.sh
42 lines (38 loc) · 1.13 KB
/
makerepo.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/sh
# makerepo.sh
# Created Sat Jul 20 2024 by Uwe Brauer [email protected]
# $Id$
# $Log$
#!/bin/sh
# makerepo-rebase.sh
# Created Sat Dec 10 2022 by Uwe Brauer [email protected]
# $Id$
# $Log$
# 1. The creation and pull step
hg init
echo "[paths]" >> .hg/hgrc
echo "gitlab = git+ssh://[email protected]:kalthad/hggit-dan-branches.git" >> .hg/hgrc
echo "# based on branches-and-stuff" >> .hg/hgrc
echo "# changeset: 613cf16d4c84f" >> .hg/hgrc
echo "[experimental]" >> .hg/hgrc
echo "hg-git-mode = branches" >> .hg/hgrc
echo "[hggit]" >> .hg/hgrc
echo "usephases = yes" >> .hg/hgrc
echo "[git]" >> .hg/hgrc
echo "defaultbranch = default" >> .hg/hgrc
echo "use_namespaces = True " >> .hg/hgrc
echo "HG: First commit" >> test.org
hg addremove
hg commit -m "HG: First commit: default"
echo "HG Second" >> test.org
hg commit -m "HG: Second commit: default"
echo "HG Third" >> test.org
hg commit -m "HG: Third commit: default"
echo "HG Forth" >> test.org
hg commit -m "HG: Fourth commit: default"
hg up 1
hg branch feature
echo "HG: Fifth" >> test.org
hg commit -m "HG: Fifth commit: feature"
echo "HG Six" >> test.org
hg commit -m "HG: Six commit: feature"