Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lustre-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
debian-packages
lustre-release
Commits
efb98ac8
Commit
efb98ac8
authored
18 years ago
by
mjmac
Browse files
Options
Downloads
Patches
Plain Diff
* Add support for date-pinned co/update
r=adilger
parent
b355f623
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lustrecvs
+23
-13
23 additions, 13 deletions
lustrecvs
with
23 additions
and
13 deletions
lustrecvs
+
23
−
13
View file @
efb98ac8
...
...
@@ -19,8 +19,9 @@ fatal ()
usage
()
{
cat
<<
EOF
Usage:
$progname
<lustretag>
Usage:
$progname
<lustretag>
<pindate>
where <lustretag> is a tag of the lustre-core module
and <pindate> is an optional quoted timestamp suitable for cvs -D
EOF
}
...
...
@@ -36,13 +37,14 @@ fi
buildtag
=
"HEAD"
lustretag
=
"
$1
"
shift
pindate
=
$1
shift
if
[
"
$*
"
]
;
then
usage
>
&2
exit
1
fi
case
"
$lustretag
"
in
''
)
warn
"a lustretag is required."
...
...
@@ -90,25 +92,33 @@ cvs_cmd ()
update
=
""
if
[
"
$tag
"
=
"HEAD"
]
;
then
cotag
=
""
uptag
=
"-A"
cotag
=
""
uptag
=
"-A"
elif
[
"
$tag
"
]
;
then
cotag
=
"-r
$tag
"
uptag
=
"-r
$tag
"
cotag
=
"-r
$tag
"
uptag
=
"-r
$tag
"
else
# silently skip if no tag was specified
return
fi
# create a cvs date format that will survive shell expansion
if
[
-n
"
$pindate
"
]
;
then
datecmd
=
$(
date
-u
+%s
-d
"
$pindate
"
)
datecmd
=
"-D @
$datecmd
"
else
# silently skip if no tag was specified
return
datecmd
=
""
fi
if
[
-d
"
$dir
"
]
;
then
echo
"
$progname
: Updating
$dir
to
$tag
"
(
cd
"
$dir
"
&&
cvs up
-dP
$uptag
)
echo
"
$progname
: Updating
$dir
to
$tag
"
(
cd
"
$dir
"
&&
cvs up
$datecmd
-d
A
P
$uptag
)
else
echo
"
$progname
: Checking out
$dir
from
$tag
"
cvs co
-P
$cotag
-d
"
$dir
"
"
$module
"
echo
"
$progname
: Checking out
$dir
from
$tag
"
cvs co
$datecmd
-P
$cotag
-d
"
$dir
"
"
$module
"
fi
if
[
$?
!=
0
]
;
then
error_modules
=
"
$dir
$error_modules
"
error_modules
=
"
$dir
$error_modules
"
fi
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment