* vc-list-files: Select column 2, not 3 (hg-0.9.3's manifest format
authorJim Meyering <jim@meyering.net>
Tue, 30 Jan 2007 22:07:38 +0000 (23:07 +0100)
committerJim Meyering <jim@meyering.net>
Tue, 30 Jan 2007 22:07:38 +0000 (23:07 +0100)
now has only two columns).

build-aux/ChangeLog
build-aux/vc-list-files

index 1646247..c18b1c2 100644 (file)
@@ -1,3 +1,8 @@
+2007-01-30  Jim Meyering  <jim@meyering.net>
+
+       * vc-list-files: Select column 2, not 3 (hg-0.9.3's manifest format
+       now has only two columns).
+
 2006-10-14  Jim Meyering  <jim@meyering.net>
 
        * vc-list-files: Don't filter git-ls-files output through cut.
index 9920487..b170638 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # List the specified version-controlled files.
 
-# Copyright (C) 2006 Free Software Foundation, Inc.
+# Copyright (C) 2006, 2007 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -43,9 +43,9 @@ if test -d .git; then
   fi
 elif test -d .hg; then
   if test "x$include_prefix" = x; then
-    hg manifest | cut -d ' ' -f 3
+    hg manifest | cut -d ' ' -f 2
   else
-    hg manifest | cut -d ' ' -f 3 | grep "^$include_prefix/"
+    hg manifest | cut -d ' ' -f 2 | grep "^$include_prefix/"
   fi
 elif test -x build-aux/cvsu; then
   build-aux/cvsu --find --types=AFGM $include_prefix