[PATCH] debcommit: Check for mercurial before checking for git.

Raúl Sánchez Siles rasasi78 at gmail.com
Sat Jul 19 11:31:52 UTC 2014


  Hi:

  I regularly use mercurial and since there a lot of git repositories out 
there I use the hg-git mercurial extension [1]. This could be seen as a 
mercurial frontend for git. One of its features is that when cloning a git 
repository it can be available in the same clone tree (as regularly used .git 
directory) coexisting with mercurial repository files ( in .hg directory). This 
feature is useful if you want to do certain, though limited, git usage in the 
repository.

  According to debcommit logic, VCS detection checks first for .git. Once found 
it decides debian repository is hosted as a git VCS. This logic clashes with 
the above explained use case. In my opinion, checking for .hg first would 
handle the use case whereas git is correctly detected as well when needed.

  Since I didn't see any drawback in this behaviour, I wrote a patch I'd like 
you to comment and eventually consider (attached). Patch should apply cleanly 
to current master.

  I've tested changes and also did test build devscripts package. I also run 
tests separatedly (not really meaningful, since I didn't see any test for 
debcommit), but just in case.

  I'll be happy to hear from you. Please CC me as I'm not subscribed to the 
list.

  Regards,

  [1] https://bitbucket.org/durin42/hg-git/
-- 
     Raúl Sánchez Siles
----->Proud Debian user<-----
Linux registered user #416098
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-debcommit-Check-for-mercurial-before-checking-for-gi.patch
Type: text/x-patch
Size: 1477 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/devscripts-devel/attachments/20140719/e3863522/attachment.bin>


More information about the devscripts-devel mailing list