summaryrefslogtreecommitdiffstats
path: root/contrib/cvs/src/rcs.c
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>1998-01-12 06:51:07 +0000
committerjulian <julian@FreeBSD.org>1998-01-12 06:51:07 +0000
commit993698cd4d01babe86314a2d0be61c558ba57305 (patch)
tree2e9d57d41b99e6549433d48136d30a00a3403533 /contrib/cvs/src/rcs.c
parent94982c0d65716b8b428f62ce2af0e3af70426375 (diff)
downloadFreeBSD-src-993698cd4d01babe86314a2d0be61c558ba57305.zip
FreeBSD-src-993698cd4d01babe86314a2d0be61c558ba57305.tar.gz
Allow a -D'date' option to be included with a -r'branch'
on a checkout. this allows us to do: cd /usr/src/sys cvs update -rRELENGE_2_2 -D"Yesterday" which has been a feature sorely needed for any project with active branches. warning: this breaks on usr.sbin/pkg_install for some reason. everything else works as advertised. (other things allready break on pkg_install, so it's not the fault of this patch, it just falls faul of another bug somewhere) If I had more time I'd make -r always accept the same syntax as -j (tag:data)
Diffstat (limited to 'contrib/cvs/src/rcs.c')
-rw-r--r--contrib/cvs/src/rcs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/cvs/src/rcs.c b/contrib/cvs/src/rcs.c
index e87a3ae..dfdc71d 100644
--- a/contrib/cvs/src/rcs.c
+++ b/contrib/cvs/src/rcs.c
@@ -1857,9 +1857,9 @@ RCS_getdatebranch (rcs, date, branch)
free (xbranch);
if (p == vers->branches->list)
{
- /* FIXME: This case would seem to imply that the RCS file is
- somehow invalid. Should we give an error message? */
- return (NULL);
+ /* This happens when you have a couple of branches off a revision,
+ and your branch has not diverged, but another has. */
+ return (xstrdup (cur_rev));
}
p = findnode (rcs->versions, p->key);
OpenPOWER on IntegriCloud