Difference between revisions of "Talk:VCS package guidelines"

From ArchWiki
Jump to: navigation, search
(Mercurial pkgver() broken)
(Some leftover changes)
Line 5: Line 5:
 
:CVS is not supported in pacman 4.1 like the other VCS tools. You will need to update pkgver manually until CVS support is added.
 
:CVS is not supported in pacman 4.1 like the other VCS tools. You will need to update pkgver manually until CVS support is added.
 
:-- [[User:Jstjohn|Jstjohn]] ([[User talk:Jstjohn|talk]]) 22:44, 15 April 2013 (UTC)
 
:-- [[User:Jstjohn|Jstjohn]] ([[User talk:Jstjohn|talk]]) 22:44, 15 April 2013 (UTC)
 
== Some leftover changes ==
 
 
Since [[User:Thestinger|Thestinger]] decided to [https://wiki.archlinux.org/index.php?title=VCS_PKGBUILD_Guidelines&diff=253547&oldid=253546 protect] the entire page (for whatever reason):
 
 
=== The Git functions ===
 
 
[[Danielwallace]]'s [https://wiki.archlinux.org/index.php?title=VCS_PKGBUILD_Guidelines&diff=253546&oldid=253520 change] (04:32, 10 April 2013 (UTC)):
 
{{hc|pkgver() {
 
  cd local_repo
 
<s>−  git rev-list --count HEAD</s>
 
+  echo $(git rev-list --count master).$(git rev-parse --short master)
 
}
 
- [...]
 
|1142}}
 
That's good but you left the title and the <s>sample output</s> intact. Also, the first example still uses {{ic|git describe}}.
 
 
--[[User:Det|Det]] ([[User talk:Det|talk]]) 16:41, 10 April 2013 (UTC)
 
 
==== Incomplete Git function ====
 
The following function will list not only the total number of commits, but also the tag of the last commit
 
{{hc|pkgver() {
 
  cd local_repo
 
  echo $(git rev-list --count master).$(git rev-parse --short master)
 
}
 
 
|1142}}
 
So the following should be used as the example title:
 
 
{{ic|Using the total count of commits and the tag of the last commit. }}
 
 
<s>And the example output should be changed to something like</s>
 
 
<s>1142.a17a017</s>
 
 
--[[User:X33a|X33a]] ([[User talk:X33a|talk]]) 17:50, 10 April 2013 (UTC)
 
 
:Or "tag of the last one" to prevent unnecessary repetition, but I fear even the most obvious changes like this will take a very long time now that we can't do them anymore. --[[User:Det|Det]] ([[User talk:Det|talk]]) 18:50, 10 April 2013 (UTC)
 
 
::Thanks, Thestinger but the title still only mentions the first {{ic|git}} command, while the other example should use {{ic|git rev-parse}} as well. --[[User:Det|Det]] ([[User talk:Det|talk]]) 13:15, 11 April 2013 (UTC)
 
 
:::The other example should not use rev-parse. Using git describe when there's an annotated tag gets you the output that you want; rev-list --count and rev-parse --short is a workaround to simulate some of that output when there's no tag. [[User:Scimmia|Scimmia]] ([[User talk:Scimmia|talk]]) 18:00, 15 April 2013 (UTC)
 

Revision as of 06:55, 16 April 2013

Updating a CVS repo

I don't use cvs. How can you describe the pkgver for cvs (for pacman 4.1)?
-- Dracorp (talk) 09:31, 6 April 2013 (UTC)

CVS is not supported in pacman 4.1 like the other VCS tools. You will need to update pkgver manually until CVS support is added.
-- Jstjohn (talk) 22:44, 15 April 2013 (UTC)