From: Pavel Machek <pavel@suse.cz>
To: kernel list <linux-kernel@vger.kernel.org>, andrea@suse.de
Subject: accessing bitkeeper without bitkeeper
Date: Wed, 19 Feb 2003 16:11:43 +0100 [thread overview]
Message-ID: <20030219151143.GA7877@elf.ucw.cz> (raw)
Hi!
With attached patch to CSSC (www.sf.net/projects/cssc), and
rsync -zav --delete nl.linux.org::kernel/linux-2.5 linux-2.5
you can download local copy of whole linux-2.5 repository, and you can
access it, too.
Pavel
Index: CSSC/sccsfile.cc
===================================================================
RCS file: /cvsroot/cssc/gnu/CSSC/sccsfile.cc,v
retrieving revision 1.50
diff -u -u -r1.50 sccsfile.cc
--- CSSC/sccsfile.cc 7 Apr 2002 02:22:35 -0000 1.50
+++ CSSC/sccsfile.cc 19 Feb 2003 15:07:24 -0000
@@ -122,17 +122,20 @@
return NULL;
}
- if (getc(f_local) != '\001' || getc(f_local) != 'h')
+ int c;
+ if (getc(f_local) != '\001' || (c = getc(f_local)) != 'h')
{
- (void)fclose(f_local);
- s_corrupt_quit("%s: No SCCS-file magic number. "
- "Did you specify the right file?", name);
- /*NOTEACHED*/
- return NULL;
+ if (c=='H')
+ warning("This is BitKeeper file\n");
+ else {
+ (void)fclose(f_local);
+ s_corrupt_quit("%s: No SCCS-file magic number. "
+ "Did you specify the right file?", name);
+ /*NOTEACHED*/
+ return NULL;
+ }
}
-
-
- int c;
+
errno = 0;
while ( (c=getc(f_local)) != CONFIG_EOL_CHARACTER)
{
@@ -462,7 +465,7 @@
/* check_arg(); */
if (bufchar(2) != ' ')
{
- saw_unknown_feature("Unknown special comment intro %c%c",
+ saw_unknown_feature("Unknown special comment intro %c%c\n",
c, bufchar(2));
}
tmp.comments.add(plinebuf->c_str() + 3);
@@ -581,12 +584,13 @@
}
int c = read_line();
- ASSERT(c == 'h');
+ ASSERT((c == 'h') || (c == 'H'));
/* the checksum is represented in the file as decimal.
*/
signed int given_sum = 0;
- if (1 != sscanf(plinebuf->c_str(), "%*ch%d", &given_sum))
+ if ((1 != sscanf(plinebuf->c_str(), "%*ch%d", &given_sum)) &&
+ (1 != sscanf(plinebuf->c_str(), "%*cH%d", &given_sum)))
{
errormsg("Expected checksum line, found line beginning '%.3s'\n",
plinebuf->c_str());
@@ -755,8 +759,12 @@
else
corrupt("Bad value for 'e' flag.");
break;
+ case 'x':
+ warning("Unknown flag x, BitKeeper?.");
+ break;
default:
+ warning("Unknown flag (%c).", bufchar(3));
corrupt("Unknown flag.");
}
--
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]
reply other threads:[~2003-02-19 15:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030219151143.GA7877@elf.ucw.cz \
--to=pavel@suse.cz \
--cc=andrea@suse.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®