Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
7a63bfcd
Commit
7a63bfcd
authored
Jan 23, 2004
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://gkernel.bkbits.net/misc-2.5
into home.osdl.org:/home/torvalds/v2.5/linux
parents
0c65a1c2
5fc87357
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
57 additions
and
0 deletions
+57
-0
Documentation/BK-usage/00-INDEX
Documentation/BK-usage/00-INDEX
+13
-0
Documentation/BK-usage/cpcset
Documentation/BK-usage/cpcset
+36
-0
Documentation/BK-usage/gcapatch
Documentation/BK-usage/gcapatch
+8
-0
No files found.
Documentation/BK-usage/00-INDEX
View file @
7a63bfcd
...
@@ -17,6 +17,14 @@ bz64wrap: helper script. Uncompressed input is piped to this script,
...
@@ -17,6 +17,14 @@ bz64wrap: helper script. Uncompressed input is piped to this script,
which compresses its input, and then outputs the uu-/base64-encoded
which compresses its input, and then outputs the uu-/base64-encoded
version of the compressed input.
version of the compressed input.
cpcset: Copy changeset between unrelated repositories.
Attempts to preserve changeset user, user address, description, in
addition to the changeset (the patch) itself.
Typical usage:
cd my-updated-repo
bk changes # looking for a changeset...
cpcset 1.1511 . ../another-repo
csets-to-patches: Produces a delta of two BK repositories, in the form
csets-to-patches: Produces a delta of two BK repositories, in the form
of individual files, each containing a single cset as a GNU patch.
of individual files, each containing a single cset as a GNU patch.
Output is several files, each with the filename "/tmp/rev-$REV.patch"
Output is several files, each with the filename "/tmp/rev-$REV.patch"
...
@@ -33,6 +41,11 @@ Typical usage:
...
@@ -33,6 +41,11 @@ Typical usage:
bk changes -L ~/repo/original-repo 2>&1 | \
bk changes -L ~/repo/original-repo 2>&1 | \
perl cset-to-linus > summary.txt
perl cset-to-linus > summary.txt
gcapatch: Generates patch containing changes in local repository.
Typical usage:
cd my-updated-repo
gcapatch > foo.patch
unbz64wrap: Reverse an encoded, compressed data stream created by
unbz64wrap: Reverse an encoded, compressed data stream created by
bz64wrap into an uncompressed, typically text/plain output.
bz64wrap into an uncompressed, typically text/plain output.
Documentation/BK-usage/cpcset
0 → 100755
View file @
7a63bfcd
#!/bin/sh
#
# Purpose: Copy changeset patch and description from one
# repository to another, unrelated one.
#
# usage: cpcset [revision] [from-repository] [to-repository]
#
REV
=
$1
FROM
=
$2
TO
=
$3
TMPF
=
/tmp/cpcset.
$$
rm
-f
$TMPF
*
CWD_SAVE
=
`
pwd
`
cd
$FROM
bk changes
-r
$REV
|
\
grep
-v
'^ChangeSet'
|
\
sed
-e
's/^ //g'
>
$TMPF
.log
USERHOST
=
`
bk changes
-r
$REV
|
grep
'^ChangeSet'
|
awk
'{print $4}'
`
export
BK_USER
=
`
echo
$USERHOST
|
awk
'-F@'
'{print $1}'
`
export
BK_HOST
=
`
echo
$USERHOST
|
awk
'-F@'
'{print $2}'
`
bk
export
-tpatch
-hdu
-r
$REV
>
$TMPF
.patch
&&
\
cd
$CWD_SAVE
&&
\
cd
$TO
&&
\
bk import
-tpatch
-CFR
-y
"
`
cat
$TMPF
.log
`
"
$TMPF
.patch
.
&&
\
bk commit
-y
"
`
cat
$TMPF
.log
`
"
rm
-f
$TMPF
*
echo
changeset
$REV
copied.
echo
""
Documentation/BK-usage/gcapatch
0 → 100755
View file @
7a63bfcd
#!/bin/sh
#
# Purpose: Generate GNU diff of local changes versus canonical top-of-tree
#
# Usage: gcapatch > foo.patch
#
bk
export
-tpatch
-hdu
-r
`
bk repogca bk://linux.bkbits.net/linux-2.5
`
,+
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment