- add a new line item in the PatchSet output which indicates which
branches fork off from after this PatchSet. This is actually
the only way to correctly indicate the branching. The 'Ancestor
Branch' thing is actually broken by design, and is now deprecated.
- sometimes cvs log has a timezone in it (from Ludwig Nussel)
- better buffer size handling
Changed files:
cvsps-fixes.patch -> 1.3
cvsps.spec -> 1.13
.B \-A
Show ancestor branch when a new branch is found.
.TP
.B \-A
Show ancestor branch when a new branch is found.
.TP
---- b/cvsps.c
-+++ b/cvsps.c 2011-01-31 08:14:42.846391432 +0200
+--- cvsps-2.2b1/cvsps.c~ 2011-01-31 08:19:44.000000000 +0200
++++ cvsps-2.2b1/cvsps.c 2011-01-31 08:53:43.552797755 +0200
static CvsFileRevision * parse_revision(CvsFile * file, char * rev_str);
static void assign_pre_revision(PatchSetMember *, CvsFileRevision * rev);
static void check_print_patch_set(PatchSet *);
static CvsFileRevision * parse_revision(CvsFile * file, char * rev_str);
static void assign_pre_revision(PatchSetMember *, CvsFileRevision * rev);
static void check_print_patch_set(PatchSet *);
{
FILE * cvsfp;
char buff[BUFSIZ];
{
FILE * cvsfp;
char buff[BUFSIZ];
+ int state = NEED_RCS_FILE;
CvsFile * file = NULL;
PatchSetMember * psm = NULL;
+ int state = NEED_RCS_FILE;
CvsFile * file = NULL;
PatchSetMember * psm = NULL;
char authbuff[AUTH_STR_MAX];
- char logbuff[LOG_STR_MAX + 1];
+ int logbufflen = LOG_STR_MAX + 1;
char authbuff[AUTH_STR_MAX];
- char logbuff[LOG_STR_MAX + 1];
+ int logbufflen = LOG_STR_MAX + 1;
*/
if (have_log || !is_revision_metadata(buff))
{
- /* if the log buffer is full, that's it.
- *
- * Also, read lines (fgets) always have \n in them
*/
if (have_log || !is_revision_metadata(buff))
{
- /* if the log buffer is full, that's it.
- *
- * Also, read lines (fgets) always have \n in them
+- * (unless truncation happens)
- * which we count on. So if truncation happens,
- * be careful to put a \n on.
- *
- * which we count on. So if truncation happens,
- * be careful to put a \n on.
- *
+%define subver b1
+%define rel 1
Summary: Patchsets for CVS
Summary(pl.UTF-8): Zestawy łatek dla CVS
Name: cvsps
Summary: Patchsets for CVS
Summary(pl.UTF-8): Zestawy łatek dla CVS
Name: cvsps
-Version: 2.1
-Release: 5
+Version: 2.2
+Release: 0.%{subver}.%{rel}
License: GPL
Group: Development/Version Control
License: GPL
Group: Development/Version Control
-Source0: http://www.cobite.com/cvsps/%{name}-%{version}.tar.gz
-# Source0-md5: bde2110ed9f5d14de8f8cb04e9d596fe
+Source0: http://www.cobite.com/cvsps/%{name}-%{version}%{subver}.tar.gz
+# Source0-md5: 997580e8e283034995b9209076858c68
# Fixes made by git people, see:
# http://ydirson.free.fr/en/software/scm/cvsps.html
Patch0: %{name}-fixes.patch
# Fixes made by git people, see:
# http://ydirson.free.fr/en/software/scm/cvsps.html
Patch0: %{name}-fixes.patch
'atomowo' do repozytorium nie jest rzeczą łatwą.
%prep
'atomowo' do repozytorium nie jest rzeczą łatwą.
%prep
+%setup -q -n %{name}-%{version}%{subver}
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
-
-install cvsps $RPM_BUILD_ROOT%{_bindir}
-install cvsps.1 $RPM_BUILD_ROOT%{_mandir}/man1
+install -p cvsps $RPM_BUILD_ROOT%{_bindir}
+cp -a cvsps.1 $RPM_BUILD_ROOT%{_mandir}/man1
%clean
rm -rf $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT