Portál AbcLinuxu, 9. května 2025 22:44

Dotaz: cvs diff -r tag:*date*

24.8.2006 16:10 Hynek (Pichi) Vychodil | skóre: 43 | blog: Pichi | Brno
cvs diff -r tag:*date*
Přečteno: 202×
Odpovědět | Admin
V jakém formátu se v kládá date do volby -r v příkazu cvs diff, annotate a podobných? Manuál bohužel o této drobnosti cudně mlčí nebo mlží. Viz.
-r tag[:date]

Compare with revision specified by tag or, when date is specified and tag is a branch tag, the version from the branch tag as it existed on date. Zero, one or two `-r' options can be present. With no `-r' option, the working file will be compared with the revision it was based on. With one `-r', that revision will be compared to your current working file. With two `-r' options those two revisions will be compared (and your working file will not affect the outcome in any way).

One or both `-r' options can be replaced by a `-D date' option, described above.
Zkoušel jsem namátkou:
$ cvs diff -r new_afm_solve-b:'13/08/2006 22:00.00'
cvs [diff aborted]: Can't parse date/time: `13/08/2006 22:00.00'
$ cvs diff -r new_afm_solve-b:'13/08/2006'
cvs [diff aborted]: Can't parse date/time: `13/08/2006'
$ cvs diff -r new_afm_solve-b:'2006/08/13'
cvs [diff aborted]: tag `new_afm_solve-b:2006/08/13' must not contain the characters `$,.:;@'
$ cvs diff -r new_afm_solve-b:'08 13'
cvs [diff aborted]: Can't parse date/time: `08 13'
$ cvs diff -r new_afm_solve-b:'Aug 13'
cvs [diff aborted]: tag `new_afm_solve-b:Aug 13' must not contain the characters `$,.:;@'
$ cvs diff -r new_afm_solve-b:'13.08'
cvs [diff aborted]: Can't parse date/time: `13.08'
$ cvs diff -r new_afm_solve-b:'06-08-14'
cvs [diff aborted]: tag `new_afm_solve-b:06-08-14' must not contain the characters `$,.:;@'
$ cvs diff -r new_afm_solve-b:'2006-08-14'
cvs [diff aborted]: tag `new_afm_solve-b:2006-08-14' must not contain the characters `$,.:;@'
$ cvs diff -r new_afm_solve-b:'14 aug'
cvs [diff aborted]: tag `new_afm_solve-b:14 aug' must not contain the characters `$,.:;@'
$ cvs diff -r new_afm_solve-b:'14aug'
cvs [diff aborted]: tag `new_afm_solve-b:14aug' must not contain the characters `$,.:;@'
$ cvs diff -r new_afm_solve-b'\:14aug'
cvs [diff aborted]: tag `new_afm_solve-b\:14aug' must not contain the characters `$,.:;@'
$ cvs diff -r new_afm_solve-b':14aug'
cvs [diff aborted]: tag `new_afm_solve-b:14aug' must not contain the characters `$,.:;@'
$ cvs diff -r new_afm_solve-b':14-08-2006'
cvs [diff aborted]: Can't parse date/time: `14-08-2006'
$ cvs diff -r new_afm_solve-b':20060814'
cvs [diff aborted]: tag `new_afm_solve-b:20060814' must not contain the characters `$,.:;@'
$ cvs diff -r new_afm_solve-b':2006.08.14'
cvs [diff aborted]: Can't parse date/time: `2006.08.14'
$ cvs diff -r new_afm_solve-b':2006.08.13 22:00:00'
cvs [diff aborted]: Can't parse date/time: `2006.08.13 22:00:00'
$ cvs diff -r new_afm_solve-b -D 2006.08.13        
cvs [diff aborted]: Can't parse date/time: `2006.08.13'
$ cvs diff -r new_afm_solve-b -D 20060813
cvs diff: Diffing .
cvs diff: Date 2006.08.12.22.00.00 refers to a dead (removed) revision in file `AFM.pm'.
A milión dalších kombinací co už jsem zkoušel. Jak je vidět kombinací -r a -D se ke kýženému stavu nemůžu dostat (demonstrováno na souborech které existují pouze v této větvi) a na správnou syntaxi -r tag:date nmůžu přijít.
XML je zbytečný, pomalý, nešikovný balast, znovu vynalézané kolo a ještě ke všemu šišaté, těžké a kýčovitě pomalované.
Nástroje: Začni sledovat (1) ?Zašle upozornění na váš email při vložení nového komentáře.

Odpovědi

24.8.2006 16:19 pasmen | skóre: 45 | blog: glob | Praha
Rozbalit Rozbalit vše Re: cvs diff -r tag:*date*
Odpovědět | | Sbalit | Link | Blokovat | Admin
Tady by mohla byt odpoved na to co hledas.
24.8.2006 17:29 Hynek (Pichi) Vychodil | skóre: 43 | blog: Pichi | Brno
Rozbalit Rozbalit vše Re: cvs diff -r tag:*date*
Už jsem se radoval a nic. Ten dokument je o policy jak vytvářet jméno tagu. Bohužel to neodpovídá na otázku jak formátovat tu část za dvojtečkou. Ani formát tam použitý to není:
$ cvs diff -r new_afm_solve-b':20060814'
cvs [diff aborted]: tag `new_afm_solve-b:20060814' must not contain the characters `$,.:;@'
XML je zbytečný, pomalý, nešikovný balast, znovu vynalézané kolo a ještě ke všemu šišaté, těžké a kýčovitě pomalované.

Založit nové vláknoNahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.